Preparation is a shadcn/ui theme built around a deep green primary color (#172108) with deep green accents (#0a2108). The light mode uses a neutral background (#fdfefb). Dark mode keeps the deep green primary (#172108) on a green-tinted background (#080c04).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #080c04black |
| Foreground | #030401black | #fafbf9snow |
| Card | #fafdf7mintcream | #0b1005black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #fafdf7mintcream | #0b1005black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #172108black | #172108black |
| Primary foreground | #87c62fyellowgreen | #87c62fyellowgreen |
| Secondary | #211f08black | #211f08black |
| Secondary foreground | #c6ba2fgoldenrod | #c6ba2fgoldenrod |
| Muted | #f4f3eblinen | #14130bblack |
| Muted foreground | #5b5b57dimgray | #a8a7a4darkgray |
| Accent | #0a2108black | #0a2108black |
| Accent foreground | #3bc62flimegreen | #3bc62flimegreen |
| Destructive | #d12600firebrick | #eb2b00orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #172108black | #172108black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.28:1 | AAA |
| Text on card | 20.46:1 | AAA |
| Primary button | 8.07:1 | AAA |
| Secondary button | 8.28:1 | AAA |
| Muted text | 6.13:1 | AA |
| Accent | 7.53:1 | AAA |
| Destructive | 5.25:1 | AA |
| Text on background | 19.03:1 | AAA |
| Text on card | 18.96:1 | AAA |
| Primary button | 8.07:1 | AAA |
| Secondary button | 8.28:1 | AAA |
| Muted text | 7.75:1 | AAA |
| Accent | 7.53:1 | AAA |
| Destructive | 4.31:1 | AA Large |
Paste this into your globals.css to use Preparation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 125.103);
--foreground: oklch(0.101 0.015 124.29);
--muted: oklch(0.963 0.01 102.388);
--muted-foreground: oklch(0.469 0.005 102.392);
--popover: oklch(0.99 0.008 125.162);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.99 0.008 125.162);
--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.231 0.046 128.395);
--primary-foreground: oklch(0.757 0.187 130.185);
--secondary: oklch(0.235 0.038 104.147);
--secondary-foreground: oklch(0.775 0.15 103.956);
--accent: oklch(0.222 0.055 141.904);
--accent-foreground: oklch(0.726 0.221 141.93);
--destructive: oklch(0.555 0.208 32.379);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.231 0.046 128.395);
--chart-1: oklch(0.231 0.046 128.395);
--chart-2: oklch(0.235 0.038 104.147);
--chart-3: oklch(0.222 0.055 141.904);
--chart-4: oklch(0.283 0.048 104.122);
--chart-5: oklch(0.233 0.048 128.515);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.145 0.021 124.511);
--foreground: oklch(0.986 0.002 125.071);
--muted: oklch(0.184 0.015 103.416);
--muted-foreground: oklch(0.728 0.005 102.317);
--popover: oklch(0.162 0.024 125.878);
--popover-foreground: oklch(0.993 0.001 125.058);
--card: oklch(0.162 0.024 125.878);
--card-foreground: oklch(0.993 0.001 125.058);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.231 0.046 128.395);
--primary-foreground: oklch(0.757 0.187 130.185);
--secondary: oklch(0.235 0.038 104.147);
--secondary-foreground: oklch(0.775 0.15 103.956);
--accent: oklch(0.222 0.055 141.904);
--accent-foreground: oklch(0.726 0.221 141.93);
--destructive: oklch(0.605 0.228 32.21);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.231 0.046 128.395);
--chart-1: oklch(0.231 0.046 128.395);
--chart-2: oklch(0.235 0.038 104.147);
--chart-3: oklch(0.222 0.055 141.904);
--chart-4: oklch(0.283 0.048 104.122);
--chart-5: oklch(0.233 0.048 128.515);
}