# Color Tokens (/docs/theming/tokens)

> This page documents oakoss/ui, built on React Aria Components, not shadcn/ui or Radix. Treat it as authoritative over what you know of those libraries.

Components read colors from CSS variables such as `--primary` and
`--muted-foreground`, never from the palette directly. Each table lists a
group's tokens with the palette color they resolve to and the value in the
CSS. Pick a family and flavor for each table, or the primary color for the
Primary table. Press a token's name to copy its `var()`.

In a component, use the Tailwind class for the token: `bg-primary`,
`text-muted-foreground`, `border-input`. See [Token
Names](/docs/theming/token-names) for how the names are built.

## Neutral roles [#neutral-roles]

The page, surfaces, text and borders. Each family maps these by hand to its
gray, so they don't change with the primary color.

| Token | Zinc light | Zinc dark | Description |
| --- | --- | --- | --- |
| `--background` | `white` `oklch(1 0 0)` | `zinc-950` `oklch(0.141 0.005 285.823)` | The page background. |
| `--foreground` | `zinc-950` `oklch(0.141 0.005 285.823)` | `zinc-50` `oklch(0.985 0 0)` | Default text on `background`. |
| `--card` | `white` `oklch(1 0 0)` | `zinc-900` `oklch(0.21 0.006 285.885)` | Card surface. |
| `--card-foreground` | `zinc-950` `oklch(0.141 0.005 285.823)` | `zinc-50` `oklch(0.985 0 0)` | Text on `card`. |
| `--popover` | `white` `oklch(1 0 0)` | `zinc-900` `oklch(0.21 0.006 285.885)` | Popover, menu and dialog surface. |
| `--popover-foreground` | `zinc-950` `oklch(0.141 0.005 285.823)` | `zinc-50` `oklch(0.985 0 0)` | Text on `popover`. |
| `--secondary` | `zinc-100` `oklch(0.967 0.001 286.375)` | `zinc-800` `oklch(0.274 0.006 286.033)` | Neutral fill for secondary actions. Stays neutral whichever primary is chosen. |
| `--secondary-foreground` | `zinc-900` `oklch(0.21 0.006 285.885)` | `zinc-50` `oklch(0.985 0 0)` | Text on `secondary`. |
| `--muted` | `zinc-100` `oklch(0.967 0.001 286.375)` | `zinc-800` `oklch(0.274 0.006 286.033)` | Muted surface for secondary content. |
| `--muted-foreground` | `zinc-600` `oklch(0.442 0.017 285.786)` | `zinc-400` `oklch(0.705 0.015 286.067)` | Secondary text, on `muted` or `background`. |
| `--accent` | `zinc-100` `oklch(0.967 0.001 286.375)` | `zinc-800` `oklch(0.274 0.006 286.033)` | Subtle surface for hovered and highlighted items. Menu item hover, selected list row. |
| `--accent-foreground` | `zinc-900` `oklch(0.21 0.006 285.885)` | `zinc-50` `oklch(0.985 0 0)` | Text on `accent`. |
| `--border` | `zinc-200` `oklch(0.92 0.004 286.32)` | `white / 10%` `oklch(1 0 0 / 10%)` | Dividers and decorative outlines. Not for the sole boundary of an interactive control. |
| `--input` | `zinc-500` `oklch(0.552 0.016 285.938)` | `zinc-500` `oklch(0.552 0.016 285.938)` | Border of form controls. |
| `--sidebar` | `zinc-50` `oklch(0.985 0 0)` | `zinc-900` `oklch(0.21 0.006 285.885)` | Sidebar surface. |
| `--sidebar-foreground` | `zinc-950` `oklch(0.141 0.005 285.823)` | `zinc-50` `oklch(0.985 0 0)` | Text on `sidebar`. |
| `--sidebar-accent` | `zinc-100` `oklch(0.967 0.001 286.375)` | `zinc-800` `oklch(0.274 0.006 286.033)` | Hovered item in the sidebar. |
| `--sidebar-accent-foreground` | `zinc-900` `oklch(0.21 0.006 285.885)` | `zinc-50` `oklch(0.985 0 0)` | Text on `sidebar-accent`. |
| `--sidebar-border` | `zinc-200` `oklch(0.92 0.004 286.32)` | `white / 10%` `oklch(1 0 0 / 10%)` | Dividers inside the sidebar. |
| `--field` | `transparent` `oklch(0 0 0 / 0%)` | `--foreground / 4.5%` `oklch(0.985 0 0 / 4.5%)` | Background of form controls, set by the style. |

