green is a shadcn/ui theme built around a vivid green primary color (#33f05c) with vivid red accents (#f05c33). The light mode uses a neutral background (#fbfdfc). Dark mode keeps the vivid green primary (#33f05c) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfcwhite | #010402black |
| Foreground | #010903black | #f6f8f7whitesmoke |
| Card | #fbfdfcwhite | #010402black |
| Card foreground | #010903black | #f6f8f7whitesmoke |
| Popover | #fbfdfcwhite | #010402black |
| Popover foreground | #010903black | #f6f8f7whitesmoke |
| Primary | #33f05climegreen | #33f05climegreen |
| Primary foreground | #065116darkgreen | #065116darkgreen |
| Secondary | #5c33f0blueviolet | #5c33f0blueviolet |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e3e0f0lavender | #120f1fblack |
| Muted foreground | #46454adarkslategray | #b6b5basilver |
| Accent | #f05c33tomato | #f05c33tomato |
| Accent foreground | #000000black | #000000black |
| Destructive | #ce1b12firebrick | #eb281ecrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #eaebealinen | #181b19black |
| Input | #eaebealinen | #181b19black |
| Ring | #33f05climegreen | #33f05climegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.80:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 6.24:1 | AA |
| Secondary button | 6.59:1 | AA |
| Muted text | 7.33:1 | AAA |
| Accent | 6.26:1 | AA |
| Destructive | 5.51:1 | AA |
| Text on background | 19.31:1 | AAA |
| Text on card | 19.31:1 | AAA |
| Primary button | 6.24:1 | AA |
| Secondary button | 6.59:1 | AA |
| Muted text | 9.25:1 | AAA |
| Accent | 6.26:1 | AA |
| Destructive | 4.31:1 | AA Large |
Paste this into your globals.css to use green in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 152.57);
--foreground: oklch(0.125 0.028 151.506);
--muted: oklch(0.914 0.022 295.892);
--muted-foreground: oklch(0.394 0.007 295.996);
--popover: oklch(0.993 0.003 152.57);
--popover-foreground: oklch(0.125 0.028 151.506);
--card: oklch(0.993 0.003 152.57);
--card-foreground: oklch(0.125 0.028 151.506);
--border: oklch(0.94 0.002 152.576);
--input: oklch(0.94 0.002 152.576);
--primary: oklch(0.836 0.24 146.02);
--primary-foreground: oklch(0.379 0.113 145.595);
--secondary: oklch(0.507 0.257 282.071);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.662 0.19 36.015);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.545 0.211 29.33);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.836 0.24 146.02);
--chart-1: oklch(0.836 0.24 146.02);
--chart-2: oklch(0.507 0.257 282.071);
--chart-3: oklch(0.662 0.19 36.015);
--chart-4: oklch(0.534 0.244 284.406);
--chart-5: oklch(0.843 0.245 145.846);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.016 151.836);
--foreground: oklch(0.978 0.003 152.563);
--muted: oklch(0.181 0.033 292.804);
--muted-foreground: oklch(0.777 0.006 296.188);
--popover: oklch(0.097 0.016 151.836);
--popover-foreground: oklch(0.978 0.003 152.563);
--card: oklch(0.097 0.016 151.836);
--card-foreground: oklch(0.978 0.003 152.563);
--border: oklch(0.217 0.004 152.298);
--input: oklch(0.217 0.004 152.298);
--primary: oklch(0.836 0.24 146.02);
--primary-foreground: oklch(0.379 0.113 145.595);
--secondary: oklch(0.507 0.257 282.071);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.662 0.19 36.015);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.606 0.228 29.119);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.836 0.24 146.02);
--chart-1: oklch(0.836 0.24 146.02);
--chart-2: oklch(0.507 0.257 282.071);
--chart-3: oklch(0.662 0.19 36.015);
--chart-4: oklch(0.534 0.244 284.406);
--chart-5: oklch(0.843 0.245 145.846);
}