Getting startedComponentsDesign tokensThemingTheme synthesizerFrameworksAccessibilityUtilitiesServer renderingBrowser supportContributingChangelogApp ShellAspect GridAuth ShellCenterContainerDashboard GridFloat BarInsetMasonryPage HeaderPage LayoutResizableResponsive SwitcherSectionSettings LayoutSplit PaneStatus BarStickyToolbarAnchor NavBottom NavBreadcrumbBreadcrumb MenuCommand BarDrawerFooterLinkMenubarNavigation MenuPage IndicatorPaginationRailScroll IndicatorScroll SpyScroll To TopSidebarSkip LinkStepper NavTabsTop BarTree ViewAccordionAspect RatioAvatarAvatar GroupCardCarouselCollapsibleColor SwatchCTA BannerDividerEmpty StateFeature CardIconImageImage CompareImage HotspotsInfinite ScrollLightboxMarqueeQR CodeScroll AreaSkeletonSpinnerStackVideoVirtual ListActivity HeatmapAnimated NumberBadgeBar ListChartClockComparisonCountdown TimerData GridDescription ListDiffGaugeJSON TreeKanbanLevel MeterListMeterSparklineStatStepperTagTimelineUptimeValue CardWaveformBlockquoteCode BlockCode GroupGradient TextHighlightKbdKeyboard MapMarkdownNumber FormatProseTerminalTextTime AgoTruncateTypewriterButtonButton GroupCalendarCheckboxChipColor PickerComboboxCopy ButtonDate PickerDate Range PickerField ListFieldsetFile UploadFormHotkeyIcon ButtonImage CropperInline EditInputInput GroupKnobLabelMasked InputMulti SelectNumber InputPassword InputPin InputRadio GroupRange SliderRatingSearchSegmented ControlSelectSignature PadSliderSortable ListSwitch GroupTag InputTextareaTheme ToggleTime PickerToggleTransfer ListTree SelectAlertAnnouncementBannerCommand PaletteConfirmConnection StatusContext MenuConversationDialogDropdown MenuHover CardLoading OverlayNotification PanelPopoverProgressSheetToastTooltip
ARC UIARC Radiant Components
v4.9DocsComponentsTokensSynthesizer
Getting startedFrameworksServer renderingDesign tokensThemingTheme synthesizerTypographyUtilitiesAll componentsAccessibilityBrowser supportChangelogContributingStatsApp ShellAspect GridAuth ShellCenterContainerDashboard GridFloat BarInsetMasonryPage HeaderPage LayoutResizableResponsive SwitcherSectionSettings LayoutSplit PaneStatus BarStickyToolbarAnchor NavBottom NavBreadcrumbBreadcrumb MenuCommand BarDrawerFooterLinkMenubarNavigation MenuPage IndicatorPaginationRailScroll IndicatorScroll SpyScroll To TopSidebarSkip LinkStepper NavTabsTop BarTree ViewAccordionAspect RatioAvatarAvatar GroupCardCarouselCollapsibleColor SwatchCTA BannerDividerEmpty StateFeature CardIconImageImage CompareImage HotspotsInfinite ScrollLightboxMarqueeQR CodeScroll AreaSkeletonSpinnerStackVideoVirtual ListActivity HeatmapAnimated NumberBadgeBar ListChartClockComparisonCountdown TimerData GridDescription ListDiffGaugeJSON TreeKanbanLevel MeterListMeterSparklineStatStepperTagTimelineUptimeValue CardWaveformBlockquoteCode BlockCode GroupGradient TextHighlightKbdKeyboard MapMarkdownNumber FormatProseTerminalTextTime AgoTruncateTypewriterButtonButton GroupCalendarCheckboxChipColor PickerComboboxCopy ButtonDate PickerDate Range PickerField ListFieldsetFile UploadFormHotkeyIcon ButtonImage CropperInline EditInputInput GroupKnobLabelMasked InputMulti SelectNumber InputPassword InputPin InputRadio GroupRange SliderRatingSearchSegmented ControlSelectSignature PadSliderSortable ListSwitch GroupTag InputTextareaTheme ToggleTime PickerToggleTransfer ListTree SelectAlertAnnouncementBannerCommand PaletteConfirmConnection StatusContext MenuConversationDialogDropdown MenuHover CardLoading OverlayNotification PanelPopoverProgressSheetToastTooltip

Getting started