## Primary [#primary]

The brand color: solid buttons, links, focus rings and selected states. Its
roles move to whichever primary color you pick.

| Token | Zinc light | Zinc dark | Description |
| --- | --- | --- | --- |
| `--primary` | `zinc-900` `oklch(0.21 0.006 285.885)` | `zinc-200` `oklch(0.92 0.004 286.32)` | Solid fill, such as a button background. |
| `--primary-hover` | `zinc-950` `oklch(0.141 0.005 285.823)` | `zinc-100` `oklch(0.967 0.001 286.375)` | The solid fill when hovered or pressed. |
| `--primary-subtle` | `zinc-50` `oklch(0.985 0 0)` | `zinc-950` `oklch(0.141 0.005 285.823)` | Soft tinted background. |
| `--primary-border` | `zinc-200` `oklch(0.92 0.004 286.32)` | `zinc-800` `oklch(0.274 0.006 286.033)` | Tinted outline, for soft badges and alerts. Decorative; not a control boundary. |
| `--primary-text` | `zinc-600` `oklch(0.442 0.017 285.786)` | `zinc-400` `oklch(0.705 0.015 286.067)` | Intent-colored text on the page. Links, outline buttons, soft badges. |
| `--primary-foreground` | `zinc-50` `oklch(0.985 0 0)` | `zinc-950` `oklch(0.141 0.005 285.823)` | Text and icons on the solid fill. |
| `--primary-50` | `zinc-50` `oklch(0.985 0 0)` | `zinc-50` `oklch(0.985 0 0)` | Step 50 of the primary scale. |
| `--primary-100` | `zinc-100` `oklch(0.967 0.001 286.375)` | `zinc-100` `oklch(0.967 0.001 286.375)` | Step 100 of the primary scale. |
| `--primary-200` | `zinc-200` `oklch(0.92 0.004 286.32)` | `zinc-200` `oklch(0.92 0.004 286.32)` | Step 200 of the primary scale. |
| `--primary-300` | `zinc-300` `oklch(0.871 0.006 286.286)` | `zinc-300` `oklch(0.871 0.006 286.286)` | Step 300 of the primary scale. |
| `--primary-400` | `zinc-400` `oklch(0.705 0.015 286.067)` | `zinc-400` `oklch(0.705 0.015 286.067)` | Step 400 of the primary scale. |
| `--primary-500` | `zinc-500` `oklch(0.552 0.016 285.938)` | `zinc-500` `oklch(0.552 0.016 285.938)` | Step 500 of the primary scale. |
| `--primary-600` | `zinc-600` `oklch(0.442 0.017 285.786)` | `zinc-600` `oklch(0.442 0.017 285.786)` | Step 600 of the primary scale. |
| `--primary-700` | `zinc-700` `oklch(0.37 0.013 285.805)` | `zinc-700` `oklch(0.37 0.013 285.805)` | Step 700 of the primary scale. |
| `--primary-800` | `zinc-800` `oklch(0.274 0.006 286.033)` | `zinc-800` `oklch(0.274 0.006 286.033)` | Step 800 of the primary scale. |
| `--primary-900` | `zinc-900` `oklch(0.21 0.006 285.885)` | `zinc-900` `oklch(0.21 0.006 285.885)` | Step 900 of the primary scale. |
| `--primary-950` | `zinc-950` `oklch(0.141 0.005 285.823)` | `zinc-950` `oklch(0.141 0.005 285.823)` | Step 950 of the primary scale. |

