Descriptive is a shadcn/ui theme built around a purple primary color (#cd70c8) with neutral gray accents (#e2dfe2). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#cd70c8) on a purple-tinted background (#0b040b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b040bblack |
| Foreground | #080307black | #fdfcfdwhite |
| Card | #fcfcfcsnow | #0f050fblack |
| Card foreground | #040104black | #ffffffwhite |
| Popover | #fcfcfcsnow | #0f050fblack |
| Popover foreground | #040104black | #ffffffwhite |
| Primary | #cd70c8orchid | #cd70c8orchid |
| Primary foreground | #080307black | #080307black |
| Secondary | #e2dfe2gainsboro | #1e1a1eblack |
| Secondary foreground | #4a454adarkslategray | #bbafbasilver |
| Muted | #eddeeclavender | #211220black |
| Muted foreground | #605260dimgray | #ad9facdarkgray |
| Accent | #e2dfe2gainsboro | #1e1a1eblack |
| Accent foreground | #4a454adarkslategray | #bbafbasilver |
| Destructive | #a32f0ffirebrick | #ee6944tomato |
| Destructive foreground | #fdece8linen | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cd70c8orchid | #cd70c8orchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.45:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 6.54:1 | AA |
| Secondary button | 7.08:1 | AAA |
| Muted text | 5.65:1 | AA |
| Accent | 7.08:1 | AAA |
| Destructive | 6.14:1 | AA |
| Text on background | 19.79:1 | AAA |
| Text on card | 19.99:1 | AAA |
| Primary button | 6.54:1 | AA |
| Secondary button | 8.15:1 | AAA |
| Muted text | 7.10:1 | AAA |
| Accent | 8.15:1 | AAA |
| Destructive | 6.72:1 | AA |
Paste this into your globals.css to use Descriptive in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.109 0.022 328.304);
--muted: oklch(0.917 0.025 327.292);
--muted-foreground: oklch(0.458 0.028 327.592);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.087 0.017 328.304);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.087 0.017 328.304);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.679 0.161 329.014);
--primary-foreground: oklch(0.11 0.021 328.254);
--secondary: oklch(0.907 0.004 327.08);
--secondary-foreground: oklch(0.396 0.012 327.308);
--accent: oklch(0.907 0.004 327.08);
--accent-foreground: oklch(0.396 0.012 327.308);
--destructive: oklch(0.48 0.157 35.11);
--destructive-foreground: oklch(0.956 0.019 35.959);
--ring: oklch(0.679 0.161 329.014);
--chart-1: oklch(0.679 0.161 329.014);
--chart-2: oklch(0.907 0.004 327.08);
--chart-3: oklch(0.907 0.004 327.08);
--chart-4: oklch(0.93 0.003 327.069);
--chart-5: oklch(0.679 0.17 329.116);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.024 328.339);
--foreground: oklch(0.992 0.001 327.047);
--muted: oklch(0.209 0.036 328.515);
--muted-foreground: oklch(0.718 0.025 327.359);
--popover: oklch(0.139 0.028 328.575);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.139 0.028 328.575);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.679 0.161 329.014);
--primary-foreground: oklch(0.11 0.021 328.254);
--secondary: oklch(0.224 0.011 327.467);
--secondary-foreground: oklch(0.768 0.021 327.283);
--accent: oklch(0.224 0.011 327.467);
--accent-foreground: oklch(0.768 0.021 327.283);
--destructive: oklch(0.678 0.172 36.316);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.679 0.161 329.014);
--chart-1: oklch(0.679 0.161 329.014);
--chart-2: oklch(0.224 0.011 327.467);
--chart-3: oklch(0.224 0.011 327.467);
--chart-4: oklch(0.256 0.013 327.5);
--chart-5: oklch(0.679 0.17 329.116);
}