Color Tokens
Every color token, the palette color it resolves to in each family and flavor, and what it's for.
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 for how the names are built.
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 | Source | Value | Description |
|---|---|---|---|
| white | oklch(1 0 0) | The page background. | |
| zinc-950 | oklch(0.141 0.005 285.823) | Default text on background. | |
| white | oklch(1 0 0) | Card surface. | |
| zinc-950 | oklch(0.141 0.005 285.823) | Text on card. | |
| white | oklch(1 0 0) | Popover, menu and dialog surface. | |
| zinc-950 | oklch(0.141 0.005 285.823) | Text on popover. | |
| zinc-100 | oklch(0.967 0.001 286.375) | Neutral fill for secondary actions. Stays neutral whichever primary is chosen. | |
| zinc-900 | oklch(0.21 0.006 285.885) | Text on secondary. | |
| zinc-100 | oklch(0.967 0.001 286.375) | Muted surface for secondary content. | |
| zinc-600 | oklch(0.442 0.017 285.786) | Secondary text, on muted or background. | |
| zinc-100 | oklch(0.967 0.001 286.375) | Subtle surface for hovered and highlighted items. Menu item hover, selected list row. | |
| zinc-900 | oklch(0.21 0.006 285.885) | Text on accent. | |
| zinc-200 | oklch(0.92 0.004 286.32) | Dividers and decorative outlines. Not for the sole boundary of an interactive control. | |
| zinc-500 | oklch(0.552 0.016 285.938) | Border of form controls. | |
| zinc-50 | oklch(0.985 0 0) | Sidebar surface. | |
| zinc-950 | oklch(0.141 0.005 285.823) | Text on sidebar. | |
| zinc-100 | oklch(0.967 0.001 286.375) | Hovered item in the sidebar. | |
| zinc-900 | oklch(0.21 0.006 285.885) | Text on sidebar-accent. | |
| zinc-200 | oklch(0.92 0.004 286.32) | Dividers inside the sidebar. | |
| transparent | oklch(0 0 0 / 0%) | Background of form controls, set by the style. |
Primary
The brand color: solid buttons, links, focus rings and selected states. Its roles move to whichever primary color you pick.
| Token | Source | Value | Description |
|---|---|---|---|
| zinc-900 | oklch(0.21 0.006 285.885) | Solid fill, such as a button background. | |
| zinc-950 | oklch(0.141 0.005 285.823) | The solid fill when hovered or pressed. | |
| zinc-50 | oklch(0.985 0 0) | Soft tinted background. | |
| zinc-200 | oklch(0.92 0.004 286.32) | Tinted outline, for soft badges and alerts. Decorative; not a control boundary. | |
| zinc-600 | oklch(0.442 0.017 285.786) | Intent-colored text on the page. Links, outline buttons, soft badges. | |
| zinc-50 | oklch(0.985 0 0) | Text and icons on the solid fill. | |
| zinc-50 | oklch(0.985 0 0) | Step 50 of the primary scale. | |
| zinc-100 | oklch(0.967 0.001 286.375) | Step 100 of the primary scale. | |
| zinc-200 | oklch(0.92 0.004 286.32) | Step 200 of the primary scale. | |
| zinc-300 | oklch(0.871 0.006 286.286) | Step 300 of the primary scale. | |
| zinc-400 | oklch(0.705 0.015 286.067) | Step 400 of the primary scale. | |
| zinc-500 | oklch(0.552 0.016 285.938) | Step 500 of the primary scale. | |
| zinc-600 | oklch(0.442 0.017 285.786) | Step 600 of the primary scale. | |
| zinc-700 | oklch(0.37 0.013 285.805) | Step 700 of the primary scale. | |
| zinc-800 | oklch(0.274 0.006 286.033) | Step 800 of the primary scale. | |
| zinc-900 | oklch(0.21 0.006 285.885) | Step 900 of the primary scale. | |
| zinc-950 | oklch(0.141 0.005 285.823) | Step 950 of the primary scale. |
Destructive
Delete actions, errors and invalid fields.
| Token | Source | Value | Description |
|---|---|---|---|
| red-700 | oklch(0.505 0.213 27.518) | Solid fill, such as a button background. | |
| red-800 | oklch(0.444 0.177 26.899) | The solid fill when hovered or pressed. | |
| red-50 | oklch(0.971 0.013 17.38) | Soft tinted background. | |
| red-200 | oklch(0.885 0.062 18.334) | Tinted outline, for soft badges and alerts. Decorative; not a control boundary. | |
| red-700 | oklch(0.505 0.213 27.518) | Intent-colored text on the page. Links, outline buttons, soft badges. | |
| red-50 | oklch(0.971 0.013 17.38) | Text and icons on the solid fill. | |
| red-50 | oklch(0.971 0.013 17.38) | Step 50 of the destructive scale. | |
| red-100 | oklch(0.936 0.032 17.717) | Step 100 of the destructive scale. | |
| red-200 | oklch(0.885 0.062 18.334) | Step 200 of the destructive scale. | |
| red-300 | oklch(0.808 0.114 19.571) | Step 300 of the destructive scale. | |
| red-400 | oklch(0.704 0.191 22.216) | Step 400 of the destructive scale. | |
| red-500 | oklch(0.637 0.237 25.331) | Step 500 of the destructive scale. | |
| red-600 | oklch(0.577 0.245 27.325) | Step 600 of the destructive scale. | |
| red-700 | oklch(0.505 0.213 27.518) | Step 700 of the destructive scale. | |
| red-800 | oklch(0.444 0.177 26.899) | Step 800 of the destructive scale. | |
| red-900 | oklch(0.396 0.141 25.723) | Step 900 of the destructive scale. | |
| red-950 | oklch(0.258 0.092 26.042) | Step 950 of the destructive scale. |
Success
Confirmations and completed states.
| Token | Source | Value | Description |
|---|---|---|---|
| green-700 | oklch(0.527 0.154 150.069) | Solid fill, such as a button background. | |
| green-800 | oklch(0.448 0.119 151.328) | The solid fill when hovered or pressed. | |
| green-50 | oklch(0.982 0.018 155.826) | Soft tinted background. | |
| green-200 | oklch(0.925 0.084 155.995) | Tinted outline, for soft badges and alerts. Decorative; not a control boundary. | |
| green-800 | oklch(0.448 0.119 151.328) | Intent-colored text on the page. Links, outline buttons, soft badges. | |
| green-50 | oklch(0.982 0.018 155.826) | Text and icons on the solid fill. | |
| green-50 | oklch(0.982 0.018 155.826) | Step 50 of the success scale. | |
| green-100 | oklch(0.962 0.044 156.743) | Step 100 of the success scale. | |
| green-200 | oklch(0.925 0.084 155.995) | Step 200 of the success scale. | |
| green-300 | oklch(0.871 0.15 154.449) | Step 300 of the success scale. | |
| green-400 | oklch(0.792 0.209 151.711) | Step 400 of the success scale. | |
| green-500 | oklch(0.723 0.219 149.579) | Step 500 of the success scale. | |
| green-600 | oklch(0.627 0.194 149.214) | Step 600 of the success scale. | |
| green-700 | oklch(0.527 0.154 150.069) | Step 700 of the success scale. | |
| green-800 | oklch(0.448 0.119 151.328) | Step 800 of the success scale. | |
| green-900 | oklch(0.393 0.095 152.535) | Step 900 of the success scale. | |
| green-950 | oklch(0.266 0.065 152.934) | Step 950 of the success scale. |
Warning
States that need attention but aren't errors.
| Token | Source | Value | Description |
|---|---|---|---|
| amber-700 | oklch(0.555 0.163 48.998) | Solid fill, such as a button background. | |
| amber-800 | oklch(0.473 0.137 46.201) | The solid fill when hovered or pressed. | |
| amber-50 | oklch(0.987 0.022 95.277) | Soft tinted background. | |
| amber-200 | oklch(0.924 0.12 95.746) | Tinted outline, for soft badges and alerts. Decorative; not a control boundary. | |
| amber-800 | oklch(0.473 0.137 46.201) | Intent-colored text on the page. Links, outline buttons, soft badges. | |
| amber-50 | oklch(0.987 0.022 95.277) | Text and icons on the solid fill. | |
| amber-50 | oklch(0.987 0.022 95.277) | Step 50 of the warning scale. | |
| amber-100 | oklch(0.962 0.059 95.617) | Step 100 of the warning scale. | |
| amber-200 | oklch(0.924 0.12 95.746) | Step 200 of the warning scale. | |
| amber-300 | oklch(0.879 0.169 91.605) | Step 300 of the warning scale. | |
| amber-400 | oklch(0.828 0.189 84.429) | Step 400 of the warning scale. | |
| amber-500 | oklch(0.769 0.188 70.08) | Step 500 of the warning scale. | |
| amber-600 | oklch(0.666 0.179 58.318) | Step 600 of the warning scale. | |
| amber-700 | oklch(0.555 0.163 48.998) | Step 700 of the warning scale. | |
| amber-800 | oklch(0.473 0.137 46.201) | Step 800 of the warning scale. | |
| amber-900 | oklch(0.414 0.112 45.904) | Step 900 of the warning scale. | |
| amber-950 | oklch(0.279 0.077 45.635) | Step 950 of the warning scale. |
Info
Neutral notices and tips.
| Token | Source | Value | Description |
|---|---|---|---|
| sky-700 | oklch(0.5 0.134 242.749) | Solid fill, such as a button background. | |
| sky-800 | oklch(0.443 0.11 240.79) | The solid fill when hovered or pressed. | |
| sky-50 | oklch(0.977 0.013 236.62) | Soft tinted background. | |
| sky-200 | oklch(0.901 0.058 230.902) | Tinted outline, for soft badges and alerts. Decorative; not a control boundary. | |
| sky-700 | oklch(0.5 0.134 242.749) | Intent-colored text on the page. Links, outline buttons, soft badges. | |
| sky-50 | oklch(0.977 0.013 236.62) | Text and icons on the solid fill. | |
| sky-50 | oklch(0.977 0.013 236.62) | Step 50 of the info scale. | |
| sky-100 | oklch(0.951 0.026 236.824) | Step 100 of the info scale. | |
| sky-200 | oklch(0.901 0.058 230.902) | Step 200 of the info scale. | |
| sky-300 | oklch(0.828 0.111 230.318) | Step 300 of the info scale. | |
| sky-400 | oklch(0.746 0.16 232.661) | Step 400 of the info scale. | |
| sky-500 | oklch(0.685 0.169 237.323) | Step 500 of the info scale. | |
| sky-600 | oklch(0.588 0.158 241.966) | Step 600 of the info scale. | |
| sky-700 | oklch(0.5 0.134 242.749) | Step 700 of the info scale. | |
| sky-800 | oklch(0.443 0.11 240.79) | Step 800 of the info scale. | |
| sky-900 | oklch(0.391 0.09 240.876) | Step 900 of the info scale. | |
| sky-950 | oklch(0.293 0.066 243.157) | Step 950 of the info scale. |
Derived roles
shadcn's names for roles that follow another token, such as the focus ring
following --primary-text.
| Token | Source | Value | Description |
|---|---|---|---|
| --primary-text | oklch(0.442 0.017 285.786) | Focus ring. Follows primary-text, which passes 3:1 on the page, cards and popovers. | |
| --primary | oklch(0.21 0.006 285.885) | Primary fill inside the sidebar. | |
| --primary-foreground | oklch(0.985 0 0) | Text on sidebar-primary. | |
| --primary-text | oklch(0.442 0.017 285.786) | Focus ring inside the sidebar. |
Charts
Five data series in distinct hues, set by each family apart from the primary color, with separate light and dark steps.
| Token | Source | Value | Description |
|---|---|---|---|
| blue-600 | oklch(0.546 0.245 262.881) | First chart series. Data series; a family chooses a ramp or categorical hues. | |
| yellow-700 | oklch(0.554 0.135 66.442) | Second chart series. Data series; a family chooses a ramp or categorical hues. | |
| red-600 | oklch(0.577 0.245 27.325) | Third chart series. Data series; a family chooses a ramp or categorical hues. | |
| teal-600 | oklch(0.6 0.118 184.704) | Fourth chart series. Data series; a family chooses a ramp or categorical hues. | |
| fuchsia-800 | oklch(0.452 0.211 324.591) | Fifth chart series. Data series; a family chooses a ramp or categorical hues. |