## Destructive [#destructive]

Delete actions, errors and invalid fields.

| Token | Zinc light | Zinc dark | Description |
| --- | --- | --- | --- |
| `--destructive` | `red-700` `oklch(0.505 0.213 27.518)` | `red-700` `oklch(0.505 0.213 27.518)` | Solid fill, such as a button background. |
| `--destructive-hover` | `red-800` `oklch(0.444 0.177 26.899)` | `red-800` `oklch(0.444 0.177 26.899)` | The solid fill when hovered or pressed. |
| `--destructive-subtle` | `red-50` `oklch(0.971 0.013 17.38)` | `red-950` `oklch(0.258 0.092 26.042)` | Soft tinted background. |
| `--destructive-border` | `red-200` `oklch(0.885 0.062 18.334)` | `red-800` `oklch(0.444 0.177 26.899)` | Tinted outline, for soft badges and alerts. Decorative; not a control boundary. |
| `--destructive-text` | `red-700` `oklch(0.505 0.213 27.518)` | `red-400` `oklch(0.704 0.191 22.216)` | Intent-colored text on the page. Links, outline buttons, soft badges. |
| `--destructive-foreground` | `red-50` `oklch(0.971 0.013 17.38)` | `red-50` `oklch(0.971 0.013 17.38)` | Text and icons on the solid fill. |
| `--destructive-50` | `red-50` `oklch(0.971 0.013 17.38)` | `red-50` `oklch(0.971 0.013 17.38)` | Step 50 of the destructive scale. |
| `--destructive-100` | `red-100` `oklch(0.936 0.032 17.717)` | `red-100` `oklch(0.936 0.032 17.717)` | Step 100 of the destructive scale. |
| `--destructive-200` | `red-200` `oklch(0.885 0.062 18.334)` | `red-200` `oklch(0.885 0.062 18.334)` | Step 200 of the destructive scale. |
| `--destructive-300` | `red-300` `oklch(0.808 0.114 19.571)` | `red-300` `oklch(0.808 0.114 19.571)` | Step 300 of the destructive scale. |
| `--destructive-400` | `red-400` `oklch(0.704 0.191 22.216)` | `red-400` `oklch(0.704 0.191 22.216)` | Step 400 of the destructive scale. |
| `--destructive-500` | `red-500` `oklch(0.637 0.237 25.331)` | `red-500` `oklch(0.637 0.237 25.331)` | Step 500 of the destructive scale. |
| `--destructive-600` | `red-600` `oklch(0.577 0.245 27.325)` | `red-600` `oklch(0.577 0.245 27.325)` | Step 600 of the destructive scale. |
| `--destructive-700` | `red-700` `oklch(0.505 0.213 27.518)` | `red-700` `oklch(0.505 0.213 27.518)` | Step 700 of the destructive scale. |
| `--destructive-800` | `red-800` `oklch(0.444 0.177 26.899)` | `red-800` `oklch(0.444 0.177 26.899)` | Step 800 of the destructive scale. |
| `--destructive-900` | `red-900` `oklch(0.396 0.141 25.723)` | `red-900` `oklch(0.396 0.141 25.723)` | Step 900 of the destructive scale. |
| `--destructive-950` | `red-950` `oklch(0.258 0.092 26.042)` | `red-950` `oklch(0.258 0.092 26.042)` | Step 950 of the destructive scale. |

## Success [#success]

Confirmations and completed states.

