Sauerkraut is a shadcn/ui theme built around a green primary color (#859735) with green accents (#549735). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the green primary (#859735) on a neutral background (#030302).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcf8snow | #030302black |
| Foreground | #070802black | #fafbf9snow |
| Card | #f9faf5whitesmoke | #060704black |
| Card foreground | #040401black | #fdfdfcwhite |
| Popover | #f9faf5whitesmoke | #060704black |
| Popover foreground | #040401black | #fdfdfcwhite |
| Primary | #859735olivedrab | #859735olivedrab |
| Primary foreground | #000000black | #000000black |
| Secondary | #977835sienna | #977835sienna |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ebe3d1antiquewhite | #2e2614black |
| Muted foreground | #605848darkolivegreen | #b7af9fdarkgray |
| Accent | #549735olivedrab | #549735olivedrab |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #7d2f03saddlebrown | #f55d05orangered |
| Destructive foreground | #fdcfb4peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #859735olivedrab | #859735olivedrab |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.47:1 | AAA |
| Text on card | 19.57:1 | AAA |
| Primary button | 6.47:1 | AA |
| Secondary button | 4.15:1 | AA Large |
| Muted text | 5.48:1 | AA |
| Accent | 3.58:1 | AA Large |
| Destructive | 6.45:1 | AA |
| Text on background | 19.85:1 | AAA |
| Text on card | 19.87:1 | AAA |
| Primary button | 6.47:1 | AA |
| Secondary button | 4.15:1 | AA Large |
| Muted text | 6.87:1 | AA |
| Accent | 3.58:1 | AA Large |
| Destructive | 6.44:1 | AA |
Paste this into your globals.css to use Sauerkraut in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 114.912);
--foreground: oklch(0.131 0.02 115.551);
--muted: oklch(0.916 0.025 86.086);
--muted-foreground: oklch(0.464 0.027 86.072);
--popover: oklch(0.983 0.007 114.958);
--popover-foreground: oklch(0.104 0.016 115.551);
--card: oklch(0.983 0.007 114.958);
--card-foreground: oklch(0.104 0.016 115.551);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.642 0.124 118.903);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.589 0.093 84.176);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.61 0.149 137.209);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.413 0.119 43.782);
--destructive-foreground: oklch(0.888 0.064 51.664);
--ring: oklch(0.642 0.124 118.903);
--chart-1: oklch(0.642 0.124 118.903);
--chart-2: oklch(0.589 0.093 84.176);
--chart-3: oklch(0.61 0.149 137.209);
--chart-4: oklch(0.621 0.099 84.134);
--chart-5: oklch(0.651 0.13 119.1);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.008 115.226);
--foreground: oklch(0.986 0.002 114.857);
--muted: oklch(0.272 0.032 85.499);
--muted-foreground: oklch(0.756 0.024 86.092);
--popover: oklch(0.123 0.01 115.226);
--popover-foreground: oklch(0.993 0.001 114.84);
--card: oklch(0.123 0.01 115.226);
--card-foreground: oklch(0.993 0.001 114.84);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.642 0.124 118.903);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.589 0.093 84.176);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.61 0.149 137.209);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.669 0.201 41.743);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.642 0.124 118.903);
--chart-1: oklch(0.642 0.124 118.903);
--chart-2: oklch(0.589 0.093 84.176);
--chart-3: oklch(0.61 0.149 137.209);
--chart-4: oklch(0.621 0.099 84.134);
--chart-5: oklch(0.651 0.13 119.1);
}