Component is a shadcn/ui theme built around a vivid green primary color (#2afe5f) with vivid teal accents (#2afec9). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#2afe5f) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010402black |
| Foreground | #031708black | #ffffffwhite |
| Card | #ffffffwhite | #010402black |
| Card foreground | #031708black | #ffffffwhite |
| Popover | #ffffffwhite | #010402black |
| Popover foreground | #031708black | #ffffffwhite |
| Primary | #2afe5fspringgreen | #2afe5fspringgreen |
| Primary foreground | #005b17darkgreen | #005b17darkgreen |
| Secondary | #5ffe2alawngreen | #5ffe2alawngreen |
| Secondary foreground | #175b00darkgreen | #175b00darkgreen |
| Muted | #d2e5cclightgrey | #20331adarkslategray |
| Muted foreground | #5b6d55dimgray | #98aa92darkseagreen |
| Accent | #2afec9turquoise | #2afec9turquoise |
| Accent foreground | #005b45darkslategray | #005b45darkslategray |
| Destructive | #7b3109saddlebrown | #d55510chocolate |
| Destructive foreground | #fad2bdpeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2afe5fspringgreen | #2afe5fspringgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.58:1 | AAA |
| Text on card | 18.58:1 | AAA |
| Primary button | 6.15:1 | AA |
| Secondary button | 6.19:1 | AA |
| Muted text | 4.21:1 | AA Large |
| Accent | 6.23:1 | AA |
| Destructive | 6.54:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 6.15:1 | AA |
| Secondary button | 6.19:1 | AA |
| Muted text | 5.49:1 | AA |
| Accent | 6.23:1 | AA |
| Destructive | 4.07:1 | AA Large |
Paste this into your globals.css to use Component in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.181 0.041 150.758);
--muted: oklch(0.902 0.039 137.84);
--muted-foreground: oklch(0.512 0.042 137.918);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.181 0.041 150.758);
--card: oklch(1 0 180);
--card-foreground: oklch(0.181 0.041 150.758);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.871 0.255 146.186);
--primary-foreground: oklch(0.411 0.127 145.562);
--secondary: oklch(0.878 0.269 139.824);
--secondary-foreground: oklch(0.414 0.133 140.083);
--accent: oklch(0.889 0.17 169.84);
--accent-foreground: oklch(0.42 0.084 168.615);
--destructive: oklch(0.413 0.114 43.696);
--destructive-foreground: oklch(0.893 0.054 49.947);
--ring: oklch(0.871 0.255 146.186);
--chart-1: oklch(0.871 0.255 146.186);
--chart-2: oklch(0.878 0.269 139.824);
--chart-3: oklch(0.889 0.17 169.84);
--chart-4: oklch(0.882 0.259 139.467);
--chart-5: oklch(0.879 0.26 146.014);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.016 153.18);
--foreground: oklch(1 0 180);
--muted: oklch(0.297 0.05 138.198);
--muted-foreground: oklch(0.717 0.038 137.859);
--popover: oklch(0.098 0.016 153.18);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.098 0.016 153.18);
--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.871 0.255 146.186);
--primary-foreground: oklch(0.411 0.127 145.562);
--secondary: oklch(0.878 0.269 139.824);
--secondary-foreground: oklch(0.414 0.133 140.083);
--accent: oklch(0.889 0.17 169.84);
--accent-foreground: oklch(0.42 0.084 168.615);
--destructive: oklch(0.61 0.176 42.567);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.871 0.255 146.186);
--chart-1: oklch(0.871 0.255 146.186);
--chart-2: oklch(0.878 0.269 139.824);
--chart-3: oklch(0.889 0.17 169.84);
--chart-4: oklch(0.882 0.259 139.467);
--chart-5: oklch(0.879 0.26 146.014);
}