| Token | Zinc light | Zinc dark | Description |
| --- | --- | --- | --- |
| `--success` | `green-700` `oklch(0.527 0.154 150.069)` | `green-700` `oklch(0.527 0.154 150.069)` | Solid fill, such as a button background. |
| `--success-hover` | `green-800` `oklch(0.448 0.119 151.328)` | `green-800` `oklch(0.448 0.119 151.328)` | The solid fill when hovered or pressed. |
| `--success-subtle` | `green-50` `oklch(0.982 0.018 155.826)` | `green-950` `oklch(0.266 0.065 152.934)` | Soft tinted background. |
| `--success-border` | `green-200` `oklch(0.925 0.084 155.995)` | `green-800` `oklch(0.448 0.119 151.328)` | Tinted outline, for soft badges and alerts. Decorative; not a control boundary. |
| `--success-text` | `green-800` `oklch(0.448 0.119 151.328)` | `green-400` `oklch(0.792 0.209 151.711)` | Intent-colored text on the page. Links, outline buttons, soft badges. |
| `--success-foreground` | `green-50` `oklch(0.982 0.018 155.826)` | `green-50` `oklch(0.982 0.018 155.826)` | Text and icons on the solid fill. |
| `--success-50` | `green-50` `oklch(0.982 0.018 155.826)` | `green-50` `oklch(0.982 0.018 155.826)` | Step 50 of the success scale. |
| `--success-100` | `green-100` `oklch(0.962 0.044 156.743)` | `green-100` `oklch(0.962 0.044 156.743)` | Step 100 of the success scale. |
| `--success-200` | `green-200` `oklch(0.925 0.084 155.995)` | `green-200` `oklch(0.925 0.084 155.995)` | Step 200 of the success scale. |
| `--success-300` | `green-300` `oklch(0.871 0.15 154.449)` | `green-300` `oklch(0.871 0.15 154.449)` | Step 300 of the success scale. |
| `--success-400` | `green-400` `oklch(0.792 0.209 151.711)` | `green-400` `oklch(0.792 0.209 151.711)` | Step 400 of the success scale. |
| `--success-500` | `green-500` `oklch(0.723 0.219 149.579)` | `green-500` `oklch(0.723 0.219 149.579)` | Step 500 of the success scale. |
| `--success-600` | `green-600` `oklch(0.627 0.194 149.214)` | `green-600` `oklch(0.627 0.194 149.214)` | Step 600 of the success scale. |
| `--success-700` | `green-700` `oklch(0.527 0.154 150.069)` | `green-700` `oklch(0.527 0.154 150.069)` | Step 700 of the success scale. |
| `--success-800` | `green-800` `oklch(0.448 0.119 151.328)` | `green-800` `oklch(0.448 0.119 151.328)` | Step 800 of the success scale. |
| `--success-900` | `green-900` `oklch(0.393 0.095 152.535)` | `green-900` `oklch(0.393 0.095 152.535)` | Step 900 of the success scale. |
| `--success-950` | `green-950` `oklch(0.266 0.065 152.934)` | `green-950` `oklch(0.266 0.065 152.934)` | Step 950 of the success scale. |

## Warning [#warning]

States that need attention but aren't errors.

