Standard is a shadcn/ui theme built around a muted light purple primary color (#d1c1d1) with muted light green accents (#c2d1c1). The light mode uses a neutral background (#fefbfe). Dark mode keeps the muted light purple primary (#d1c1d1) on a purple-tinted background (#100510).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfewhite | #100510black |
| Foreground | #150416black | #f9f5f9whitesmoke |
| Card | #fefbfewhite | #100510black |
| Card foreground | #150416black | #f9f5f9whitesmoke |
| Popover | #fefbfewhite | #100510black |
| Popover foreground | #150416black | #f9f5f9whitesmoke |
| Primary | #d1c1d1thistle | #d1c1d1thistle |
| Primary foreground | #372938darkslategray | #372938darkslategray |
| Secondary | #c2d1c1silver | #c2d1c1silver |
| Secondary foreground | #293829darkslategray | #293829darkslategray |
| Muted | #d8e9d8gainsboro | #172716black |
| Muted foreground | #465946darkslategray | #a7b9a6darkgray |
| Accent | #c2d1c1silver | #c2d1c1silver |
| Accent foreground | #293829darkslategray | #293829darkslategray |
| Destructive | #9f0c04darkred | #fa3429orangered |
| Destructive foreground | #fed9d7mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d1c1d1thistle | #d1c1d1thistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.28:1 | AAA |
| Text on card | 19.28:1 | AAA |
| Primary button | 8.00:1 | AAA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 5.95:1 | AA |
| Accent | 7.81:1 | AAA |
| Destructive | 6.37:1 | AA |
| Text on background | 18.55:1 | AAA |
| Text on card | 18.55:1 | AAA |
| Primary button | 8.00:1 | AAA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 7.58:1 | AAA |
| Accent | 7.81:1 | AAA |
| Destructive | 3.77:1 | AA Large |
Paste this into your globals.css to use Standard in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 325.129);
--foreground: oklch(0.151 0.048 327.043);
--muted: oklch(0.916 0.028 144.883);
--muted-foreground: oklch(0.441 0.038 144.467);
--popover: oklch(0.991 0.004 325.129);
--popover-foreground: oklch(0.151 0.048 327.043);
--card: oklch(0.991 0.004 325.129);
--card-foreground: oklch(0.151 0.048 327.043);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.83 0.028 325.332);
--primary-foreground: oklch(0.304 0.032 325.806);
--secondary: oklch(0.846 0.028 144.867);
--secondary-foreground: oklch(0.322 0.032 144.38);
--accent: oklch(0.846 0.028 144.867);
--accent-foreground: oklch(0.322 0.032 144.38);
--destructive: oklch(0.446 0.177 29.64);
--destructive-foreground: oklch(0.916 0.041 21.504);
--ring: oklch(0.83 0.028 325.332);
--chart-1: oklch(0.83 0.028 325.332);
--chart-2: oklch(0.846 0.028 144.867);
--chart-3: oklch(0.846 0.028 144.867);
--chart-4: oklch(0.868 0.024 144.907);
--chart-5: oklch(0.829 0.034 325.378);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.033 326.622);
--foreground: oklch(0.975 0.007 325.148);
--muted: oklch(0.252 0.038 143.982);
--muted-foreground: oklch(0.767 0.034 144.788);
--popover: oklch(0.139 0.033 326.622);
--popover-foreground: oklch(0.975 0.007 325.148);
--card: oklch(0.139 0.033 326.622);
--card-foreground: oklch(0.975 0.007 325.148);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.83 0.028 325.332);
--primary-foreground: oklch(0.304 0.032 325.806);
--secondary: oklch(0.846 0.028 144.867);
--secondary-foreground: oklch(0.322 0.032 144.38);
--accent: oklch(0.846 0.028 144.867);
--accent-foreground: oklch(0.322 0.032 144.38);
--destructive: oklch(0.639 0.233 28.8);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.83 0.028 325.332);
--chart-1: oklch(0.83 0.028 325.332);
--chart-2: oklch(0.846 0.028 144.867);
--chart-3: oklch(0.846 0.028 144.867);
--chart-4: oklch(0.868 0.024 144.907);
--chart-5: oklch(0.829 0.034 325.378);
}