Prime is a shadcn/ui theme built around a muted light green primary color (#e6e8e3) with muted light green accents (#e4e8e3). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#e6e8e3) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #030401black | #fafbf9snow |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #030401black | #fafbf9snow |
| Primary | #e6e8e3gainsboro | #e6e8e3gainsboro |
| Primary foreground | #4e5346darkslategray | #4e5346darkslategray |
| Secondary | #e8e7e3gainsboro | #e8e7e3gainsboro |
| Secondary foreground | #535146darkolivegreen | #535146darkolivegreen |
| Muted | #e0dfd7gainsboro | #28271fdarkslategray |
| Muted foreground | #615f4cdimgray | #b3b19edarkgray |
| Accent | #e4e8e3gainsboro | #e4e8e3gainsboro |
| Accent foreground | #485346darkslategray | #485346darkslategray |
| Destructive | #b42808firebrick | #f4421aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e6e8e3gainsboro | #e6e8e3gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.55:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.40:1 | AA |
| Secondary button | 6.44:1 | AA |
| Muted text | 4.83:1 | AA |
| Accent | 6.49:1 | AA |
| Destructive | 6.45:1 | AA |
| Text on background | 20.23:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 6.40:1 | AA |
| Secondary button | 6.44:1 | AA |
| Muted text | 6.89:1 | AA |
| Accent | 6.49:1 | AA |
| Destructive | 3.71:1 | AA Large |
Paste this into your globals.css to use Prime in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.102 0.016 123.627);
--muted: oklch(0.902 0.011 101.484);
--muted-foreground: oklch(0.482 0.029 102.162);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.102 0.016 123.627);
--card: oklch(0.992 0 161.565);
--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.927 0.006 124.433);
--primary-foreground: oklch(0.433 0.021 125.039);
--secondary: oklch(0.928 0.005 101.371);
--secondary-foreground: oklch(0.434 0.018 101.9);
--accent: oklch(0.926 0.007 142.598);
--accent-foreground: oklch(0.427 0.024 142.394);
--destructive: oklch(0.504 0.18 32.995);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.927 0.006 124.433);
--chart-1: oklch(0.927 0.006 124.433);
--chart-2: oklch(0.928 0.005 101.371);
--chart-3: oklch(0.926 0.007 142.598);
--chart-4: oklch(0.95 0.003 101.345);
--chart-5: oklch(0.929 0.008 124.466);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.986 0.003 124.382);
--muted: oklch(0.273 0.015 102.093);
--muted-foreground: oklch(0.756 0.026 101.814);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.986 0.003 124.382);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.993 0.001 124.363);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.927 0.006 124.433);
--primary-foreground: oklch(0.433 0.021 125.039);
--secondary: oklch(0.928 0.005 101.371);
--secondary-foreground: oklch(0.434 0.018 101.9);
--accent: oklch(0.926 0.007 142.598);
--accent-foreground: oklch(0.427 0.024 142.394);
--destructive: oklch(0.64 0.22 33.464);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.927 0.006 124.433);
--chart-1: oklch(0.927 0.006 124.433);
--chart-2: oklch(0.928 0.005 101.371);
--chart-3: oklch(0.926 0.007 142.598);
--chart-4: oklch(0.95 0.003 101.345);
--chart-5: oklch(0.929 0.008 124.466);
}