Soybean is a shadcn/ui theme built around a deep green primary color (#343f18) with deep green accents (#203f18). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the deep green primary (#343f18) on a green-tinted background (#090c04).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdf7snow | #090c04black |
| Foreground | #111703black | #fdfdfcwhite |
| Card | #fbfdf7snow | #090c04black |
| Card foreground | #111703black | #fdfdfcwhite |
| Popover | #fbfdf7snow | #090c04black |
| Popover foreground | #111703black | #fdfdfcwhite |
| Primary | #343f18darkslategray | #343f18darkslategray |
| Primary foreground | #d0dfaapalegoldenrod | #d0dfaapalegoldenrod |
| Secondary | #3f3618darkolivegreen | #3f3618darkolivegreen |
| Secondary foreground | #dfd3aapalegoldenrod | #dfd3aapalegoldenrod |
| Muted | #f0f0efwhitesmoke | #10100fblack |
| Muted foreground | #5b5952dimgray | #adaba4darkgray |
| Accent | #203f18darkgreen | #203f18darkgreen |
| Accent foreground | #b5dfaasilver | #b5dfaasilver |
| Destructive | #ca1f16firebrick | #e9423atomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #343f18darkslategray | #343f18darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 17.84:1 | AAA |
| Text on card | 17.84:1 | AAA |
| Primary button | 7.94:1 | AAA |
| Secondary button | 7.98:1 | AAA |
| Muted text | 6.15:1 | AA |
| Accent | 7.90:1 | AAA |
| Destructive | 5.64:1 | AA |
| Text on background | 19.38:1 | AAA |
| Text on card | 19.38:1 | AAA |
| Primary button | 7.94:1 | AAA |
| Secondary button | 7.98:1 | AAA |
| Muted text | 8.29:1 | AAA |
| Accent | 7.90:1 | AAA |
| Destructive | 3.95:1 | AA Large |
Paste this into your globals.css to use Soybean in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.008 119.442);
--foreground: oklch(0.192 0.04 122.263);
--muted: oklch(0.955 0.002 93.884);
--muted-foreground: oklch(0.464 0.011 94.107);
--popover: oklch(0.991 0.008 119.442);
--popover-foreground: oklch(0.192 0.04 122.263);
--card: oklch(0.991 0.008 119.442);
--card-foreground: oklch(0.192 0.04 122.263);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.347 0.062 122.81);
--primary-foreground: oklch(0.878 0.072 120.735);
--secondary: oklch(0.336 0.048 94.195);
--secondary-foreground: oklch(0.867 0.056 94.408);
--accent: oklch(0.333 0.074 139.274);
--accent-foreground: oklch(0.86 0.084 138.949);
--destructive: oklch(0.539 0.204 29.173);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.347 0.062 122.81);
--chart-1: oklch(0.347 0.062 122.81);
--chart-2: oklch(0.336 0.048 94.195);
--chart-3: oklch(0.333 0.074 139.274);
--chart-4: oklch(0.373 0.055 94.138);
--chart-5: oklch(0.351 0.065 123.015);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.147 0.02 119.528);
--foreground: oklch(0.994 0.002 119.332);
--muted: oklch(0.172 0.003 94.018);
--muted-foreground: oklch(0.74 0.01 94.006);
--popover: oklch(0.147 0.02 119.528);
--popover-foreground: oklch(0.994 0.002 119.332);
--card: oklch(0.147 0.02 119.528);
--card-foreground: oklch(0.994 0.002 119.332);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.347 0.062 122.81);
--primary-foreground: oklch(0.878 0.072 120.735);
--secondary: oklch(0.336 0.048 94.195);
--secondary-foreground: oklch(0.867 0.056 94.408);
--accent: oklch(0.333 0.074 139.274);
--accent-foreground: oklch(0.86 0.084 138.949);
--destructive: oklch(0.624 0.205 27.769);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.347 0.062 122.81);
--chart-1: oklch(0.347 0.062 122.81);
--chart-2: oklch(0.336 0.048 94.195);
--chart-3: oklch(0.333 0.074 139.274);
--chart-4: oklch(0.373 0.055 94.138);
--chart-5: oklch(0.351 0.065 123.015);
}