Cooked is a shadcn/ui theme built around a neutral gray primary color (#51535c) with neutral gray accents (#55515c). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the neutral gray primary (#51535c) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f8fcghostwhite | #000000black |
| Foreground | #010104black | #ffffffwhite |
| Card | #f8f8fcghostwhite | #000000black |
| Card foreground | #010104black | #ffffffwhite |
| Popover | #f8f8fcghostwhite | #000000black |
| Popover foreground | #010104black | #ffffffwhite |
| Primary | #51535cdimgray | #51535cdimgray |
| Primary foreground | #efeff1whitesmoke | #efeff1whitesmoke |
| Secondary | #51585cdimgray | #51585cdimgray |
| Secondary foreground | #eff0f1whitesmoke | #eff0f1whitesmoke |
| Muted | #d3e0e8gainsboro | #17242cdarkslategray |
| Muted foreground | #444e55darkslategray | #aab4bbdarkgray |
| Accent | #55515cdimgray | #55515cdimgray |
| Accent foreground | #efeff1whitesmoke | #efeff1whitesmoke |
| Destructive | #cb1b15firebrick | #e21e18crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #51535cdimgray | #51535cdimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.70:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 6.68:1 | AA |
| Secondary button | 6.34:1 | AA |
| Muted text | 6.34:1 | AA |
| Accent | 6.68:1 | AA |
| Destructive | 5.65:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.68:1 | AA |
| Secondary button | 6.34:1 | AA |
| Muted text | 7.54:1 | AAA |
| Accent | 6.68:1 | AA |
| Destructive | 4.72:1 | AA |
Paste this into your globals.css to use Cooked in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.005 280.25);
--foreground: oklch(0.075 0.018 271.544);
--muted: oklch(0.9 0.018 234.799);
--muted-foreground: oklch(0.419 0.017 235.138);
--popover: oklch(0.981 0.005 280.25);
--popover-foreground: oklch(0.075 0.018 271.544);
--card: oklch(0.981 0.005 280.25);
--card-foreground: oklch(0.075 0.018 271.544);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.443 0.015 279.779);
--primary-foreground: oklch(0.952 0.002 280.295);
--secondary: oklch(0.456 0.01 234.844);
--secondary-foreground: oklch(0.954 0.002 234.529);
--accent: oklch(0.444 0.018 303.057);
--accent-foreground: oklch(0.953 0.003 303.6);
--destructive: oklch(0.539 0.207 28.861);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.443 0.015 279.779);
--chart-1: oklch(0.443 0.015 279.779);
--chart-2: oklch(0.456 0.01 234.844);
--chart-3: oklch(0.444 0.018 303.057);
--chart-4: oklch(0.483 0.011 234.848);
--chart-5: oklch(0.437 0.023 279.467);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.251 0.024 236.272);
--muted-foreground: oklch(0.765 0.015 234.791);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.443 0.015 279.779);
--primary-foreground: oklch(0.952 0.002 280.295);
--secondary: oklch(0.456 0.01 234.844);
--secondary-foreground: oklch(0.954 0.002 234.529);
--accent: oklch(0.444 0.018 303.057);
--accent-foreground: oklch(0.953 0.003 303.6);
--destructive: oklch(0.583 0.226 28.911);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.443 0.015 279.779);
--chart-1: oklch(0.443 0.015 279.779);
--chart-2: oklch(0.456 0.01 234.844);
--chart-3: oklch(0.444 0.018 303.057);
--chart-4: oklch(0.483 0.011 234.848);
--chart-5: oklch(0.437 0.023 279.467);
}