Precision is a shadcn/ui theme built around a vivid deep green primary color (#1b840b) with vivid deep red accents (#840b1b). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the vivid deep green primary (#1b840b) on a green-tinted background (#061004).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #061004black |
| Foreground | #051104black | #fcfdfbsnow |
| Card | #fcfdfcwhite | #061004black |
| Card foreground | #051104black | #fcfdfbsnow |
| Popover | #fcfdfcwhite | #061004black |
| Popover foreground | #051104black | #fcfdfbsnow |
| Primary | #1b840bforestgreen | #1b840bforestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #0b1b84midnightblue | #0b1b84midnightblue |
| Secondary foreground | #c6cdfalightblue | #c6cdfalightblue |
| Muted | #eaebf0lavender | #0f0f15black |
| Muted foreground | #565861dimgray | #9e9fa9darkgray |
| Accent | #840b1bmaroon | #840b1bmaroon |
| Accent foreground | #fac6cdpink | #fac6cdpink |
| Destructive | #933706saddlebrown | #f6732ctomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1b840bforestgreen | #1b840bforestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.95:1 | AAA |
| Text on card | 18.95:1 | AAA |
| Primary button | 4.82:1 | AA |
| Secondary button | 8.98:1 | AAA |
| Muted text | 5.94:1 | AA |
| Accent | 6.85:1 | AA |
| Destructive | 7.51:1 | AAA |
| Text on background | 18.96:1 | AAA |
| Text on card | 18.96:1 | AAA |
| Primary button | 4.82:1 | AA |
| Secondary button | 8.98:1 | AAA |
| Muted text | 7.24:1 | AAA |
| Accent | 6.85:1 | AA |
| Destructive | 7.42:1 | AAA |
Paste this into your globals.css to use Precision in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 141.584);
--foreground: oklch(0.16 0.035 139.911);
--muted: oklch(0.94 0.008 279.22);
--muted-foreground: oklch(0.462 0.016 278.813);
--popover: oklch(0.993 0.003 141.584);
--popover-foreground: oklch(0.16 0.035 139.911);
--card: oklch(0.993 0.003 141.584);
--card-foreground: oklch(0.16 0.035 139.911);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.535 0.173 141.597);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.308 0.171 266.301);
--secondary-foreground: oklch(0.859 0.063 278.124);
--accent: oklch(0.393 0.151 22.85);
--accent-foreground: oklch(0.875 0.06 9.411);
--destructive: oklch(0.462 0.134 42.414);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.535 0.173 141.597);
--chart-1: oklch(0.535 0.173 141.597);
--chart-2: oklch(0.308 0.171 266.301);
--chart-3: oklch(0.393 0.151 22.85);
--chart-4: oklch(0.33 0.186 266.121);
--chart-5: oklch(0.541 0.177 141.654);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.159 0.032 140.041);
--foreground: oklch(0.994 0.003 141.583);
--muted: oklch(0.172 0.012 278.232);
--muted-foreground: oklch(0.705 0.014 279.037);
--popover: oklch(0.159 0.032 140.041);
--popover-foreground: oklch(0.994 0.003 141.583);
--card: oklch(0.159 0.032 140.041);
--card-foreground: oklch(0.994 0.003 141.583);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.535 0.173 141.597);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.308 0.171 266.301);
--secondary-foreground: oklch(0.859 0.063 278.124);
--accent: oklch(0.393 0.151 22.85);
--accent-foreground: oklch(0.875 0.06 9.411);
--destructive: oklch(0.702 0.179 45.096);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.535 0.173 141.597);
--chart-1: oklch(0.535 0.173 141.597);
--chart-2: oklch(0.308 0.171 266.301);
--chart-3: oklch(0.393 0.151 22.85);
--chart-4: oklch(0.33 0.186 266.121);
--chart-5: oklch(0.541 0.177 141.654);
}