# Semantic tokens

**Public theming API.** Named by role. Each points at a primitive ([`css/tokens/primitives.css`](https://domestic-ui.odonckers.dev/tokens/primitives.md)) or at another semantic token. Base, layout, utility and component CSS use only these. Renaming or removing one is a breaking change.

A theme is an override of these tokens on `:root` or on a scoped element. No rebuild. See [Theming](https://domestic-ui.odonckers.dev/principles/theming.md).

Colors use [`light-dark()`](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/light-dark), which picks a value from the used color-scheme of the element where the token is read.

201 tokens in [`css/tokens/semantic.css`](https://github.com/odonckers/domestic-ui/blob/main/css/tokens/semantic.css). **Light** and **Dark** resolve every `var()` and take one side of [`light-dark()`](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/light-dark). Previews are decorative. † marks a description taken from the semantic token table in [Theming](https://domestic-ui.odonckers.dev/principles/theming.md).

## Surfaces and text

| Token | Light | Dark | Description |
| --- | --- | --- | --- |
| `--dui-color-surface` | `oklch(96.6% 0.012 85deg)` | `oklch(18.5% 0.012 55deg)` | Page background |
| `--dui-color-surface-raised` | `oklch(98.8% 0.006 85deg)` | `oklch(21.5% 0.014 55deg)` | Brighter paper on the page: cards, panels, neutral buttons, table row hover |
| `--dui-color-surface-sunken` | `oklch(93.8% 0.014 82deg)` | `oklch(22% 0.015 55deg)` | Recessed areas: code, button hover |
| `--dui-color-surface-hover` | `oklch(92.4% 0.016 80deg)` | `oklch(27% 0.016 55deg)` | Hover fill of quiet buttons and rows (neutral step 4) |
| `--dui-color-surface-active` | `oklch(89.8% 0.018 78deg)` | `oklch(31% 0.018 55deg)` | Pressed fill of quiet buttons (neutral step 5) |
| `--dui-color-surface-frame` | `oklch(96.6% 0.012 85deg)` | `oklch(18.5% 0.012 55deg)` | Background of an app shell's frame: the app bar and sidebars sit on it, around the main content panel. The page color, so the brighter panel stands on it |
| `--dui-color-text` | `oklch(28% 0.035 45deg)` | `oklch(95% 0.012 85deg)` | Body text |

## Borders

| Token | Light | Dark | Description |
| --- | --- | --- | --- |
| `--dui-color-border-control` | `oklch(57% 0.03 60deg)` | `oklch(57% 0.025 60deg)` | Boundaries of fields, selects, checkboxes, radios and switches, 3:1 |
| `--dui-color-border-control-hover` | `oklch(50% 0.03 55deg)` | `oklch(66% 0.022 65deg)` | Field border on hover, one step stronger |
| `--dui-color-border-button` | `oklch(86% 0.02 75deg)` | `oklch(35% 0.02 55deg)` | Secondary button border: the subtle border step, softer than a field, because its visible label identifies it |

## Primary

| Token | Light | Dark | Description |
| --- | --- | --- | --- |
| `--dui-color-primary` | `oklch(28% 0.035 45deg)` | `oklch(95% 0.012 85deg)` | Primary fill: the ink, brown in light and ivory in dark |
| `--dui-color-primary-contrast` | `oklch(98.8% 0.006 85deg)` | `oklch(18.5% 0.012 55deg)` | Text on the primary fill: paper on ink |

## Accent and status

| Token | Light | Dark | Description |
| --- | --- | --- | --- |
| `--dui-color-accent` | `oklch(57% 0.17 42deg)` | `oklch(57% 0.17 42deg)` | Accent solid for selection, checks, switches and focus, and the hue of links: clay, the same in both schemes. Themes set a hue here |
| `--dui-color-accent-indigo` | `oklch(53% 0.215 272deg)` | `oklch(53% 0.215 272deg)` | An indigo accent solid, more vivid on a Display P3 screen. The calm theme points --dui-color-accent at it |
| `--dui-color-link-visited` | `oklch(46.2% 0.195 299deg)` | `oklch(80.1% 0.127 306deg)` | Visited links |
| `--dui-color-danger` | `oklch(48% 0.16 27deg)` | `oklch(80% 0.114 27deg)` | Errors and invalid borders |
| `--dui-color-danger-solid` | `oklch(50% 0.19 27deg)` | `oklch(50% 0.19 27deg)` | Fill of danger buttons, the same red in both schemes, 3:1 against the light page |
| `--dui-color-danger-contrast` | `oklch(100% 0 0deg)` | `oklch(100% 0 0deg)` | Text on the danger fill, 4.5:1 |
| `--dui-color-success` | `oklch(47% 0.128 150deg)` | `oklch(80% 0.12 150deg)` | Success messages |
| `--dui-color-warning` | `oklch(47% 0.098 75deg)` | `oklch(80% 0.12 75deg)` | Warning badges and messages |
| `--dui-color-info` | `oklch(48% 0.12 245deg)` | `oklch(80% 0.108 245deg)` | Informational alerts, separate from the accent |
| `--dui-color-mark` | `oklch(95.3% 0.093 99deg)` | `oklch(83.4% 0.141 97deg)` | mark and ::selection background |
| `--dui-color-mark-text` | `oklch(28% 0.035 45deg)` | `oklch(28% 0.035 45deg)` | Text on mark, the light text color in both schemes |
| `--dui-color-backdrop` | `oklch(0% 0 0deg / 40%)` | `oklch(0% 0 0deg / 60%)` | dialog::backdrop |
| `--dui-color-shadow` | `oklch(30% 0.04 45deg / 10%)` | `oklch(10% 0.02 45deg / 50%)` | Shadow color, tinted with the neutral hue |

## Code highlighting (css/base/typography.css, explainers/code-highlighting.md). Each meets 4.5:1 on --dui-color-surface-sunken, the <pre> background (WCAG 1.4.3)

| Token | Light | Dark | Description |
| --- | --- | --- | --- |
| `--dui-color-code-keyword` | `oklch(46.2% 0.195 299deg)` | `oklch(80.1% 0.127 306deg)` | JS keywords and CSS at-rules: const, return, @layer |
| `--dui-color-code-string` | `oklch(47% 0.128 150deg)` | `oklch(80% 0.12 150deg)` | Quoted strings in JS and CSS, and HTML attribute values |
| `--dui-color-code-comment` | `oklch(49% 0.03 55deg)` | `oklch(75% 0.02 70deg)` | Comments in HTML, CSS and JS |
| `--dui-color-code-tag` | `oklch(48% 0.12 245deg)` | `oklch(80% 0.108 245deg)` | HTML tag names and CSS selectors |
| `--dui-color-code-attribute` | `oklch(47% 0.098 75deg)` | `oklch(80% 0.12 75deg)` | HTML attribute names |
| `--dui-color-code-property` | `oklch(49.1% 0.081 203deg)` | `oklch(77.3% 0.099 203deg)` | CSS properties and custom properties, JS object properties |
| `--dui-color-code-number` | `oklch(48% 0.16 27deg)` | `oklch(80% 0.114 27deg)` | Numbers with their units: 0.5rem, 100%, 42 |
| `--dui-color-code-punctuation` | `oklch(37% 0.03 45deg)` | `oklch(84% 0.015 75deg)` | Brackets, braces, angle brackets, colons, semicolons, commas |

## Type

| Token | Light | Dark | Description |
| --- | --- | --- | --- |
| `--dui-font-body` | `system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", roboto, "Noto Sans", "Helvetica Neue", arial, sans-serif` | `system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", roboto, "Noto Sans", "Helvetica Neue", arial, sans-serif` | Body font stack † |
| `--dui-font-mono` | `ui-monospace, "Cascadia Code", "Source Code Pro", menlo, consolas, "DejaVu Sans Mono", monospace` | `ui-monospace, "Cascadia Code", "Source Code Pro", menlo, consolas, "DejaVu Sans Mono", monospace` | Code font stack † |
| `--dui-font-weight-body` | `400` | `400` | Body weight † |
| `--dui-font-weight-strong` | `600` | `600` | strong, legends, th † |
| `--dui-font-weight-ui` | `500` | `500` | Interface labels: buttons, nav rows and field labels. Between body and strong, as Radix and shadcn set them |
| `--dui-font-weight-heading` | `600` | `600` | h1–h6 † |
| `--dui-font-weight-display` | `500` | `500` | h1 to h3: medium, because a serif carries its own weight |
| `--dui-step--1` | `0.875rem` | `0.875rem` | 14px: small text, captions, and the UI text size |
| `--dui-step-0` | `1rem` | `1rem` | 16px: body text, h5 and h6 |
| `--dui-step-1` | `1.125rem` | `1.125rem` | 18px: h4 |
| `--dui-step-2` | `1.375rem` | `1.375rem` | 22px: h3 |
| `--dui-step-3` | `clamp(1.5rem, 1.375rem + 0.625vw, 1.875rem)` | `clamp(1.5rem, 1.375rem + 0.625vw, 1.875rem)` | 24px to 30px: h2 |
| `--dui-step-4` | `clamp(1.75rem, 1.5417rem + 1.0417vw, 2.375rem)` | `clamp(1.75rem, 1.5417rem + 1.0417vw, 2.375rem)` | 28px to 38px: page titles, one step above h2 |
| `--dui-step-5` | `clamp(2rem, 1.6667rem + 1.6667vw, 3rem)` | `clamp(2rem, 1.6667rem + 1.6667vw, 3rem)` | 32px to 48px: h1, docs and marketing heroes |
| `--dui-step-6` | `clamp(2.5rem, 2rem + 2.5vw, 4rem)` | `clamp(2.5rem, 2rem + 2.5vw, 4rem)` | 40px to 64px: the h2 of a hero band |
| `--dui-step-7` | `clamp(2.75rem, 2.0833rem + 3.3333vw, 4.75rem)` | `clamp(2.75rem, 2.0833rem + 3.3333vw, 4.75rem)` | 44px to 76px: the h1 of a hero band |
| `--dui-font-size-code` | `0.9em` | `0.9em` | code, kbd, samp, pre (relative) † |
| `--dui-line-height-body` | `1.5` | `1.5` | Body text † |
| `--dui-line-height-heading` | `1.2` | `1.2` | Headings, buttons, pre † |
| `--dui-line-height-snug` | `1.4` | `1.4` | Lines that run long but are not body text: code blocks and lead paragraphs |
| `--dui-line-height-display` | `1.1` | `1.1` | h1 † |
| `--dui-letter-spacing-heading` | `-0.02em` | `-0.02em` | h1 to h3 |
| `--dui-letter-spacing-display` | `-0.03em` | `-0.03em` | h1 and page titles |
| `--dui-letter-spacing-hero` | `-0.045em` | `-0.045em` | The h1 of a hero band: very tight, because large type looks loose |
| `--dui-line-height-hero` | `1` | `1` | The h1 of a hero band: solid, so two lines read as one title |
| `--dui-measure` | `60ch` | `60ch` | Longest line of running text: 60 characters, inside the 45 to 75 range that reads well |

## Page pattern

A backdrop drawn on the page surface and an app shell's frame, under every panel and card.

| Token | Light | Dark | Description |
| --- | --- | --- | --- |
| `--dui-pattern-size` | `1.5rem` | `1.5rem` | Spacing of the page pattern's grid: 24px |
| `--dui-pattern-dot` | `1px` | `1px` | Radius of each dot in the dotted page pattern: 1px |

## Space

| Token | Light | Dark | Description |
| --- | --- | --- | --- |
| `--dui-space-3xs` | `0.125rem` | `0.125rem` | Space scale † |
| `--dui-space-2xs` | `0.25rem` | `0.25rem` | Space scale † |
| `--dui-space-xs` | `0.5rem` | `0.5rem` | Space scale † |
| `--dui-space-s` | `0.75rem` | `0.75rem` | Space scale † |
| `--dui-space-m` | `1rem` | `1rem` | Space scale; default flow rhythm and .stack gap † |
| `--dui-space-l` | `1.5rem` | `1.5rem` | Space scale; default .grid gap † |
| `--dui-space-xl` | `2rem` | `2rem` | Space scale; space above h1–h3 † |
| `--dui-space-2xl` | `3rem` | `3rem` | Space scale † |
| `--dui-space-3xl` | `4rem` | `4rem` | Space scale † |

## Sizes

| Token | Light | Dark | Description |
| --- | --- | --- | --- |
| `--dui-size-target` | `2.25rem` | `2.25rem` | Comfortable control height: 36px, 44px under a coarse pointer With `@media (pointer: coarse)`: `var(--dui-size-2-75)`, resolves to `2.75rem`. |
| `--dui-size-target-compact` | `2rem` | `2rem` | Compact control height: 32px, 44px under a coarse pointer With `@media (pointer: coarse)`: `var(--dui-size-2-75)`, resolves to `2.75rem`. |
| `--dui-size-target-small` | `2rem` | `2rem` | Small buttons: 32px, 44px under a coarse pointer With `@media (pointer: coarse)`: `var(--dui-size-2-75)`, resolves to `2.75rem`. |
| `--dui-size-target-large` | `2.5rem` | `2.5rem` | Large buttons: 40px, 52px under a coarse pointer With `@media (pointer: coarse)`: `var(--dui-size-3-25)`, resolves to `3.25rem`. |
| `--dui-size-target-row` | `2rem` | `2rem` | Comfortable row height of nav, menu, listbox and list items: 32px, 44px under a coarse pointer With `@media (pointer: coarse)`: `var(--dui-size-2-75)`, resolves to `2.75rem`. |
| `--dui-size-target-row-compact` | `1.75rem` | `1.75rem` | Compact row height: 28px, 44px under a coarse pointer With `@media (pointer: coarse)`: `var(--dui-size-2-75)`, resolves to `2.75rem`. |
| `--dui-size-check` | `1rem` | `1rem` | Checkbox and radio box, and the switch thumb: 16px, as shadcn/ui. The label around it is the full-size target (WCAG 2.5.8) |
| `--dui-size-column-min` | `16rem` | `16rem` | Default .grid min column width † |
| `--dui-size-menu-min` | `12rem` | `12rem` | Min width of menus and nav dropdowns † |
| `--dui-size-drawer` | `24rem` | `24rem` | Drawer width (all of the viewport when narrower) † |
| `--dui-size-page` | `72rem` | `72rem` | Max inline size of a page's content column: header, main and footer |
| `--dui-size-narrow` | `24rem` | `24rem` | Max inline size of a narrow page's one card: sign-in, sign-up, error pages |
| `--dui-size-icon` | `1.25rem` | `1.25rem` | Decorative icons beside a label, on their own |
| `--dui-size-icon-inline` | `1rem` | `1rem` | Icons inside buttons, menu items and toolbars, beside 14 to 16px text |
| `--dui-size-icon-nav` | `1rem` | `1rem` | Decorative icons at the start of nav links and group summaries: 16px beside 14px sidebar text, as shadcn/ui |
| `--dui-size-chevron` | `calc(0.25rem + 0.125rem)` | `calc(0.25rem + 0.125rem)` | Arm length of the CSS-drawn chevron on a sidebar nav group: 6px |
| `--dui-icon-stroke-width` | `1.75` | `1.75` | Stroke width of [data-icon] SVGs, set with the CSS stroke-width property |
| `--dui-size-sidebar` | `16rem` | `16rem` | Inline size of an app shell's primary sidebar when it sits beside main |
| `--dui-size-sidebar-aux` | `20rem` | `20rem` | Inline size of an app shell's auxiliary (inline-end) sidebar when it sits beside main |
| `--dui-size-pane` | `100svh` | `100svh` | Max block size of a pane that scrolls on its own beside others, such as the detail of a list-detail or a data-scroll="block inline" table |
| `--dui-size-window` | `100vw` | `100vw` | The window width a full-bleed band spans; the body clips the scrollbar part |

## Shape

| Token | Light | Dark | Description |
| --- | --- | --- | --- |
| `--dui-radius-scale` | `1` | `1` | Radius knob: multiplies the control and surface radii. 1 is the default, 0 gives square corners, 1.5 rounder |
| `--dui-radius-pill` | `999rem` | `999rem` | Fully rounded ends; not scaled, so pills stay round |
| `--dui-border-width` | `1px` | `1px` | Hairline width † |
| `--dui-border-width-emphasis` | `0.25rem` | `0.25rem` | blockquote rule, alert start rule, invalid field † |
| `--dui-border-width-indicator` | `3px` | `3px` | The selected tab's and the current nav item's bar in forced colors only † |
| `--dui-angle-chevron` | `45deg` | `45deg` | Turn of the CSS-drawn sidebar group chevron: -1x points to the inline end, 1x points down (open), 3x points left in right-to-left text |
| `--dui-border-width-check` | `2px` | `2px` | Stroke of the CSS-drawn check and indeterminate bar in a checkbox, close to a 14px icon's 2 stroke |
| `--dui-border-width-chevron` | `calc(1px * 1.5)` | `calc(1px * 1.5)` | Stroke of the CSS-drawn chevron on a sidebar nav group, close to a 16px icon's 1.75 stroke |
| `--dui-underline-offset` | `0.15em` | `0.15em` | Link underline offset † |
| `--dui-underline-thickness` | `0.0625em` | `0.0625em` | Link underline † |
| `--dui-underline-thickness-hover` | `0.125em` | `0.125em` | Link underline on hover † |

## Focus indicator

WCAG 2.4.7, 2.4.11, 2.4.13.

| Token | Light | Dark | Description |
| --- | --- | --- | --- |
| `--dui-focus-width` | `3px` | `3px` | Focus ring width: 3px, as shadcn/ui's ring |
| `--dui-focus-offset` | `0px` | `0px` | Focus ring offset: 0, so the ring hugs the edge. Our choice: the ring is opaque at 3:1 rather than a translucent halo, so it meets WCAG 1.4.11 |

## Motion knobs

Durations and distances (section 2) are derived from these.

| Token | Light | Dark | Description |
| --- | --- | --- | --- |
| `--dui-motion-scale` | `1` | `1` | Multiplies every motion duration: 2 is twice as slow, 0 turns motion off |
| `--dui-motion-movement` | `1` | `1` | 1 lets things slide, lift and zoom; 0 (reduced motion) keeps fades and color changes only With `@media (prefers-reduced-motion: reduce)`: `var(--dui-factor-0)`, resolves to `0`. With `[data-motion="reduced"]`: `var(--dui-factor-0)`, resolves to `0`. With `[data-motion="none"]`: `var(--dui-factor-0)`, resolves to `0`. |
| `--dui-motion-enabled` | `1` | `1` | 0 (data-motion="none") makes every duration 0s, whatever the scale set inside With `[data-motion="none"]`: `var(--dui-factor-0)`, resolves to `0`. |
| `--dui-motion-easing-standard` | `cubic-bezier(0.2, 0, 0, 1)` | `cubic-bezier(0.2, 0, 0, 1)` | Easing for state changes that stay on screen: hover, press, switch |
| `--dui-motion-easing-enter` | `cubic-bezier(0, 0, 0, 1)` | `cubic-bezier(0, 0, 0, 1)` | Easing for things arriving: dialogs, drawers, popovers, toasts |
| `--dui-motion-easing-exit` | `cubic-bezier(0.3, 0, 1, 1)` | `cubic-bezier(0.3, 0, 1, 1)` | Easing for things leaving |
| `--dui-motion-easing-spring` | `cubic-bezier(0, 0, 0, 1)` | `cubic-bezier(0, 0, 0, 1)` | Easing for popover, menu and drawer entrances: a linear() spring where supported (below), the enter easing elsewhere With `@supports (transition-timing-function: linear(0, 1))`: `var(--dui-easing-spring)`, resolves to `linear(0, 0.16 4%, 0.46 11%, 0.71 19%, 0.86 28%, 0.94 38%, 0.98 51%, 0.995 66%, 1)`. |

## Floating panels

The app shell's main content panel, inset from the frame edge.

| Token | Light | Dark | Description |
| --- | --- | --- | --- |
| `--dui-space-page-inline` | `1.5rem` | `1.5rem` | Inline gutter of a plain document page's column, so content never touches the window edge |
| `--dui-space-section` | `clamp(3rem, 2rem + 5vw, 6rem)` | `clamp(3rem, 2rem + 5vw, 6rem)` | Block padding of a band: 48px on a phone to 96px on a wide screen |
| `--dui-space-panel-inset` | `0.5rem` | `0.5rem` | Gap between a floating panel and the viewport or frame edge |

## Elevation knobs

| Token | Light | Dark | Description |
| --- | --- | --- | --- |
| `--dui-elevation-strength` | `100%` | `100%` | How much of --dui-color-shadow each shadow uses, 0% to 100% |
| `--dui-elevation-surface-step` | `3%` | `3%` | Dark scheme: how much text color each level mixes into its surface |

## Density knob

The density tokens (section 2) are derived from it.

| Token | Light | Dark | Description |
| --- | --- | --- | --- |
| `--dui-density-scale` | `1` | `1` | 1 is comfortable, 0 compact (data-density); in between interpolates. Below 0 is not supported: targets could drop under 24px With `[data-density="comfortable"]`: `var(--dui-factor-1)`, resolves to `1`. With `[data-density="compact"]`: `var(--dui-factor-0)`, resolves to `0`. |

## State

| Token | Light | Dark | Description |
| --- | --- | --- | --- |
| `--dui-opacity-disabled` | `0.6` | `0.6` | Disabled controls, `disabled` and `aria-disabled="true"` † |

## Contrast knob

Muted text, hairlines and tints follow it (section 2).

| Token | Light | Dark | Description |
| --- | --- | --- | --- |
| `--dui-contrast` | `1` | `1` | 1 is the default look; 1.5 (prefers-contrast: more or data-contrast="more") gives stronger muted text, hairlines and tints. Below 1 softens hairlines and tints only: text never drops under 4.5:1 With `@media (prefers-contrast: more)`: `var(--dui-factor-1-5)`, resolves to `1.5`. With `[data-contrast="more"]`: `var(--dui-factor-1-5)`, resolves to `1.5`. |

## Dependent tokens

Defined in terms of other semantic tokens.

| Token | Light | Dark | Description |
| --- | --- | --- | --- |
| `--dui-color-text-muted` | `color-mix(in oklab, oklch(28% 0.035 45deg) clamp(0%, (1 - 1) * 100%, 100%), oklch(49% 0.03 55deg))` | `color-mix(in oklab, oklch(95% 0.012 85deg) clamp(0%, (1 - 1) * 100%, 100%), oklch(75% 0.02 70deg))` | Secondary text, still 4.5:1. Above contrast 1 it moves toward --dui-color-text (halfway at 1.5); below 1 it stays |
| `--dui-color-border` | `oklch(from oklch(28% 0.035 45deg / 14%) l c h / calc(alpha * 1))` | `oklch(from oklch(95% 0.012 85deg / 12%) l c h / calc(alpha * 1))` | Decorative hairline. Its alpha scales with --dui-contrast |
| `--dui-tint-amount` | `calc(8% * 1)` | `calc(8% * 1)` | How much of a status or accent color tints a surface: 8% times --dui-contrast |
| `--dui-border-tint-amount` | `calc(35% * 1)` | `calc(35% * 1)` | How much of a status color a tinted border uses: 35% times --dui-contrast |
| `--dui-color-accent-text` | `oklch(from oklch(57% 0.17 42deg) calc(0.47 - max(0, 0.02 - c) * 16.25) calc(c * 0.19 / 0.215) h)` | `oklch(from oklch(57% 0.17 42deg) calc(0.78 + max(0, 0.02 - c) * 10.25) calc(c * 0.11 / 0.215) h)` | Accent as text. Relative color of the accent, same hue, 4.5:1. Our choice: an achromatic accent (chroma 0, fading in up to 0.02) gives the text color, 14.5% and 98.5%, so links read as text with an underline, as in shadcn/ui. https://www.w3.org/TR/css-color-5/#relative-colors |
| `--dui-color-link` | `oklch(from oklch(57% 0.17 42deg) calc(0.47 - max(0, 0.02 - c) * 16.25) calc(c * 0.19 / 0.215) h)` | `oklch(from oklch(57% 0.17 42deg) calc(0.78 + max(0, 0.02 - c) * 10.25) calc(c * 0.11 / 0.215) h)` | Links: the text color with the default neutral accent, told apart by the underline (WCAG 1.4.1) |
| `--dui-color-focus` | `oklch(from oklch(57% 0.17 42deg) calc(l + max(0, 0.02 - c) * 20.25) c h)` | `oklch(from oklch(from oklch(57% 0.17 42deg) calc(0.78 + max(0, 0.02 - c) * 10.25) calc(c * 0.11 / 0.215) h) calc(l - max(0, 0.02 - c) * 21.25) c h)` | Focus ring, 3:1 (WCAG 1.4.11). A hued accent: the accent solid in light, the accent text in dark. The neutral accent: a mid gray, 55% lightness in light and 56% in dark |
| `--dui-color-accent-contrast` | `oklch(100% 0 0deg)` | `oklch(from oklch(57% 0.17 42deg) calc(1 - max(0, 0.02 - c) * 42.5) 0 0deg)` | Text on the accent fill: white, except on the neutral dark accent, where it is the dark page color |
| `--dui-color-danger-solid-hover` | `oklch(from oklch(50% 0.19 27deg) calc(l - 0.04) c h)` | `oklch(from oklch(50% 0.19 27deg) calc(l - 0.04) c h)` | Danger fill hover: 0.04 darker in OKLCH lightness, so white text gains contrast |
| `--dui-color-accent-hover` | `oklch(from oklch(57% 0.17 42deg) calc(l - 0.02) c h)` | `oklch(from oklch(57% 0.17 42deg) calc(l - 0.02) c h)` | Accent solid hover. Our choice: 0.02 darker in OKLCH lightness, so white text stays 4.5:1 |
| `--dui-color-primary-hover` | `oklch(from oklch(28% 0.035 45deg) 26% calc(c + 0.002) h)` | `oklch(from oklch(95% 0.012 85deg) 90% calc(c + 0.004) h)` | Primary fill hover, same hue as the primary |
| `--dui-font-heading` | `system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", roboto, "Noto Sans", "Helvetica Neue", arial, sans-serif` | `system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", roboto, "Noto Sans", "Helvetica Neue", arial, sans-serif` | Heading font stack † |
| `--dui-font-display` | `charter, "Bitstream Charter", "Sitka Text", cambria, serif` | `charter, "Bitstream Charter", "Sitka Text", cambria, serif` | h1 to h3: the transitional serif stack (Charter, Cambria), so titles read like a printed page; set it to var(--dui-font-heading) for sans titles |
| `--dui-color-pattern` | `oklch(from oklch(28% 0.035 45deg / 14%) l c h / calc(alpha * 1))` | `oklch(from oklch(95% 0.012 85deg / 12%) l c h / calc(alpha * 1))` | Dots or lines of the page pattern: the hairline color, so it follows --dui-contrast |
| `--dui-pattern-dots` | `radial-gradient(circle, oklch(from oklch(28% 0.035 45deg / 14%) l c h / calc(alpha * 1)) 1px, transparent 0)` | `radial-gradient(circle, oklch(from oklch(95% 0.012 85deg / 12%) l c h / calc(alpha * 1)) 1px, transparent 0)` | A dotted grid, one dot per --dui-pattern-size cell. Set --dui-pattern-image to it to turn it on |
| `--dui-pattern-image` | `radial-gradient(circle, oklch(from oklch(28% 0.035 45deg / 14%) l c h / calc(alpha * 1)) 1px, transparent 0)` | `radial-gradient(circle, oklch(from oklch(95% 0.012 85deg / 12%) l c h / calc(alpha * 1)) 1px, transparent 0)` | The page pattern behind the page and an app shell's frame: the dotted grid by default; none turns it off |
| `--dui-font-size-ui` | `0.875rem` | `0.875rem` | Interface text: buttons, fields, selects, nav, menu and listbox items, tabs, tooltips, table cells. 14px at the default font size |
| `--dui-font-size-field` | `0.875rem` | `0.875rem` | Text in fields, selects and text areas: the UI size, at least 16px under a coarse pointer (section 2a) With `@media (pointer: coarse)`: `max(var(--dui-font-size-ui), var(--dui-step-0))`, resolves to `max(0.875rem, 1rem)`. |
| `--dui-font-size-badge` | `0.75rem` | `0.75rem` | Badge text: 12px, as shadcn/ui sets its badge (text-xs) |
| `--dui-font-size-page-title` | `clamp(1.75rem, 1.5417rem + 1.0417vw, 2.375rem)` | `clamp(1.75rem, 1.5417rem + 1.0417vw, 2.375rem)` | The h1 of a page header or an app shell: 38px at most, one step above h2 |
| `--dui-radius-control` | `calc(0.5rem * 1)` | `calc(0.5rem * 1)` | Controls, buttons, inline code: 8px times the radius scale |
| `--dui-radius-surface` | `calc(0.75rem * 1)` | `calc(0.75rem * 1)` | Panels, cards, pre, dialogs, details, media: 12px times the radius scale |
| `--dui-radius-check` | `calc(0.25rem * 1)` | `calc(0.25rem * 1)` | Checkbox corners: 4px times the radius scale |

## Tinted surfaces for status badges

A little of the tone mixed into the surface.

| Token | Light | Dark | Description |
| --- | --- | --- | --- |
| `--dui-color-accent-surface` | `color-mix(in oklab, oklch(57% 0.17 42deg) calc(8% * 1), oklch(96.6% 0.012 85deg))` | `color-mix(in oklab, oklch(57% 0.17 42deg) calc(8% * 1), oklch(18.5% 0.012 55deg))` | Accent badge background † |
| `--dui-color-success-surface` | `color-mix(in oklab, oklch(47% 0.128 150deg) calc(8% * 1), oklch(96.6% 0.012 85deg))` | `color-mix(in oklab, oklch(80% 0.12 150deg) calc(8% * 1), oklch(18.5% 0.012 55deg))` | Success badge background † |
| `--dui-color-warning-surface` | `color-mix(in oklab, oklch(47% 0.098 75deg) calc(8% * 1), oklch(96.6% 0.012 85deg))` | `color-mix(in oklab, oklch(80% 0.12 75deg) calc(8% * 1), oklch(18.5% 0.012 55deg))` | Warning badge background † |
| `--dui-color-danger-surface` | `color-mix(in oklab, oklch(48% 0.16 27deg) calc(8% * 1), oklch(96.6% 0.012 85deg))` | `color-mix(in oklab, oklch(80% 0.114 27deg) calc(8% * 1), oklch(18.5% 0.012 55deg))` | Danger badge and alert background † |
| `--dui-color-danger-halo` | `color-mix(in oklab, oklch(48% 0.16 27deg) calc(20% * 1), transparent)` | `color-mix(in oklab, oklch(80% 0.114 27deg) calc(20% * 1), transparent)` | Halo around an invalid field: the danger color at 20%, times --dui-contrast |
| `--dui-color-info-surface` | `color-mix(in oklab, oklch(48% 0.12 245deg) calc(8% * 1), oklch(96.6% 0.012 85deg))` | `color-mix(in oklab, oklch(80% 0.108 245deg) calc(8% * 1), oklch(18.5% 0.012 55deg))` | Info alert background † |
| `--dui-color-info-border` | `color-mix(in oklab, oklch(48% 0.12 245deg) calc(35% * 1), transparent)` | `color-mix(in oklab, oklch(80% 0.108 245deg) calc(35% * 1), transparent)` | Border of a tinted info box: the info color at --dui-border-tint-amount |
| `--dui-color-success-border` | `color-mix(in oklab, oklch(47% 0.128 150deg) calc(35% * 1), transparent)` | `color-mix(in oklab, oklch(80% 0.12 150deg) calc(35% * 1), transparent)` | Border of a tinted success box |
| `--dui-color-warning-border` | `color-mix(in oklab, oklch(47% 0.098 75deg) calc(35% * 1), transparent)` | `color-mix(in oklab, oklch(80% 0.12 75deg) calc(35% * 1), transparent)` | Border of a tinted warning box |
| `--dui-color-danger-border` | `color-mix(in oklab, oklch(48% 0.16 27deg) calc(35% * 1), transparent)` | `color-mix(in oklab, oklch(80% 0.114 27deg) calc(35% * 1), transparent)` | Border of a tinted danger box |
| `--dui-color-thumb` | `oklch(96.6% 0.012 85deg)` | `oklch(95% 0.012 85deg)` | The moving part of a switch: the page color on the track in light, the text color in dark |

## Inverse pair for small overlays on top of content (tooltips): text and surface swapped

| Token | Light | Dark | Description |
| --- | --- | --- | --- |
| `--dui-color-surface-inverse` | `oklch(28% 0.035 45deg)` | `oklch(95% 0.012 85deg)` | Tooltip background † |
| `--dui-color-text-inverse` | `oklch(96.6% 0.012 85deg)` | `oklch(18.5% 0.012 55deg)` | Tooltip text † |

## Motion

Durations times --dui-motion-scale and --dui-motion-enabled, distances times --dui-motion-movement.

| Token | Light | Dark | Description |
| --- | --- | --- | --- |
| `--dui-motion-duration-fast` | `calc(120ms * 1 * 1)` | `calc(120ms * 1 * 1)` | Small state changes: hover, press, switch, popovers and menus |
| `--dui-motion-duration-normal` | `calc(200ms * 1 * 1)` | `calc(200ms * 1 * 1)` | Dialogs and toasts |
| `--dui-motion-duration-slow` | `calc(300ms * 1 * 1)` | `calc(300ms * 1 * 1)` | Large surfaces that travel: the drawer |
| `--dui-motion-distance` | `calc(0.75rem * 1)` | `calc(0.75rem * 1)` | How far a dialog or toast lifts as it fades in; 0 with reduced motion |
| `--dui-motion-zoom` | `calc(1 - (1 - 0.95) * 1)` | `calc(1 - (1 - 0.95) * 1)` | Scale a popover or menu grows from; 1 (no zoom) with reduced motion |
| `--dui-motion-press-scale` | `calc(1 - (1 - 0.98) * 1)` | `calc(1 - (1 - 0.98) * 1)` | Scale of a pressed (:active) button: 0.98, or 1 with reduced motion |

## Elevation

A shadow and a surface per level. Every level from 1 up is a 1px ring in the hairline color (--dui-color-border) plus layers with a negative spread, so an elevated component needs no border of its own. Light scheme: the shadow does the work and every level keeps --dui-color-surface. Dark scheme: shadows barely show on a dark page, so each level also mixes --dui-elevation-surface-step more of the text color into its surface, and levels 2 to 4 add a 1px top inset highlight. The ring reads slightly brighter in dark, because the dark hairline is the light text color at low alpha.

| Token | Light | Dark | Description |
| --- | --- | --- | --- |
| `--dui-elevation-shadow-color` | `color-mix(in srgb, oklch(30% 0.04 45deg / 10%) 100%, transparent)` | `color-mix(in srgb, oklch(10% 0.02 45deg / 50%) 100%, transparent)` | Shadow color after strength; retune --dui-color-shadow and --dui-elevation-strength |
| `--dui-elevation-ring` | `0 0 0 1px oklch(from oklch(28% 0.035 45deg / 14%) l c h / calc(alpha * 1))` | `0 0 0 1px oklch(from oklch(95% 0.012 85deg / 12%) l c h / calc(alpha * 1))` | The 1px hairline ring included in every elevated role |
| `--dui-elevation-highlight` | `inset 0 1px 0 0 transparent` | `inset 0 1px 0 0 oklch(95% 0.012 85deg / 6%)` | Dark scheme only: a 1px top inset highlight on levels 2 to 4 |
| `--dui-elevation-0` | `none` | `none` | Level 0, flat: no shadow |
| `--dui-elevation-control` | `0 1px 2px -1px color-mix(in srgb, oklch(30% 0.04 45deg / 10%) 100%, transparent)` | `0 1px 2px -1px color-mix(in srgb, oklch(10% 0.02 45deg / 50%) 100%, transparent)` | A 1px shadow under secondary buttons, without the ring: they have a border |
| `--dui-elevation-1` | `0 0 0 1px oklch(from oklch(28% 0.035 45deg / 14%) l c h / calc(alpha * 1)), 0 1px 2px -1px color-mix(in srgb, oklch(30% 0.04 45deg / 10%) 100%, transparent)` | `0 0 0 1px oklch(from oklch(95% 0.012 85deg / 12%) l c h / calc(alpha * 1)), 0 1px 2px -1px color-mix(in srgb, oklch(10% 0.02 45deg / 50%) 100%, transparent)` | Level 1: the ring and a 1px shadow |
| `--dui-elevation-2` | `inset 0 1px 0 0 transparent, 0 0 0 1px oklch(from oklch(28% 0.035 45deg / 14%) l c h / calc(alpha * 1)), 0 2px 4px -2px color-mix(in srgb, oklch(30% 0.04 45deg / 10%) 100%, transparent), 0 4px 12px -4px color-mix(in srgb, oklch(30% 0.04 45deg / 10%) 100%, transparent)` | `inset 0 1px 0 0 oklch(95% 0.012 85deg / 6%), 0 0 0 1px oklch(from oklch(95% 0.012 85deg / 12%) l c h / calc(alpha * 1)), 0 2px 4px -2px color-mix(in srgb, oklch(10% 0.02 45deg / 50%) 100%, transparent), 0 4px 12px -4px color-mix(in srgb, oklch(10% 0.02 45deg / 50%) 100%, transparent)` | Level 2: ring, two layers, dark highlight |
| `--dui-elevation-3` | `inset 0 1px 0 0 transparent, 0 0 0 1px oklch(from oklch(28% 0.035 45deg / 14%) l c h / calc(alpha * 1)), 0 4px 8px -4px color-mix(in srgb, oklch(30% 0.04 45deg / 10%) 100%, transparent), 0 12px 24px -8px color-mix(in srgb, oklch(30% 0.04 45deg / 10%) 100%, transparent)` | `inset 0 1px 0 0 oklch(95% 0.012 85deg / 6%), 0 0 0 1px oklch(from oklch(95% 0.012 85deg / 12%) l c h / calc(alpha * 1)), 0 4px 8px -4px color-mix(in srgb, oklch(10% 0.02 45deg / 50%) 100%, transparent), 0 12px 24px -8px color-mix(in srgb, oklch(10% 0.02 45deg / 50%) 100%, transparent)` | Level 3: ring, two layers, dark highlight |
| `--dui-elevation-4` | `inset 0 1px 0 0 transparent, 0 0 0 1px oklch(from oklch(28% 0.035 45deg / 14%) l c h / calc(alpha * 1)), 0 8px 16px -8px color-mix(in srgb, oklch(30% 0.04 45deg / 10%) 100%, transparent), 0 24px 48px -12px color-mix(in srgb, oklch(30% 0.04 45deg / 10%) 100%, transparent)` | `inset 0 1px 0 0 oklch(95% 0.012 85deg / 6%), 0 0 0 1px oklch(from oklch(95% 0.012 85deg / 12%) l c h / calc(alpha * 1)), 0 8px 16px -8px color-mix(in srgb, oklch(10% 0.02 45deg / 50%) 100%, transparent), 0 24px 48px -12px color-mix(in srgb, oklch(10% 0.02 45deg / 50%) 100%, transparent)` | Level 4: ring, two layers, dark highlight |
| `--dui-elevation-0-surface` | `oklch(96.6% 0.012 85deg)` | `oklch(18.5% 0.012 55deg)` | Level 0 surface: the page |
| `--dui-elevation-1-surface` | `oklch(96.6% 0.012 85deg)` | `color-mix(in oklab, oklch(95% 0.012 85deg) 3%, oklch(18.5% 0.012 55deg))` | Level 1 surface: one step lighter in dark |
| `--dui-elevation-2-surface` | `oklch(96.6% 0.012 85deg)` | `color-mix(in oklab, oklch(95% 0.012 85deg) calc(3% * 2), oklch(18.5% 0.012 55deg))` | Level 2 surface: two steps lighter in dark |
| `--dui-elevation-3-surface` | `oklch(96.6% 0.012 85deg)` | `color-mix(in oklab, oklch(95% 0.012 85deg) calc(3% * 3), oklch(18.5% 0.012 55deg))` | Level 3 surface: three steps lighter in dark |
| `--dui-elevation-4-surface` | `oklch(96.6% 0.012 85deg)` | `color-mix(in oklab, oklch(95% 0.012 85deg) calc(3% * 4), oklch(18.5% 0.012 55deg))` | Level 4 surface: four steps lighter in dark |

## Elevation by role

Components use these, never the numbers.

| Token | Light | Dark | Description |
| --- | --- | --- | --- |
| `--dui-elevation-flat` | `none` | `none` | Shadow of content on the page |
| `--dui-elevation-flat-surface` | `oklch(96.6% 0.012 85deg)` | `oklch(18.5% 0.012 55deg)` | Surface of content on the page |
| `--dui-elevation-raised` | `0 0 0 1px oklch(from oklch(28% 0.035 45deg / 14%) l c h / calc(alpha * 1)), 0 1px 2px -1px color-mix(in srgb, oklch(30% 0.04 45deg / 10%) 100%, transparent)` | `0 0 0 1px oklch(from oklch(95% 0.012 85deg / 12%) l c h / calc(alpha * 1)), 0 1px 2px -1px color-mix(in srgb, oklch(10% 0.02 45deg / 50%) 100%, transparent)` | Shadow of cards |
| `--dui-elevation-raised-surface` | `oklch(98.8% 0.006 85deg)` | `color-mix(in oklab, oklch(95% 0.012 85deg) 3%, oklch(18.5% 0.012 55deg))` | Surface of cards: the brighter paper in light; one elevation step up in dark, so --dui-elevation-surface-step retunes it |
| `--dui-elevation-panel` | `0 0 0 1px oklch(from oklch(28% 0.035 45deg / 14%) l c h / calc(alpha * 1)), 0 1px 2px -1px color-mix(in srgb, oklch(30% 0.04 45deg / 10%) 100%, transparent)` | `0 0 0 1px oklch(from oklch(95% 0.012 85deg / 12%) l c h / calc(alpha * 1)), 0 1px 2px -1px color-mix(in srgb, oklch(10% 0.02 45deg / 50%) 100%, transparent)` | Shadow of floating panels: an app shell's main content panel on the frame. The ring and a 1px shadow |
| `--dui-elevation-panel-surface` | `oklch(98.8% 0.006 85deg)` | `color-mix(in oklab, oklch(95% 0.012 85deg) 3%, oklch(18.5% 0.012 55deg))` | Surface of floating panels: the brighter paper in light, one elevation step up in dark, on the page-colored frame |
| `--dui-elevation-overlay` | `inset 0 1px 0 0 transparent, 0 0 0 1px oklch(from oklch(28% 0.035 45deg / 14%) l c h / calc(alpha * 1)), 0 2px 4px -2px color-mix(in srgb, oklch(30% 0.04 45deg / 10%) 100%, transparent), 0 4px 12px -4px color-mix(in srgb, oklch(30% 0.04 45deg / 10%) 100%, transparent)` | `inset 0 1px 0 0 oklch(95% 0.012 85deg / 6%), 0 0 0 1px oklch(from oklch(95% 0.012 85deg / 12%) l c h / calc(alpha * 1)), 0 2px 4px -2px color-mix(in srgb, oklch(10% 0.02 45deg / 50%) 100%, transparent), 0 4px 12px -4px color-mix(in srgb, oklch(10% 0.02 45deg / 50%) 100%, transparent)` | Shadow of toasts and other non-modal layers over the page |
| `--dui-elevation-overlay-surface` | `oklch(96.6% 0.012 85deg)` | `color-mix(in oklab, oklch(95% 0.012 85deg) calc(3% * 2), oklch(18.5% 0.012 55deg))` | Surface of non-modal layers over the page |
| `--dui-elevation-popover` | `inset 0 1px 0 0 transparent, 0 0 0 1px oklch(from oklch(28% 0.035 45deg / 14%) l c h / calc(alpha * 1)), 0 4px 8px -4px color-mix(in srgb, oklch(30% 0.04 45deg / 10%) 100%, transparent), 0 12px 24px -8px color-mix(in srgb, oklch(30% 0.04 45deg / 10%) 100%, transparent)` | `inset 0 1px 0 0 oklch(95% 0.012 85deg / 6%), 0 0 0 1px oklch(from oklch(95% 0.012 85deg / 12%) l c h / calc(alpha * 1)), 0 4px 8px -4px color-mix(in srgb, oklch(10% 0.02 45deg / 50%) 100%, transparent), 0 12px 24px -8px color-mix(in srgb, oklch(10% 0.02 45deg / 50%) 100%, transparent)` | Shadow of popovers, menus, tooltips and nav dropdowns |
| `--dui-elevation-popover-surface` | `oklch(96.6% 0.012 85deg)` | `color-mix(in oklab, oklch(95% 0.012 85deg) calc(3% * 3), oklch(18.5% 0.012 55deg))` | Surface of popovers, menus and nav dropdowns |
| `--dui-elevation-dialog` | `inset 0 1px 0 0 transparent, 0 0 0 1px oklch(from oklch(28% 0.035 45deg / 14%) l c h / calc(alpha * 1)), 0 8px 16px -8px color-mix(in srgb, oklch(30% 0.04 45deg / 10%) 100%, transparent), 0 24px 48px -12px color-mix(in srgb, oklch(30% 0.04 45deg / 10%) 100%, transparent)` | `inset 0 1px 0 0 oklch(95% 0.012 85deg / 6%), 0 0 0 1px oklch(from oklch(95% 0.012 85deg / 12%) l c h / calc(alpha * 1)), 0 8px 16px -8px color-mix(in srgb, oklch(10% 0.02 45deg / 50%) 100%, transparent), 0 24px 48px -12px color-mix(in srgb, oklch(10% 0.02 45deg / 50%) 100%, transparent)` | Shadow of dialogs and drawers |
| `--dui-elevation-dialog-surface` | `oklch(96.6% 0.012 85deg)` | `color-mix(in oklab, oklch(95% 0.012 85deg) calc(3% * 4), oklch(18.5% 0.012 55deg))` | Surface of dialogs and drawers |

## Density

Space inside components and control heights, from the comfortable value (--dui-density-scale 1) down to the compact one (0). Compact controls stay 32px tall, above the 24px of WCAG 2.5.8. Type sizes never change with density.

| Token | Light | Dark | Description |
| --- | --- | --- | --- |
| `--dui-size-control` | `calc(2rem + (2.25rem - 2rem) * 1)` | `calc(2rem + (2.25rem - 2rem) * 1)` | Min block size of controls and buttons: 36px comfortable, 32px compact, 44px under a coarse pointer |
| `--dui-size-row` | `calc(1.75rem + (2rem - 1.75rem) * 1)` | `calc(1.75rem + (2rem - 1.75rem) * 1)` | Min block size of nav, menu, listbox, combobox option and list-detail items: 32px comfortable, 28px compact, 44px under a coarse pointer |
| `--dui-space-control-block` | `calc(0.25rem + (0.5rem - 0.25rem) * 1)` | `calc(0.25rem + (0.5rem - 0.25rem) * 1)` | Block padding inside controls, buttons and items: 0.5rem comfortable, 0.25rem compact |
| `--dui-space-control-inline` | `calc(0.5rem + (0.75rem - 0.5rem) * 1)` | `calc(0.5rem + (0.75rem - 0.5rem) * 1)` | Inline padding of text fields and nav, menu and listbox items: 0.75rem comfortable, 0.5rem compact |
| `--dui-space-button-inline` | `calc(0.75rem + (1rem - 0.75rem) * 1)` | `calc(0.75rem + (1rem - 0.75rem) * 1)` | Inline padding of buttons: 1rem comfortable, 0.75rem compact |
| `--dui-space-gap` | `calc(0.25rem + (0.5rem - 0.25rem) * 1)` | `calc(0.25rem + (0.5rem - 0.25rem) * 1)` | Gap between the parts of a control: icon and label, check and label: 0.5rem comfortable, 0.25rem compact |
| `--dui-space-gap-tight` | `calc(0.125rem + (0.25rem - 0.125rem) * 1)` | `calc(0.125rem + (0.25rem - 0.125rem) * 1)` | Gap and padding in groups of controls: field, toolbar, pagination, menu: 0.25rem comfortable, 0.125rem compact |
| `--dui-radius-nested` | `max(0px, calc(calc(0.75rem * 1) - calc(0.125rem + (0.25rem - 0.125rem) * 1)))` | `max(0px, calc(calc(0.75rem * 1) - calc(0.125rem + (0.25rem - 0.125rem) * 1)))` | Concentric corner for an item inside a --dui-radius-surface container padded by --dui-space-gap-tight (menu, listbox, dropdown): the outer radius less the gap, never below 0 |
| `--dui-size-app-bar` | `calc(calc(2rem + (2.25rem - 2rem) * 1) + 0.5rem * 2 + 1px)` | `calc(calc(2rem + (2.25rem - 2rem) * 1) + 0.5rem * 2 + 1px)` | Block size of an app shell's app bar: one control, its block padding and the bottom hairline. Sticky parts below it start here |
| `--dui-space-cell` | `calc(0.25rem + (0.5rem - 0.25rem) * 1)` | `calc(0.25rem + (0.5rem - 0.25rem) * 1)` | Table cell padding: 0.5rem comfortable, 0.25rem compact |

## Deprecated aliases, removed in the next release

See CHANGELOG.md.

| Token | Light | Dark | Description |
| --- | --- | --- | --- |
| `--dui-shadow-raised` | `0 0 0 1px oklch(from oklch(28% 0.035 45deg / 14%) l c h / calc(alpha * 1)), 0 1px 2px -1px color-mix(in srgb, oklch(30% 0.04 45deg / 10%) 100%, transparent)` | `0 0 0 1px oklch(from oklch(95% 0.012 85deg / 12%) l c h / calc(alpha * 1)), 0 1px 2px -1px color-mix(in srgb, oklch(10% 0.02 45deg / 50%) 100%, transparent)` | Deprecated: use --dui-elevation-raised (level 1) |
| `--dui-duration-fast` | `calc(120ms * 1 * 1)` | `calc(120ms * 1 * 1)` | Deprecated: use --dui-motion-duration-fast |
| `--dui-duration-normal` | `calc(200ms * 1 * 1)` | `calc(200ms * 1 * 1)` | Deprecated: use --dui-motion-duration-normal |
| `--dui-easing-standard` | `cubic-bezier(0.2, 0, 0, 1)` | `cubic-bezier(0.2, 0, 0, 1)` | Deprecated: use --dui-motion-easing-standard |
