Definitive is a shadcn/ui theme built around a muted deep purple primary color (#292329) with muted deep cyan accents (#232929). The light mode uses a neutral background (#fcf7fc). Dark mode keeps the muted deep purple primary (#292329) on a neutral background (#070307).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf7fcsnow | #070307black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fbf4faghostwhite | #0b050ablack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcf7fcsnow | #070307black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #292329darkslategray | #292329darkslategray |
| Primary foreground | #c4bac4silver | #c4bac4silver |
| Secondary | #292923darkslategray | #292923darkslategray |
| Secondary foreground | #c4c4basilver | #c4c4basilver |
| Muted | #ebece4beige | #1a1b13black |
| Muted foreground | #5e5f59dimgray | #a5a6a0darkgray |
| Accent | #232929darkslategray | #232929darkslategray |
| Accent foreground | #bac4c4silver | #bac4c4silver |
| Destructive | #c11010firebrick | #d91212crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #292329darkslategray | #292329darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.91:1 | AAA |
| Text on card | 19.38:1 | AAA |
| Primary button | 8.15:1 | AAA |
| Secondary button | 8.30:1 | AAA |
| Muted text | 5.41:1 | AA |
| Accent | 8.30:1 | AAA |
| Destructive | 6.25:1 | AA |
| Text on background | 20.47:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 8.15:1 | AAA |
| Secondary button | 8.30:1 | AAA |
| Muted text | 7.09:1 | AAA |
| Accent | 8.30:1 | AAA |
| Destructive | 5.19:1 | AA |
Paste this into your globals.css to use Definitive in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.008 328.149);
--foreground: oklch(0 0 0);
--muted: oklch(0.94 0.01 110.441);
--muted-foreground: oklch(0.482 0.009 110.581);
--popover: oklch(0.982 0.008 328.149);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.974 0.012 328.193);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.266 0.014 328.584);
--primary-foreground: oklch(0.801 0.017 328.286);
--secondary: oklch(0.279 0.011 110.97);
--secondary-foreground: oklch(0.818 0.014 110.567);
--accent: oklch(0.275 0.008 203.338);
--accent-foreground: oklch(0.812 0.01 203.466);
--destructive: oklch(0.515 0.204 28.5);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.266 0.014 328.584);
--chart-1: oklch(0.266 0.014 328.584);
--chart-2: oklch(0.279 0.011 110.97);
--chart-3: oklch(0.275 0.008 203.338);
--chart-4: oklch(0.312 0.013 111.002);
--chart-5: oklch(0.265 0.019 328.775);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.111 0.017 328.978);
--foreground: oklch(1 0 180);
--muted: oklch(0.217 0.014 111.416);
--muted-foreground: oklch(0.723 0.008 110.449);
--popover: oklch(0.111 0.017 328.978);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.127 0.019 329.016);
--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.266 0.014 328.584);
--primary-foreground: oklch(0.801 0.017 328.286);
--secondary: oklch(0.279 0.011 110.97);
--secondary-foreground: oklch(0.818 0.014 110.567);
--accent: oklch(0.275 0.008 203.338);
--accent-foreground: oklch(0.812 0.01 203.466);
--destructive: oklch(0.561 0.223 28.572);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.266 0.014 328.584);
--chart-1: oklch(0.266 0.014 328.584);
--chart-2: oklch(0.279 0.011 110.97);
--chart-3: oklch(0.275 0.008 203.338);
--chart-4: oklch(0.312 0.013 111.002);
--chart-5: oklch(0.265 0.019 328.775);
}