Cookbook is a shadcn/ui theme built around a near-white primary color (#fefef5) with near-white accents (#fbfef5). The light mode uses a neutral background (#fefefb). Dark mode keeps the near-white primary (#fefef5) on a neutral background (#040401).
| Token | Light | Dark |
|---|---|---|
| Background | #fefefbwhite | #040401black |
| Foreground | #0c0b04black | #fdfdfcwhite |
| Card | #fdfdf7snow | #080703black |
| Card foreground | #080702black | #ffffffwhite |
| Popover | #fdfdf7snow | #080703black |
| Popover foreground | #080702black | #ffffffwhite |
| Primary | #fefef5ivory | #fefef5ivory |
| Primary foreground | #575105darkolivegreen | #575105darkolivegreen |
| Secondary | #fef9f5floralwhite | #fef9f5floralwhite |
| Secondary foreground | #572805maroon | #572805maroon |
| Muted | #e9e5e2gainsboro | #1d1916black |
| Muted foreground | #605b57dimgray | #a8a39fdarkgray |
| Accent | #fbfef5ivory | #fbfef5ivory |
| Accent foreground | #335705darkgreen | #335705darkgreen |
| Destructive | #702401maroon | #fe6a25tomato |
| Destructive foreground | #ffc0a4lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fefef5ivory | #fefef5ivory |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.48:1 | AAA |
| Text on card | 19.69:1 | AAA |
| Primary button | 8.01:1 | AAA |
| Secondary button | 11.77:1 | AAA |
| Muted text | 5.35:1 | AA |
| Accent | 8.23:1 | AAA |
| Destructive | 6.89:1 | AA |
| Text on background | 20.20:1 | AAA |
| Text on card | 20.14:1 | AAA |
| Primary button | 8.01:1 | AAA |
| Secondary button | 11.77:1 | AAA |
| Muted text | 6.98:1 | AA |
| Accent | 8.23:1 | AAA |
| Destructive | 7.27:1 | AAA |
Paste this into your globals.css to use Cookbook in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.004 103.171);
--foreground: oklch(0.148 0.019 105.612);
--muted: oklch(0.924 0.006 60.193);
--muted-foreground: oklch(0.475 0.009 60.017);
--popover: oklch(0.992 0.008 103.236);
--popover-foreground: oklch(0.129 0.016 105.814);
--card: oklch(0.992 0.008 103.236);
--card-foreground: oklch(0.129 0.016 105.814);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.995 0.011 103.293);
--primary-foreground: oklch(0.428 0.088 104.958);
--secondary: oklch(0.986 0.008 60.178);
--secondary-foreground: oklch(0.336 0.082 51.978);
--accent: oklch(0.993 0.013 125.909);
--accent-foreground: oklch(0.413 0.111 131.869);
--destructive: oklch(0.372 0.115 40.544);
--destructive-foreground: oklch(0.858 0.082 45.981);
--ring: oklch(0.995 0.011 103.293);
--chart-1: oklch(0.995 0.011 103.293);
--chart-2: oklch(0.986 0.008 60.178);
--chart-3: oklch(0.993 0.013 125.909);
--chart-4: oklch(1.007 0.004 240.335);
--chart-5: oklch(0.995 0.012 103.299);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.102 0.012 105.65);
--foreground: oklch(0.994 0.001 103.128);
--muted: oklch(0.217 0.009 59.722);
--muted-foreground: oklch(0.717 0.008 60.124);
--popover: oklch(0.128 0.015 105.65);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.128 0.015 105.65);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.995 0.011 103.293);
--primary-foreground: oklch(0.428 0.088 104.958);
--secondary: oklch(0.986 0.008 60.178);
--secondary-foreground: oklch(0.336 0.082 51.978);
--accent: oklch(0.993 0.013 125.909);
--accent-foreground: oklch(0.413 0.111 131.869);
--destructive: oklch(0.7 0.196 41.687);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.995 0.011 103.293);
--chart-1: oklch(0.995 0.011 103.293);
--chart-2: oklch(0.986 0.008 60.178);
--chart-3: oklch(0.993 0.013 125.909);
--chart-4: oklch(1.007 0.004 240.335);
--chart-5: oklch(0.995 0.012 103.299);
}