Cabbage is a shadcn/ui theme built around a neutral gray primary color (#424342) with neutral gray accents (#434242). The light mode uses a neutral background (#fbfefb). Dark mode keeps the neutral gray primary (#424342) on a neutral background (#030803).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #030803black |
| Foreground | #000000black | #fcfdfcwhite |
| Card | #fbfefbwhite | #030803black |
| Card foreground | #000000black | #fcfdfcwhite |
| Popover | #fbfefbwhite | #030803black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #424342darkslategray | #424342darkslategray |
| Primary foreground | #dbdcdbgainsboro | #dbdcdbgainsboro |
| Secondary | #424243darkslategray | #424243darkslategray |
| Secondary foreground | #dbdbdcgainsboro | #dbdbdcgainsboro |
| Muted | #e7e6eflavender | #111019black |
| Muted foreground | #56555edimgray | #a2a1aadarkgray |
| Accent | #434242darkslategray | #434242darkslategray |
| Accent foreground | #dcdbdbgainsboro | #dcdbdbgainsboro |
| Destructive | #702701maroon | #e45101orangered |
| Destructive foreground | #ffc3a4navajowhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #424342darkslategray | #424342darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.66:1 | AAA |
| Text on card | 20.66:1 | AAA |
| Primary button | 7.24:1 | AAA |
| Secondary button | 7.29:1 | AAA |
| Muted text | 5.95:1 | AA |
| Accent | 7.27:1 | AAA |
| Destructive | 6.86:1 | AA |
| Text on background | 19.84:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 7.24:1 | AAA |
| Secondary button | 7.29:1 | AAA |
| Muted text | 7.38:1 | AAA |
| Accent | 7.27:1 | AAA |
| Destructive | 3.83:1 | AA Large |
Paste this into your globals.css to use Cabbage in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.005 148.541);
--foreground: oklch(0 0 0);
--muted: oklch(0.929 0.012 290.779);
--muted-foreground: oklch(0.453 0.014 290.407);
--popover: oklch(0.994 0.005 148.541);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.994 0.005 148.541);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.381 0.003 148.515);
--primary-foreground: oklch(0.893 0.001 148.578);
--secondary: oklch(0.378 0.002 290.903);
--secondary-foreground: oklch(0.892 0.001 290.993);
--accent: oklch(0.379 0.002 25.025);
--accent-foreground: oklch(0.892 0.001 24.996);
--destructive: oklch(0.377 0.112 42.827);
--destructive-foreground: oklch(0.864 0.08 49.566);
--ring: oklch(0.381 0.003 148.515);
--chart-1: oklch(0.381 0.003 148.515);
--chart-2: oklch(0.378 0.002 290.903);
--chart-3: oklch(0.379 0.002 25.025);
--chart-4: oklch(0.407 0.002 290.901);
--chart-5: oklch(0.384 0.011 148.281);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.02 147.469);
--foreground: oklch(0.993 0.001 148.584);
--muted: oklch(0.179 0.018 289.077);
--muted-foreground: oklch(0.713 0.013 290.673);
--popover: oklch(0.122 0.02 147.469);
--popover-foreground: oklch(0.993 0.001 148.584);
--card: oklch(0.122 0.02 147.469);
--card-foreground: oklch(0.993 0.001 148.584);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.381 0.003 148.515);
--primary-foreground: oklch(0.893 0.001 148.578);
--secondary: oklch(0.378 0.002 290.903);
--secondary-foreground: oklch(0.892 0.001 290.993);
--accent: oklch(0.379 0.002 25.025);
--accent-foreground: oklch(0.892 0.001 24.996);
--destructive: oklch(0.628 0.196 40.268);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.381 0.003 148.515);
--chart-1: oklch(0.381 0.003 148.515);
--chart-2: oklch(0.378 0.002 290.903);
--chart-3: oklch(0.379 0.002 25.025);
--chart-4: oklch(0.407 0.002 290.901);
--chart-5: oklch(0.384 0.011 148.281);
}