ARC UI is 169 Web Components built with Lit. They work as plain HTML, and React, Vue, Svelte, Angular, Solid and Preact each get a generated wrapper package with typed props.

Install

Lit is a peer dependency, so you install it alongside ARC UI. ARC UI needs a bundler. For pages with no build step, the HTML package has CSS-only versions of many components.

Your first component

  1. Import the tokens and register the components

    base.css defines the design tokens, and register defines the components.

  2. Load the fonts

    ARC UI ships no font files. base.css names three reference faces (Host Grotesk for body text, Tomorrow for labels, JetBrains Mono for code) and loads none of them. Skip this step and text renders in system-ui, and code inui-monospace. A font CDN is the quickest way to load them:

    To self-host, or to use your own typefaces instead, seeLoading the font files.

  3. Write the markup

    These are plain HTML elements, with no provider or wrapper component to set up.

  4. The result

    This is the markup above, rendered on this page.

    Get Started

Import patterns

The three entry points differ in how much they load:

@arclux/arc-ui/registerRegisters every component (except arc-code-block, below). The simplest choice while you're trying things out.
@arclux/arc-ui/buttonRegisters one component and the components it uses. Use these in production to keep the bundle small.
{ ArcButton } from '@arclux/arc-ui'The class, for extending it or creating elements in script. Loads and registers every component except arc-code-block and the marketing and media groups (@arclux/arc-ui/marketing, @arclux/arc-ui/media).
arc-code-block isn't in register or any other barrel, because it carries a syntax highlighter. Import it from @arclux/arc-ui/code-block.

Framework setup

Prism, the project's code generator, writes each wrapper package from the Lit source. Only the import changes:

The Frameworks guide covers install and usage for each one, and using the elements without a wrapper.

Theming

The data-theme attribute on <html> picks one of three modes:

The theme toggle in this site's top bar sets that attribute. For a theme of your own, override the tokens (see Theming) or build one in theTheme Synthesizer and export it.

Design tokens

base.css defines 237 custom properties, and the components read the same ones. Your own CSS can use them too:

Colors
Spacing--space-xs · sm · md · lg · xl · 2xl
Radii--radius-xs · sm · md · lg · xl · full
Shadows--shadow-xs · sm · md · lg · xl

The Design tokens page lists them by group.

TypeScript

The framework wrappers ship their own types. To type arc-* tags in React, Preact or Solid JSX without a wrapper, add the generated declaration file to your program as a file. A types entry in compilerOptions does nothing here (see Without a wrapper).

Your own components

A component you write with Lit has its own shadow root, and a shadow root does not see document styles. The *, *::before, *::after { box-sizing: border-box }reset in your global stylesheet stops at its boundary, so padded boxes inside it overflow and nothing in your page's CSS shows why.

Adopt tokenStyles, the styles ARC UI's own components start from. It has the box-sizing and margin reset, the static token defaults and the reduced-motion rule:

Themed tokens (colors, shadows, gradients) aren't in it. Custom properties inherit through the shadow boundary, so they reach your component from base.css on the document, as they do for every ARC UI component.

tokenStyles also zeroes every margin and padding, as ARC UI's components expect. To add only the box-sizing reset to components you already have, adoptresetStyles from the same module instead.

Testing

Some components read the children you write as data and render their own copies. Thearc-menu-items inside arc-dropdown-menu and thearc-options inside arc-segmented-control andarc-select are display: none. The visible, clickable item is the copy in the parent's shadow root, so a test that clicks the element you wrote fails with "element is not visible". Each component that works this way says "read as data" on its default slot, in the API reference and incustom-elements.json, where each parent also lists the elements it expects under children, with their slot.

Find the rendered item the way a user does, by its role and its text. The rendered copies carry the roles (menuitem, radio, option), and Playwright's role locators pierce shadow roots:

Going to production

A custom element renders its fallback content until JavaScript registers it.base.css hides that fallback (:not(:defined) { opacity: 0 }), so unregistered components stay hidden and fade in as their definitions load. On a page with many components, two more steps make them appear sooner and stop the layout shifting.

Register what's above the fold first. Import the components visible on first paint statically, so they land in a small chunk, and load the full registry with a dynamic import after them.

Reserve space for layout-critical elements. A hidden element still takes up space, so give shell components their final size before they upgrade and nothing moves when they do.

This site loads its top bar, navigation and buttons this way. If you server-render, every component arrives as declarative shadow DOM, styled before any JavaScript runs. SeeServer rendering.

Next steps