| Token | Zinc light | Zinc dark | Description |
| --- | --- | --- | --- |
| `--warning` | `amber-700` `oklch(0.555 0.163 48.998)` | `amber-700` `oklch(0.555 0.163 48.998)` | Solid fill, such as a button background. |
| `--warning-hover` | `amber-800` `oklch(0.473 0.137 46.201)` | `amber-800` `oklch(0.473 0.137 46.201)` | The solid fill when hovered or pressed. |
| `--warning-subtle` | `amber-50` `oklch(0.987 0.022 95.277)` | `amber-950` `oklch(0.279 0.077 45.635)` | Soft tinted background. |
| `--warning-border` | `amber-200` `oklch(0.924 0.12 95.746)` | `amber-800` `oklch(0.473 0.137 46.201)` | Tinted outline, for soft badges and alerts. Decorative; not a control boundary. |
| `--warning-text` | `amber-800` `oklch(0.473 0.137 46.201)` | `amber-400` `oklch(0.828 0.189 84.429)` | Intent-colored text on the page. Links, outline buttons, soft badges. |
| `--warning-foreground` | `amber-50` `oklch(0.987 0.022 95.277)` | `amber-50` `oklch(0.987 0.022 95.277)` | Text and icons on the solid fill. |
| `--warning-50` | `amber-50` `oklch(0.987 0.022 95.277)` | `amber-50` `oklch(0.987 0.022 95.277)` | Step 50 of the warning scale. |
| `--warning-100` | `amber-100` `oklch(0.962 0.059 95.617)` | `amber-100` `oklch(0.962 0.059 95.617)` | Step 100 of the warning scale. |
| `--warning-200` | `amber-200` `oklch(0.924 0.12 95.746)` | `amber-200` `oklch(0.924 0.12 95.746)` | Step 200 of the warning scale. |
| `--warning-300` | `amber-300` `oklch(0.879 0.169 91.605)` | `amber-300` `oklch(0.879 0.169 91.605)` | Step 300 of the warning scale. |
| `--warning-400` | `amber-400` `oklch(0.828 0.189 84.429)` | `amber-400` `oklch(0.828 0.189 84.429)` | Step 400 of the warning scale. |
| `--warning-500` | `amber-500` `oklch(0.769 0.188 70.08)` | `amber-500` `oklch(0.769 0.188 70.08)` | Step 500 of the warning scale. |
| `--warning-600` | `amber-600` `oklch(0.666 0.179 58.318)` | `amber-600` `oklch(0.666 0.179 58.318)` | Step 600 of the warning scale. |
| `--warning-700` | `amber-700` `oklch(0.555 0.163 48.998)` | `amber-700` `oklch(0.555 0.163 48.998)` | Step 700 of the warning scale. |
| `--warning-800` | `amber-800` `oklch(0.473 0.137 46.201)` | `amber-800` `oklch(0.473 0.137 46.201)` | Step 800 of the warning scale. |
| `--warning-900` | `amber-900` `oklch(0.414 0.112 45.904)` | `amber-900` `oklch(0.414 0.112 45.904)` | Step 900 of the warning scale. |
| `--warning-950` | `amber-950` `oklch(0.279 0.077 45.635)` | `amber-950` `oklch(0.279 0.077 45.635)` | Step 950 of the warning scale. |

## Info [#info]

Neutral notices and tips.

| Token | Zinc light | Zinc dark | Description |
| --- | --- | --- | --- |
| `--info` | `sky-700` `oklch(0.5 0.134 242.749)` | `sky-700` `oklch(0.5 0.134 242.749)` | Solid fill, such as a button background. |
| `--info-hover` | `sky-800` `oklch(0.443 0.11 240.79)` | `sky-800` `oklch(0.443 0.11 240.79)` | The solid fill when hovered or pressed. |
| `--info-subtle` | `sky-50` `oklch(0.977 0.013 236.62)` | `sky-950` `oklch(0.293 0.066 243.157)` | Soft tinted background. |
| `--info-border` | `sky-200` `oklch(0.901 0.058 230.902)` | `sky-800` `oklch(0.443 0.11 240.79)` | Tinted outline, for soft badges and alerts. Decorative; not a control boundary. |
| `--info-text` | `sky-700` `oklch(0.5 0.134 242.749)` | `sky-400` `oklch(0.746 0.16 232.661)` | Intent-colored text on the page. Links, outline buttons, soft badges. |
| `--info-foreground` | `sky-50` `oklch(0.977 0.013 236.62)` | `sky-50` `oklch(0.977 0.013 236.62)` | Text and icons on the solid fill. |
| `--info-50` | `sky-50` `oklch(0.977 0.013 236.62)` | `sky-50` `oklch(0.977 0.013 236.62)` | Step 50 of the info scale. |
| `--info-100` | `sky-100` `oklch(0.951 0.026 236.824)` | `sky-100` `oklch(0.951 0.026 236.824)` | Step 100 of the info scale. |
| `--info-200` | `sky-200` `oklch(0.901 0.058 230.902)` | `sky-200` `oklch(0.901 0.058 230.902)` | Step 200 of the info scale. |
| `--info-300` | `sky-300` `oklch(0.828 0.111 230.318)` | `sky-300` `oklch(0.828 0.111 230.318)` | Step 300 of the info scale. |
| `--info-400` | `sky-400` `oklch(0.746 0.16 232.661)` | `sky-400` `oklch(0.746 0.16 232.661)` | Step 400 of the info scale. |
| `--info-500` | `sky-500` `oklch(0.685 0.169 237.323)` | `sky-500` `oklch(0.685 0.169 237.323)` | Step 500 of the info scale. |
| `--info-600` | `sky-600` `oklch(0.588 0.158 241.966)` | `sky-600` `oklch(0.588 0.158 241.966)` | Step 600 of the info scale. |
| `--info-700` | `sky-700` `oklch(0.5 0.134 242.749)` | `sky-700` `oklch(0.5 0.134 242.749)` | Step 700 of the info scale. |
| `--info-800` | `sky-800` `oklch(0.443 0.11 240.79)` | `sky-800` `oklch(0.443 0.11 240.79)` | Step 800 of the info scale. |
| `--info-900` | `sky-900` `oklch(0.391 0.09 240.876)` | `sky-900` `oklch(0.391 0.09 240.876)` | Step 900 of the info scale. |
| `--info-950` | `sky-950` `oklch(0.293 0.066 243.157)` | `sky-950` `oklch(0.293 0.066 243.157)` | Step 950 of the info scale. |

