1 is a shadcn/ui theme built around a light green primary color (#e5fbea) with muted light green accents (#b4cfbb). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#e5fbea) on a green-tinted background (#060e08).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060e08black |
| Foreground | #010402black | #ffffffwhite |
| Card | #fcfcfcsnow | #08120ablack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #060e08black |
| Popover foreground | #010402black | #ffffffwhite |
| Primary | #e5fbeahoneydew | #e5fbeahoneydew |
| Primary foreground | #0a3d16darkgreen | #0a3d16darkgreen |
| Secondary | #d0dcd3lightgrey | #222a24darkslategray |
| Secondary foreground | #354639darkslategray | #b9c6bcsilver |
| Muted | #e0ebe3gainsboro | #141f17black |
| Muted foreground | #4c4d4cdarkslategray | #b2b3b2darkgray |
| Accent | #b4cfbbsilver | #2c3f31darkslategray |
| Accent foreground | #203224darkslategray | #c6d7calightgrey |
| Destructive | #a21d06firebrick | #f62c09orangered |
| Destructive foreground | #fee2ddmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e5fbeahoneydew | #e5fbeahoneydew |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.59:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 11.38:1 | AAA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 6.93:1 | AA |
| Accent | 8.17:1 | AAA |
| Destructive | 6.28:1 | AA |
| Text on background | 19.51:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 11.38:1 | AAA |
| Secondary button | 8.31:1 | AAA |
| Muted text | 8.07:1 | AAA |
| Accent | 7.52:1 | AAA |
| Destructive | 3.96:1 | AA Large |
Paste this into your globals.css to use 1 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.098 0.016 152.487);
--muted: oklch(0.929 0.016 152.961);
--muted-foreground: oklch(0.419 0.003 153.133);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.098 0.016 152.487);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.966 0.032 152.695);
--primary-foreground: oklch(0.317 0.084 147.158);
--secondary: oklch(0.883 0.017 152.922);
--secondary-foreground: oklch(0.374 0.031 151.784);
--accent: oklch(0.83 0.041 152.413);
--accent-foreground: oklch(0.296 0.034 151.148);
--destructive: oklch(0.462 0.171 31.88);
--destructive-foreground: oklch(0.933 0.032 29.624);
--ring: oklch(0.966 0.032 152.695);
--chart-1: oklch(0.966 0.032 152.695);
--chart-2: oklch(0.883 0.017 152.922);
--chart-3: oklch(0.83 0.041 152.413);
--chart-4: oklch(0.905 0.014 152.99);
--chart-5: oklch(0.967 0.033 152.671);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.154 0.02 152.086);
--foreground: oklch(1 0 180);
--muted: oklch(0.225 0.022 151.508);
--muted-foreground: oklch(0.766 0.002 153.19);
--popover: oklch(0.154 0.02 152.086);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.169 0.023 151.197);
--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.966 0.032 152.695);
--primary-foreground: oklch(0.317 0.084 147.158);
--secondary: oklch(0.276 0.015 152.306);
--secondary-foreground: oklch(0.813 0.019 152.845);
--accent: oklch(0.346 0.034 151.517);
--accent-foreground: oklch(0.862 0.025 152.765);
--destructive: oklch(0.627 0.236 31.543);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.966 0.032 152.695);
--chart-1: oklch(0.966 0.032 152.695);
--chart-2: oklch(0.276 0.015 152.306);
--chart-3: oklch(0.346 0.034 151.517);
--chart-4: oklch(0.308 0.018 152.262);
--chart-5: oklch(0.967 0.033 152.671);
}