Schnitzel is a shadcn/ui theme built around a muted yellow primary color (#8a8456) with near-white accents (#e9e9e7). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted yellow primary (#8a8456) on a neutral background (#040401).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040401black |
| Foreground | #0c0b03black | #fdfdfcwhite |
| Card | #ffffffwhite | #040401black |
| Card foreground | #0c0b03black | #fdfdfcwhite |
| Popover | #ffffffwhite | #040401black |
| Popover foreground | #0c0b03black | #fdfdfcwhite |
| Primary | #8a8456gray | #8a8456gray |
| Primary foreground | #000000black | #000000black |
| Secondary | #e9e9e7linen | #1c1c1cblack |
| Secondary foreground | #51514ddarkslategray | #b6b6b4silver |
| Muted | #e7e7e4gainsboro | #1b1b18black |
| Muted foreground | #605d48darkolivegreen | #b7b49fdarkgray |
| Accent | #e9e9e7linen | #1c1c1cblack |
| Accent foreground | #51514ddarkslategray | #b6b6b4silver |
| Destructive | #802f0asaddlebrown | #ee6120chocolate |
| Destructive foreground | #fad3c1peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8a8456gray | #8a8456gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.72:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 5.51:1 | AA |
| Secondary button | 6.53:1 | AA |
| Muted text | 5.35:1 | AA |
| Accent | 6.53:1 | AA |
| Destructive | 6.49:1 | AA |
| Text on background | 20.19:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 5.51:1 | AA |
| Secondary button | 8.36:1 | AAA |
| Muted text | 8.27:1 | AAA |
| Accent | 8.36:1 | AAA |
| Destructive | 6.38:1 | AA |
Paste this into your globals.css to use Schnitzel in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.149 0.021 103.44);
--muted: oklch(0.926 0.004 100.391);
--muted-foreground: oklch(0.475 0.032 101.257);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.149 0.021 103.44);
--card: oklch(1 0 180);
--card-foreground: oklch(0.149 0.021 103.44);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.607 0.064 101.639);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.933 0.002 100.357);
--secondary-foreground: oklch(0.434 0.007 100.567);
--accent: oklch(0.933 0.002 100.357);
--accent-foreground: oklch(0.434 0.007 100.567);
--destructive: oklch(0.418 0.121 41.132);
--destructive-foreground: oklch(0.896 0.05 46.307);
--ring: oklch(0.607 0.064 101.639);
--chart-1: oklch(0.607 0.064 101.639);
--chart-2: oklch(0.933 0.002 100.357);
--chart-3: oklch(0.933 0.002 100.357);
--chart-4: oklch(0.955 0.001 100.348);
--chart-5: oklch(0.615 0.071 101.718);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.102 0.014 103.803);
--foreground: oklch(0.993 0.001 100.344);
--muted: oklch(0.22 0.005 100.681);
--muted-foreground: oklch(0.766 0.029 100.881);
--popover: oklch(0.102 0.014 103.803);
--popover-foreground: oklch(0.993 0.001 100.344);
--card: oklch(0.102 0.014 103.803);
--card-foreground: oklch(0.993 0.001 100.344);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.607 0.064 101.639);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.227 0.001 100.394);
--secondary-foreground: oklch(0.775 0.002 100.367);
--accent: oklch(0.227 0.001 100.394);
--accent-foreground: oklch(0.775 0.002 100.367);
--destructive: oklch(0.665 0.188 41.526);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.607 0.064 101.639);
--chart-1: oklch(0.607 0.064 101.639);
--chart-2: oklch(0.227 0.001 100.394);
--chart-3: oklch(0.227 0.001 100.394);
--chart-4: oklch(0.26 0.001 100.399);
--chart-5: oklch(0.615 0.071 101.718);
}