Cooked is a shadcn/ui theme built around a muted deep teal primary color (#384d45) with muted deep pink accents (#4d383f). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the muted deep teal primary (#384d45) on a neutral background (#020806).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfdwhite | #020806black |
| Foreground | #010403black | #fcfdfdwhite |
| Card | #fcfdfdwhite | #020806black |
| Card foreground | #010403black | #fcfdfdwhite |
| Popover | #fcfdfdwhite | #020806black |
| Popover foreground | #010403black | #fcfdfdwhite |
| Primary | #384d45darkslategray | #384d45darkslategray |
| Primary foreground | #d6e1ddgainsboro | #d6e1ddgainsboro |
| Secondary | #4d383fdarkslategray | #4d383fdarkslategray |
| Secondary foreground | #e1d6dagainsboro | #e1d6dagainsboro |
| Muted | #e8dee2gainsboro | #21171bblack |
| Muted foreground | #644a53dimgray | #b59ba5darkgray |
| Accent | #4d383fdarkslategray | #4d383fdarkslategray |
| Accent foreground | #e1d6dagainsboro | #e1d6dagainsboro |
| Destructive | #dc4504orangered | #f54d05orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #384d45darkslategray | #384d45darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.22:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 6.78:1 | AA |
| Secondary button | 7.61:1 | AAA |
| Muted text | 6.04:1 | AA |
| Accent | 7.61:1 | AAA |
| Destructive | 4.28:1 | AA Large |
| Text on background | 19.82:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 6.78:1 | AA |
| Secondary button | 7.61:1 | AAA |
| Muted text | 6.80:1 | AA |
| Accent | 7.61:1 | AAA |
| Destructive | 3.53:1 | AA Large |
Paste this into your globals.css to use Cooked in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 172.516);
--foreground: oklch(0.098 0.012 172.829);
--muted: oklch(0.91 0.011 352.932);
--muted-foreground: oklch(0.439 0.038 354.938);
--popover: oklch(0.994 0.002 172.516);
--popover-foreground: oklch(0.098 0.012 172.829);
--card: oklch(0.994 0.002 172.516);
--card-foreground: oklch(0.098 0.012 172.829);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.4 0.029 170.219);
--primary-foreground: oklch(0.9 0.013 172.135);
--secondary: oklch(0.366 0.032 354.994);
--secondary-foreground: oklch(0.885 0.014 353.017);
--accent: oklch(0.366 0.032 354.994);
--accent-foreground: oklch(0.885 0.014 353.017);
--destructive: oklch(0.601 0.196 37.661);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.4 0.029 170.219);
--chart-1: oklch(0.4 0.029 170.219);
--chart-2: oklch(0.366 0.032 354.994);
--chart-3: oklch(0.366 0.032 354.994);
--chart-4: oklch(0.393 0.036 355.039);
--chart-5: oklch(0.404 0.035 169.781);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.015 172.829);
--foreground: oklch(0.994 0.002 172.516);
--muted: oklch(0.219 0.017 354.644);
--muted-foreground: oklch(0.716 0.033 353.869);
--popover: oklch(0.124 0.015 172.829);
--popover-foreground: oklch(0.994 0.002 172.516);
--card: oklch(0.124 0.015 172.829);
--card-foreground: oklch(0.994 0.002 172.516);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.4 0.029 170.219);
--primary-foreground: oklch(0.9 0.013 172.135);
--secondary: oklch(0.366 0.032 354.994);
--secondary-foreground: oklch(0.885 0.014 353.017);
--accent: oklch(0.366 0.032 354.994);
--accent-foreground: oklch(0.885 0.014 353.017);
--destructive: oklch(0.651 0.214 37.461);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.4 0.029 170.219);
--chart-1: oklch(0.4 0.029 170.219);
--chart-2: oklch(0.366 0.032 354.994);
--chart-3: oklch(0.366 0.032 354.994);
--chart-4: oklch(0.393 0.036 355.039);
--chart-5: oklch(0.404 0.035 169.781);
}