# Eunomia > Eunomia is a framework-agnostic design system of standard web components (custom elements built with Lit, tag prefix `eun-`). The same packages work in plain HTML, React, Next.js, Vue and Angular, with no framework-specific wrapper. Packages, all installed from npm: - `@eunomia/elements`: the UI components (``, ``, ``, ``, ``…). Install with `npm install @eunomia/elements`. - `@eunomia/charts`: the chart components (``, ``…). Install with `npm install @eunomia/charts` only when charts are needed. - `@eunomia/core`: design tokens, themes, locales and shared helpers, installed automatically with `@eunomia/elements`. Key rules when writing code with Eunomia: - Import each component from its own path to register its tag, e.g. `import "@eunomia/elements/button.js";` makes `` available. A component that renders another one does not import it: import its dependencies too (listed on each page). - Load a theme stylesheet (see Theming) so components are styled. - In Angular, add `CUSTOM_ELEMENTS_SCHEMA`; in Next.js, use the components from a `"use client"` file. Every page below is available as Markdown (the links point to it). The complete documentation in a single file: https://eunomia-ds.com/llms-full.txt. French version: https://eunomia-ds.com/fr/llms.txt. ## Get started - [Eunomia · Interfaces, built atom by atom](https://eunomia-ds.com/index.md): Eunomia, a design system of accessible, framework-agnostic web components that work the same in HTML, React, Vue, Angular and Next.js. - [Compatibility](https://eunomia-ds.com/compatibility.md): Which versions of @eunomia/core, @eunomia/elements and @eunomia/charts go together. - [Get started](https://eunomia-ds.com/get-started.md): Install Eunomia from npm and add your first web component to a page, in plain HTML, React, Next.js, Vue or Angular. - [Web components](https://eunomia-ds.com/web-components.md): Why Eunomia ships as standard web components instead of framework-specific ones. ## Guides - [Guides](https://eunomia-ds.com/guides.md): Cross-cutting documentation that doesn't belong to any single component. - [Angular forms](https://eunomia-ds.com/guides/angular-forms.md): Using Eunomia fields in Angular's reactive and template-driven forms, with ngModel, formControl and formControlName. - [Angular Signal Forms](https://eunomia-ds.com/guides/angular-signal-forms.md): Using Eunomia fields in Angular Signal Forms, with formField and a schema that drives their rules and error messages. - [Events](https://eunomia-ds.com/guides/events.md): The eunXxx naming convention every component follows to tell your code what just happened. - [Forms & validation](https://eunomia-ds.com/guides/forms.md): Shared patterns for building and validating forms with Eunomia fields. - [Invoker Commands API](https://eunomia-ds.com/guides/invoker-commands-api.md): A native way to wire a button to another element's behavior, without writing a click handler. - [Migrating to v2](https://eunomia-ds.com/guides/migrate-to-v2.md): Upgrading a project from @eunomia/elements 1.x to 2.x with one command, and what it changes. - [Mobile swipe testing](https://eunomia-ds.com/guides/mobile-swipe.md): A touch-swipe test harness for checking eun-tab-group's swipe gestures between panels on real mobile devices. - [Polyfills](https://eunomia-ds.com/guides/polyfills.md): The Popover API and CSS anchor positioning polyfills Eunomia relies on. - [Server-side rendering](https://eunomia-ds.com/guides/server-rendering.md): Using Eunomia in a server-rendered app: server-safe imports, hydration, and keeping links and content visible to crawlers. - [Shared vocabulary](https://eunomia-ds.com/guides/shared-vocabulary.md): The handful of color, appearance, and size choices shared by many components, explained once instead of relearned on every page. - [SPA navigation](https://eunomia-ds.com/guides/spa-navigation.md): Routing every Eunomia link through your app's own client-side router with a single eunnavigate bridge. - [Types](https://eunomia-ds.com/guides/types.md): The shared TypeScript unions the library exports, so your own code can be typed against the exact same vocabulary the components use. ## Components - [Components](https://eunomia-ds.com/components.md): Every web component in the Eunomia library, browsable by category: actions, forms, content, navigation, alerts and loading. - [Alert](https://eunomia-ds.com/components/alert.md): Inline banner for showing an info, success, warning, or error message. - [Animate](https://eunomia-ds.com/components/animate.md): Reveals its content with an animation effect the first time it scrolls into view. - [Badge](https://eunomia-ds.com/components/badge.md): A small indicator that highlights new or unread content, such as a notification count. - [Breadcrumb](https://eunomia-ds.com/components/breadcrumb.md): A trail of links showing the current page's position within a site's hierarchy. - [Button](https://eunomia-ds.com/components/button.md): Clickable element for triggering an action, such as submitting a form or confirming a choice. - [Card](https://eunomia-ds.com/components/card.md): A family of card surfaces for grouping related content, from a simple bordered box to an image tile, each one a blank layout you fill with your own markup. - [Carousel](https://eunomia-ds.com/components/carousel.md): A carousel that pages through a row of slides with native scrolling, plus navigation buttons, pagination dots, autoplay and edge fades. - [Checkbox](https://eunomia-ds.com/components/checkbox.md): A binary or tri-state form control, usable standalone or grouped into a list. - [Chip](https://eunomia-ds.com/components/chip.md): A small, removable piece of information, such as a selected filter or an invited guest. - [Collapse](https://eunomia-ds.com/components/collapse.md): An accordion-style disclosure that reveals a content panel in place, without navigating away. - [Color picker](https://eunomia-ds.com/components/color-picker.md): A field for picking a color, from preset swatches or a custom hex value. - [Counter](https://eunomia-ds.com/components/counter.md): A numeric stepper with increment and decrement buttons for a bounded quantity. - [Date picker](https://eunomia-ds.com/components/date-picker.md): An accessible date field with segmented day, month, and year inputs, plus a calendar popover for picking values directly. - [Description list](https://eunomia-ds.com/components/description-list.md): A list of label and value pairs describing a single object, such as the specifications of a product or the details of an order. - [Divider](https://eunomia-ds.com/components/divider.md): A thin horizontal or vertical line that separates two areas of content, in a list, a toolbar, a card or a page layout. - [Drawer](https://eunomia-ds.com/components/drawer.md): A side panel that slides in for a focused task, with a built-in safeguard against losing unsaved changes. - [Dropdown button](https://eunomia-ds.com/components/dropdown-button.md): A button that opens a short menu of actions in a floating panel anchored to it, each choice firing its action right away. - [Fab](https://eunomia-ds.com/components/fab.md): A circular button that highlights a screen's single most important action. - [Icon](https://eunomia-ds.com/components/icon.md): A single icon glyph loaded by name from nearly 4,000 icons in four shapes, in any size or color, used alone or inside other components. - [Image carousel](https://eunomia-ds.com/components/image-carousel.md): An image gallery with a main viewing area, thumbnails, and a full-size lightbox. - [Infinite list](https://eunomia-ds.com/components/infinite-list.md): A list that loads more items automatically as you scroll near the end, with a loading indicator and optional virtualization for long lists. - [Input code](https://eunomia-ds.com/components/input-code.md): A one-time code or PIN entered one character per box, completing on its own as the last box is filled. - [Input file](https://eunomia-ds.com/components/input-file.md): A file picker with drag-and-drop, thumbnails or file rows, and bulk removal. - [Input phone](https://eunomia-ds.com/components/input-phone.md): An international phone number field with a searchable country selector. - [Input](https://eunomia-ds.com/components/input.md): A single-line text field for forms, with validation and an optional click-to-edit mode. - [Label](https://eunomia-ds.com/components/label.md): A form field's label, with an optional required asterisk and instructions text, used by every text field and available on its own. - [Link](https://eunomia-ds.com/components/link.md): A themed anchor for inline or standalone navigation, with an optional decorative leading icon - [Loader](https://eunomia-ds.com/components/loader.md): A compact loading indicator, shown as bouncing dots, a rotating spinner, or a bar. - [Modal](https://eunomia-ds.com/components/modal.md): A reusable dialog for any content, shown or hidden from code, with cancelable confirm and cancel events, for simple confirmations or full forms. - [Nav menu](https://eunomia-ds.com/components/nav-menu.md): A navigation entry that reveals a group of related pages, such as the pages of a section. - [Pagination](https://eunomia-ds.com/components/pagination.md): A set of page numbers letting someone jump between the pages of a longer list, with first/previous/next/last controls - [Password strength](https://eunomia-ds.com/components/password-strength.md): A password strength meter, graded into levels with an always-visible level name. - [Progress bar](https://eunomia-ds.com/components/progress-bar.md): A progress gauge built on the native meter element, with optional labels in all four corners around its track. - [Radio](https://eunomia-ds.com/components/radio.md): A single-choice form control, usable standalone or grouped into a list of options. - [Rating](https://eunomia-ds.com/components/rating.md): A row of stars to give a score, or to display one such as a product's average review. - [Search](https://eunomia-ds.com/components/search.md): A text field specialized for search, with an optional keyboard shortcut and command-palette panel. - [Select](https://eunomia-ds.com/components/select.md): A dropdown field for picking one or more values from a list of options, with live filtering, multiple selection and an optional native mode. - [Sidebar](https://eunomia-ds.com/components/sidebar.md): A persistent, non-modal navigation panel pinned beside page content, collapsible to an icon rail or fully hidden, and resizable by dragging its border. - [Skeleton](https://eunomia-ds.com/components/skeleton.md): A generic shimmer loading placeholder that stands in for content while it loads. - [Slider](https://eunomia-ds.com/components/slider.md): A slider for picking a single numeric value within a range, with optional graduation marks and a floating value tooltip. - [Stepper](https://eunomia-ds.com/components/stepper.md): Shows progress through a multi-step process, as a numbered list of steps or as a continuous bar. - [Switch](https://eunomia-ds.com/components/switch.md): A toggle for a setting that takes effect right away, with no save step, sharing a checkbox's form participation, validation and keyboard support. - [Tabs](https://eunomia-ds.com/components/tabs.md): A tab system for switching between different views of content on the same page. - [Tag](https://eunomia-ds.com/components/tag.md): A small inline label for a piece of metadata, such as a status, a category or a count, with an optional icon set directly or from its severity. - [Textarea](https://eunomia-ds.com/components/textarea.md): A multi-line text field with auto-resize, an optional click-to-edit mode, and an optional rich-text formatting toolbar. - [Time picker](https://eunomia-ds.com/components/time-picker.md): A segmented time field with a picker panel, a mobile fallback, and full timezone support. - [Toast](https://eunomia-ds.com/components/toast.md): A self-dismissing notification anchored to a screen corner, stacking automatically with any other toast sharing its position. - [Toggle](https://eunomia-ds.com/components/toggle.md): A pressed or unpressed button, usable standalone or grouped into a switch or a filter. - [Toolbar](https://eunomia-ds.com/components/toolbar.md): A sticky top page toolbar with layout slots, a responsive burger menu, scroll collapse, and background-adaptive theming. - [Tooltip](https://eunomia-ds.com/components/tooltip.md): A floating, non-interactive description anchored to another element, guaranteed to never run past the viewport edge. ## Features - [Features](https://eunomia-ds.com/features.md): Composite, higher-level pieces built from the base component set, like a scheduler or a data table. - [Scheduler](https://eunomia-ds.com/features/scheduler.md): A calendar with day, week, work-week, month and year views, color-coded events, and a side panel or mobile modal to create and edit them. - [Calendar](https://eunomia-ds.com/features/scheduler/calendar.md): A calendar grid with day, week, work-week, month, and year views, with no built-in opinion on editing. - [Event editor](https://eunomia-ds.com/features/scheduler/event-editor.md): A create-and-edit form for a single scheduled event, with guest sharing and all-day support. - [Event](https://eunomia-ds.com/features/scheduler/event.md): The compact, colored event chip the scheduler draws on its calendar grid, showing an event's title and start time. - [Table](https://eunomia-ds.com/features/table.md): A native data table with row selection, a floating bulk-action bar, row end actions, and sticky header, footer, and columns. - [Action bar](https://eunomia-ds.com/features/table/action-bar.md): A floating toolbar of bulk actions shown under a table while rows are selected. ## Charts (@eunomia/charts) - [Charts](https://eunomia-ds.com/charts.md): Eight chart web components, from bar to radar and bubble, drawn from a single data contract and themed like every other Eunomia component. - [Bar chart](https://eunomia-ds.com/charts/bar-chart.md): Values per category drawn as bars, side by side or stacked, with a tooltip, keyboard navigation and an optional details modal. - [Bubble chart](https://eunomia-ds.com/charts/bubble-chart.md): Items placed on two value axes, each bubble sized by a third value such as revenue, with a tooltip, keyboard navigation and an optional details modal. - [Combo chart](https://eunomia-ds.com/charts/combo-chart.md): Bars and lines on the same categories, such as amounts against a target or a rate, with a secondary axis, a tooltip and keyboard navigation. - [Details modal](https://eunomia-ds.com/charts/details.md): Opening a modal on a clicked category, with its values, content of your own in plain HTML or from JavaScript, or your own modal instead. - [Doughnut chart](https://eunomia-ds.com/charts/doughnut-chart.md): A whole split between categories around its total, on one or several rings, with each share in a tooltip, keyboard navigation and a details modal. - [Legend](https://eunomia-ds.com/charts/legend.md): When a chart shows its legend, what it lists, how its swatches mirror the marks, and how to place and restyle it. - [Line chart](https://eunomia-ds.com/charts/line-chart.md): Values per category drawn as lines over a light wash, several series sharing the axis, with a tooltip, keyboard navigation and an optional details modal. - [Pie chart](https://eunomia-ds.com/charts/pie-chart.md): A whole shared out between a handful of categories, a slice each, with their shares in a tooltip, keyboard navigation and an optional details modal. - [Polar area chart](https://eunomia-ds.com/charts/polar-area-chart.md): One equal-angle wedge per category, reaching as far as its value, labelled in a legend or around the chart, with keyboard navigation and a details modal. - [Radar chart](https://eunomia-ds.com/charts/radar-chart.md): Several measures of the same items on spokes from the center, one outline per series, with a tooltip, keyboard navigation and an optional details modal. - [Size & resizing](https://eunomia-ds.com/charts/size.md): How charts follow their parent's width, set their height with --chart-height, or fill a dashboard card's whole height with fill, redrawing on every resize. - [Tooltip](https://eunomia-ds.com/charts/tooltip.md): What a chart's tooltip shows, where it opens, how its values are written, and how to restyle it or write its content yourself with tooltipRenderer. ## Utilities - [Utilities](https://eunomia-ds.com/utilities.md): Plain JavaScript functions shipped with Eunomia, usable with or without its components. - [Dates](https://eunomia-ds.com/utilities/dates.md): Dependency-free helpers to compute, compare and format dates, in local time or in any time zone, the same ones behind the calendar and pickers. - [Drag and drop](https://eunomia-ds.com/utilities/drag-and-drop.md): Reorder a list by dragging its items, with a mouse, a finger or the keyboard. - [Language](https://eunomia-ds.com/utilities/language.md): Set the language of every Eunomia component and chart on the page in one call, or of a single element with its locale attribute. - [Markdown-lite](https://eunomia-ds.com/utilities/markdown-lite.md): A small, deliberately non-standard Markdown-lite syntax and its formatRichText renderer, the format behind eun-textarea's formatting toolbar. - [Rate limiting](https://eunomia-ds.com/utilities/rate-limiting.md): Limit how often a function runs, by waiting for a pause or by capping its rate. ## Foundations (design tokens) - [Foundations](https://eunomia-ds.com/foundations.md): The design tokens every Eunomia component and theme is built from: colors, spacing, radius, shadows, heights and typography, as CSS custom properties. - [Breakpoints](https://eunomia-ds.com/foundations/breakpoints.md): What a breakpoint is, and the four widths every layout switch of the library happens at. - [Color](https://eunomia-ds.com/foundations/color.md): Every Eunomia color token, organized by group and shade: the grey scale, the decorative scales and the semantic status colors. - [Decorative](https://eunomia-ds.com/foundations/color/decorative.md): Six static accent hues for tags, charts and illustrations, seven steps each, shared by every brand and with a genuine dark-mode variant. - [Grey scale](https://eunomia-ds.com/foundations/color/grey-scale.md): The ten-step neutral grey scale shared by every brand, whose mapping flips between light and dark mode so surfaces and text stay readable. - [Neutral tokens](https://eunomia-ds.com/foundations/color/neutral-tokens.md): Surface, text and border tokens shared by every brand, each an alias onto a grey-scale step, so they flip between light and dark mode on their own. - [Semantic states](https://eunomia-ds.com/foundations/color/semantic-states.md): The success, warning, critical and info status colors, each with an opaque tone, five translucent washes and a genuine dark-mode variant. - [Tokens](https://eunomia-ds.com/foundations/tokens.md): The non-color design tokens: spacing, radius, border, shadow, height, and motion. - [Border width](https://eunomia-ds.com/foundations/tokens/border.md): The three-step border-width scale, from the default hairline for dividers and card outlines to the bolder widths of focused or active elements. - [Height](https://eunomia-ds.com/foundations/tokens/height.md): Fixed height tokens, 8px apart from 8px to 56px, so buttons, inputs and chips of the same size always line up with each other. - [Motion](https://eunomia-ds.com/foundations/tokens/motion.md): The shared transition durations and easings every component animates with. - [Radius](https://eunomia-ds.com/foundations/tokens/radius.md): The four-step border-radius scale, from the subtle corners of small controls up to a fully rounded pill for badges and rounded buttons. - [Shadow](https://eunomia-ds.com/foundations/tokens/shadow.md): The five-step elevation scale of box-shadow tokens, from a barely-there shadow to the strong one used for modals and popovers. - [Space](https://eunomia-ds.com/foundations/tokens/space.md): The seven-step spacing scale behind every padding, margin and gap in the components, from a hairline gap to large-section spacing. - [Grid utilities](https://eunomia-ds.com/foundations/tokens/utilities.md): Plain CSS grid utility classes for laying out form fields and content. - [Typography](https://eunomia-ds.com/foundations/typography.md): The Eunomia typography scale: the Mulish typeface, its nine font sizes and its three font weights, all exposed as CSS tokens. - [Font family](https://eunomia-ds.com/foundations/typography/font-family.md): The Mulish typeface every component uses by default, shipped with the library and replaceable through a single CSS custom property. - [Sizes](https://eunomia-ds.com/foundations/typography/sizes.md): The nine-step font-size scale, from xxs fine print up to xxxxl hero display text, exposed as CSS custom properties. - [Weights](https://eunomia-ds.com/foundations/typography/weights.md): The three-step font-weight scale, from Mulish's regular to bold, that every component standardizes on. ## Theming - [Theming](https://eunomia-ds.com/theming.md): How Eunomia theming works: one design system of CSS custom properties, with switchable brands and light or dark modes that restyle every component. - [Custom theme](https://eunomia-ds.com/theming/custom-theme.md): Pick your own primary and secondary brand colors instead of a prebuilt theme. - [Light & dark via transparency](https://eunomia-ds.com/theming/light-dark.md): How color tokens stay legible in both light and dark mode via transparency. - [Prebuilt themes](https://eunomia-ds.com/theming/prebuilt-themes.md): Seven prebuilt color palettes, each with a full light and dark shade chart. - [Eunomia theme](https://eunomia-ds.com/theming/prebuilt-themes/eunomia.md): The Eunomia prebuilt Eunomia theme: its full primary and secondary shade chart, in light and dark mode, ready to load. - [Fire theme](https://eunomia-ds.com/theming/prebuilt-themes/fire.md): The Fire prebuilt Eunomia theme: its full primary and secondary shade chart, in light and dark mode, ready to load. - [Forest theme](https://eunomia-ds.com/theming/prebuilt-themes/forest.md): The Forest prebuilt Eunomia theme: its full primary and secondary shade chart, in light and dark mode, ready to load. - [Gold theme](https://eunomia-ds.com/theming/prebuilt-themes/gold.md): The Gold prebuilt Eunomia theme: its full primary and secondary shade chart, in light and dark mode, ready to load. - [Ocean theme](https://eunomia-ds.com/theming/prebuilt-themes/ocean.md): The Ocean prebuilt Eunomia theme: its full primary and secondary shade chart, in light and dark mode, ready to load. - [Salmon theme](https://eunomia-ds.com/theming/prebuilt-themes/salmon.md): The Salmon prebuilt Eunomia theme: its full primary and secondary shade chart, in light and dark mode, ready to load. - [Violet theme](https://eunomia-ds.com/theming/prebuilt-themes/violet.md): The Violet prebuilt Eunomia theme: its full primary and secondary shade chart, in light and dark mode, ready to load. - [Token reference](https://eunomia-ds.com/theming/token-reference.md): Every color token a theme defines, where it comes from, and how to change it in a custom theme. ## Icons - [Icons](https://eunomia-ds.com/icons.md): The full eun-icon set of nearly 4,000 icons, searchable by name in four shapes, each copied as ready-to-paste markup in one click. ## Changelog - [Changelog](https://eunomia-ds.com/changelog.md): Release history of each Eunomia package, @eunomia/core, @eunomia/elements and @eunomia/charts, with their new features and fixes. ## Optional - [Accessibility](https://eunomia-ds.com/legal/accessibility.md): The accessibility statement of the Eunomia documentation site: our commitment, what is built in, known limitations and how to report an issue. - [Cookie Policy](https://eunomia-ds.com/legal/cookie-policy.md): The cookie policy of the Eunomia documentation site: what is stored in your browser, and why. - [Legal Notice](https://eunomia-ds.com/legal/legal-notice.md): The legal notice of the Eunomia documentation site: its publisher, publication director, hosting provider and domain name registrar. - [Third-Party Licenses](https://eunomia-ds.com/legal/licenses.md): Third-party assets and software bundled with or used by Eunomia, and their licenses. - [Privacy Policy](https://eunomia-ds.com/legal/privacy-policy.md): The privacy policy of the Eunomia documentation site: what data is collected, why, how long it is kept, and your rights. - [Sitemap](https://eunomia-ds.com/legal/sitemap.md): Every page on Eunomia, from getting started to every component, guide, and theme, all in one place. - [Terms of Use](https://eunomia-ds.com/legal/terms-of-use.md): The terms of use of the Eunomia documentation site and of the content it publishes.