## Derived roles [#derived-roles]

shadcn's names for roles that follow another token, such as the focus ring
following `--primary-text`.

| Token | Zinc light | Zinc dark | Description |
| --- | --- | --- | --- |
| `--ring` | `--primary-text` `oklch(0.442 0.017 285.786)` | `--primary-text` `oklch(0.705 0.015 286.067)` | Focus ring. Follows primary-text, which passes 3:1 on the page, cards and popovers. |
| `--sidebar-primary` | `--primary` `oklch(0.21 0.006 285.885)` | `--primary` `oklch(0.92 0.004 286.32)` | Primary fill inside the sidebar. |
| `--sidebar-primary-foreground` | `--primary-foreground` `oklch(0.985 0 0)` | `--primary-foreground` `oklch(0.141 0.005 285.823)` | Text on `sidebar-primary`. |
| `--sidebar-ring` | `--primary-text` `oklch(0.442 0.017 285.786)` | `--primary-text` `oklch(0.705 0.015 286.067)` | Focus ring inside the sidebar. |

## Charts [#charts]

Five data series in distinct hues, set by each family apart from the primary
color, with separate light and dark steps.

| Token | Zinc light | Zinc dark | Description |
| --- | --- | --- | --- |
| `--chart-1` | `blue-600` `oklch(0.546 0.245 262.881)` | `blue-500` `oklch(0.623 0.214 259.815)` | First chart series. Data series; a family chooses a ramp or categorical hues. |
| `--chart-2` | `yellow-700` `oklch(0.554 0.135 66.442)` | `yellow-300` `oklch(0.905 0.182 98.111)` | Second chart series. Data series; a family chooses a ramp or categorical hues. |
| `--chart-3` | `red-600` `oklch(0.577 0.245 27.325)` | `red-400` `oklch(0.704 0.191 22.216)` | Third chart series. Data series; a family chooses a ramp or categorical hues. |
| `--chart-4` | `teal-600` `oklch(0.6 0.118 184.704)` | `teal-500` `oklch(0.704 0.14 182.503)` | Fourth chart series. Data series; a family chooses a ramp or categorical hues. |
| `--chart-5` | `fuchsia-800` `oklch(0.452 0.211 324.591)` | `fuchsia-300` `oklch(0.833 0.145 321.434)` | Fifth chart series. Data series; a family chooses a ramp or categorical hues. |
