Design tokens
The CSS custom properties ARC UI's components read. Import@arclux/arc-ui/base.css to use them in your own styles.
Colors
Each accent also has an -rgb channel triplet (--accent-primary-rgb,--accent-secondary-rgb) that glows, gradients and focus rings read throughvar(). Override an accent and its triplet together and those follow. See Theming.
Charts
The series colors for arc-chart and other data visualization. Assign them in order of series position, and don't cycle or reshuffle them. Every series has at least 3:1 contrast against --bg-card in both themes. Adjacent series were also chosen to stay apart under color-vision deficiency, but no test re-checks that. Series 1, 4 and 6 change in light mode. Status colors are for state and aren't part of this palette.
Each series also ships its channels, --chart-1-rgb through--chart-6-rgb, for tints of the same series (a band, an area fill, a highlighted range): rgba(var(--chart-2-rgb), 0.35). They change in light mode along with the solid colors.
Spacing
Typography
ARC UI ships no font files, only role slots. Set a face for each role with--font-<role>-family and every component uses it. The samples below render from the slots. --font-accent is a back-compat alias of--font-label.
| Token | Value |
|---|---|
--body-size | var(--text-md) (17px) |
--body-lh | 1.7 |
--body-weight | 500 |
--heading-size | var(--text-xl) (clamp(22px, 2.5vw, 26px)) |
--heading-weight | 500 |
--ui-size | 14px |
--ui-lh | 1.4 |
--code-size | 14px |
--code-lh | 1.8 |
--ui-size is for dense interface text such as a chip, a toolbar button or a meta line, where 17px body text is too big and the 12px label step too small. It's a role and not a step on the type scale, so there is no .arc-text-ui utility.
Borders & radius
| Token | Value |
|---|---|
--radius-xs | 2px |
--radius-sm | 4px |
--radius-md | 10px |
--radius-lg | 14px |
--radius-xl | 20px |
--radius-full | 9999px |
Shadows
Z-index
| Token | Value | Usage |
|---|---|---|
--z-base | 0 | Default stacking |
--z-dropdown | 1000 | Dropdown menus, selects, pickers, hover cards |
--z-tooltip | 1100 | Tooltips and chart tooltips |
--z-overlay | 1200 | Loading overlays, navigation menu panels |
--z-modal | 1300 | Dialogs, drawers, sheets, lightbox, command palette |
--z-toast | 1400 | Toast notifications |
--z-max | 9999 | Skip links, context menus |
Breakpoints
| Token | Value |
|---|---|
--breakpoint-xs | 480px |
--breakpoint-sm | 640px |
--breakpoint-md | 768px |
--breakpoint-lg | 1024px |
--breakpoint-xl | 1280px |
--breakpoint-2xl | 1536px |
Opacity
--opacity-disabled 0.5--opacity-muted 0.6--opacity-hover 0.8--opacity-visible 1Motion
Motion is two base scales (four curves and five durations) that the--transition-* tokens combine. Pick a curve by what the element is doing.
| Token | Value | Usage |
|---|---|---|
--ease-standard | cubic-bezier(0.4, 0, 0.2, 1) | A state change on an element that stays put: hover recolor, border shift |
--ease-out | cubic-bezier(0.16, 1, 0.3, 1) | Something entering or expanding |
--ease-in | cubic-bezier(0.7, 0, 0.84, 0) | Something leaving, paired with a shorter duration |
--ease-spring | cubic-bezier(0.34, 1.56, 0.64, 1) | A control confirming a discrete action: toggle landing, checkbox filling |
--duration-fast | 120ms | Micro state changes |
--duration-base | 200ms | Default for most transitions |
--duration-slow | 400ms | Large surfaces |
--duration-enter | 500ms | Entrances |
--duration-exit | 300ms | Exits |
--ease-out-expo | var(--ease-out) | Back-compat alias |
--ease-in-out | var(--ease-standard) | Back-compat alias |
Display & text sizing
| Token | Value |
|---|---|
--display-xl-size | var(--text-3xl) |
--display-xl-weight | var(--font-display-weight) (500) |
--display-xl-spacing | -1px |
--text-3xl | clamp(36px, 5vw, 52px) |
--text-lg | clamp(18px, 1.5vw, 20px) |
--wordmark-size | clamp(20px, 2.5vw, 28px) |
--wordmark-weight | var(--font-display-weight) (500) |
--wordmark-spacing | clamp(8px, 1.2vw, 14px) |
--section-title-size | var(--label-size) (12px) |
--section-title-weight | var(--label-weight) (600) |
--section-title-spacing | var(--label-spacing) (2px) |
--ui-accent-size | 16px |
--ui-accent-weight | var(--font-label-weight) (600) |
--ui-accent-spacing | 0.5px |
--label-inline-size | 10px |
--label-inline-spacing | 0.75px |
Glows
Glow lines
--glow-line-white--glow-line-blue--glow-line-gradientGradients
Focus
Transitions
Each transition token composes a duration and a curve from themotion scales. Override the base--duration-* and --ease-* tokens and the compositions follow.
| Token | Composition |
|---|---|
--transition-fast | var(--duration-fast) var(--ease-standard) |
--transition-base | var(--duration-base) var(--ease-standard) |
--transition-slow | var(--duration-slow) var(--ease-standard) |
--transition-enter | var(--duration-enter) var(--ease-out) |
--transition-exit | var(--duration-exit) var(--ease-in) |
Utility
| Token | Value | Usage |
|---|---|---|
--bg-hover | rgba(255, 255, 255, 0.04) | Hover background tint |
--bg-base | rgb(10, 10, 15) | Page base background |
--overlay-backdrop | rgba(0, 0, 0, 0.6) | Backdrop behind dialogs, drawers and sheets |
--max-width | 1120px | Content max width |
--max-width-sm | 720px | Narrow content max width |
--nav-height | 64px | Navigation bar height |
See also
- Theming: dark, light and auto modes, and custom themes
- Theme Synthesizer: build a theme with a live preview