Jellybeans is a shadcn/ui theme built around a muted green primary color (#697057) with muted light green accents (#ebece9). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#697057) on a neutral background (#060703).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060703black |
| Foreground | #101604black | #ffffffwhite |
| Card | #fcfcfcsnow | #090b04black |
| Card foreground | #0d1103black | #ffffffwhite |
| Popover | #ffffffwhite | #060703black |
| Popover foreground | #101604black | #ffffffwhite |
| Primary | #697057dimgray | #697057dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #ebece9linen | #1a1c17black |
| Secondary foreground | #54584bdarkolivegreen | #b5b9acdarkgray |
| Muted | #edf0e6linen | #161a0fblack |
| Muted foreground | #5f6454dimgray | #a7ab9bdarkgray |
| Accent | #ebece9linen | #1a1c17black |
| Accent foreground | #54584bdarkolivegreen | #b5b9acdarkgray |
| Destructive | #90330esaddlebrown | #eb6733tomato |
| Destructive foreground | #fbe0d5antiquewhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #697057dimgray | #697057dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.44:1 | AAA |
| Text on card | 18.70:1 | AAA |
| Primary button | 5.16:1 | AA |
| Secondary button | 6.17:1 | AA |
| Muted text | 5.28:1 | AA |
| Accent | 6.17:1 | AA |
| Destructive | 6.28:1 | AA |
| Text on background | 20.16:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 5.16:1 | AA |
| Secondary button | 8.61:1 | AAA |
| Muted text | 7.54:1 | AAA |
| Accent | 8.61:1 | AAA |
| Destructive | 6.51:1 | AA |
Paste this into your globals.css to use Jellybeans in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.187 0.035 122.688);
--muted: oklch(0.949 0.014 120.285);
--muted-foreground: oklch(0.494 0.026 120.943);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.187 0.035 122.688);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.169 0.031 121.815);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.532 0.04 121.33);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.942 0.004 120.118);
--secondary-foreground: oklch(0.453 0.021 120.834);
--accent: oklch(0.942 0.004 120.118);
--accent-foreground: oklch(0.453 0.021 120.834);
--destructive: oklch(0.451 0.134 39.161);
--destructive-foreground: oklch(0.926 0.033 42.847);
--ring: oklch(0.532 0.04 121.33);
--chart-1: oklch(0.532 0.04 121.33);
--chart-2: oklch(0.942 0.004 120.118);
--chart-3: oklch(0.942 0.004 120.118);
--chart-4: oklch(0.964 0.003 120.087);
--chart-5: oklch(0.54 0.049 121.605);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.015 119.926);
--foreground: oklch(1 0 180);
--muted: oklch(0.209 0.02 121.686);
--muted-foreground: oklch(0.734 0.024 120.589);
--popover: oklch(0.126 0.015 119.926);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.145 0.018 120.063);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.532 0.04 121.33);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.222 0.008 120.646);
--secondary-foreground: oklch(0.778 0.018 120.418);
--accent: oklch(0.222 0.008 120.646);
--accent-foreground: oklch(0.778 0.018 120.418);
--destructive: oklch(0.669 0.176 40.52);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.532 0.04 121.33);
--chart-1: oklch(0.532 0.04 121.33);
--chart-2: oklch(0.222 0.008 120.646);
--chart-3: oklch(0.222 0.008 120.646);
--chart-4: oklch(0.256 0.01 120.699);
--chart-5: oklch(0.54 0.049 121.605);
}