Cookbook is a shadcn/ui theme built around a deep green primary color (#2e3e0e) with deep green accents (#163e0e). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the deep green primary (#2e3e0e) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdf7snow | #000000black |
| Foreground | #060802black | #f8faf5whitesmoke |
| Card | #f9fbf3floralwhite | #030303black |
| Card foreground | #030401black | #fafbf8snow |
| Popover | #f9fbf3floralwhite | #030303black |
| Popover foreground | #030401black | #fafbf8snow |
| Primary | #2e3e0edarkgreen | #2e3e0edarkgreen |
| Primary foreground | #a4d544yellowgreen | #a4d544yellowgreen |
| Secondary | #3e360edarkolivegreen | #3e360edarkolivegreen |
| Secondary foreground | #d5bc44goldenrod | #d5bc44goldenrod |
| Muted | #e7e3d0gainsboro | #2f2b18darkslategray |
| Muted foreground | #5e5a45darkolivegreen | #bab6a1darkgray |
| Accent | #163e0edarkgreen | #163e0edarkgreen |
| Accent foreground | #5cd544limegreen | #5cd544limegreen |
| Destructive | #df2407orangered | #f72808orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2e3e0edarkgreen | #2e3e0edarkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.59:1 | AAA |
| Text on card | 19.74:1 | AAA |
| Primary button | 6.69:1 | AA |
| Secondary button | 6.35:1 | AA |
| Muted text | 5.38:1 | AA |
| Accent | 6.36:1 | AA |
| Destructive | 4.79:1 | AA |
| Text on background | 19.98:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 6.69:1 | AA |
| Secondary button | 6.35:1 | AA |
| Muted text | 6.93:1 | AA |
| Accent | 6.36:1 | AA |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Cookbook in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.007 121.615);
--foreground: oklch(0.128 0.018 121.163);
--muted: oklch(0.913 0.026 97.617);
--muted-foreground: oklch(0.465 0.032 98.031);
--popover: oklch(0.985 0.011 121.677);
--popover-foreground: oklch(0.102 0.015 121.163);
--card: oklch(0.985 0.011 121.677);
--card-foreground: oklch(0.102 0.015 121.163);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.34 0.074 126.034);
--primary-foreground: oklch(0.81 0.177 126.103);
--secondary: oklch(0.334 0.058 97.793);
--secondary-foreground: oklch(0.796 0.139 97.756);
--accent: oklch(0.325 0.088 140.565);
--accent-foreground: oklch(0.774 0.212 140.58);
--destructive: oklch(0.579 0.221 31.118);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.34 0.074 126.034);
--chart-1: oklch(0.34 0.074 126.034);
--chart-2: oklch(0.334 0.058 97.793);
--chart-3: oklch(0.325 0.088 140.565);
--chart-4: oklch(0.376 0.067 97.684);
--chart-5: oklch(0.343 0.076 126.233);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.982 0.006 121.595);
--muted: oklch(0.289 0.032 98.279);
--muted-foreground: oklch(0.773 0.029 97.719);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.988 0.004 121.561);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.988 0.004 121.561);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.34 0.074 126.034);
--primary-foreground: oklch(0.81 0.177 126.103);
--secondary: oklch(0.334 0.058 97.793);
--secondary-foreground: oklch(0.796 0.139 97.756);
--accent: oklch(0.325 0.088 140.565);
--accent-foreground: oklch(0.774 0.212 140.58);
--destructive: oklch(0.626 0.24 31.052);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.34 0.074 126.034);
--chart-1: oklch(0.34 0.074 126.034);
--chart-2: oklch(0.334 0.058 97.793);
--chart-3: oklch(0.325 0.088 140.565);
--chart-4: oklch(0.376 0.067 97.684);
--chart-5: oklch(0.343 0.076 126.233);
}