Happy-go-lucky is a shadcn/ui theme built around a deep green primary color (#212806) with muted light green accents (#c7cab9). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#212806) on a neutral background (#030401).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030401black |
| Foreground | #070802black | #ffffffwhite |
| Card | #fcfcfcsnow | #070803black |
| Card foreground | #030401black | #ffffffwhite |
| Popover | #ffffffwhite | #030401black |
| Popover foreground | #070802black | #ffffffwhite |
| Primary | #212806black | #212806black |
| Primary foreground | #b5db1fyellowgreen | #b5db1fyellowgreen |
| Secondary | #d3d4celightgrey | #2e3126darkslategray |
| Secondary foreground | #3a3b35darkslategray | #c9cbbdsilver |
| Muted | #f5f7eewhitesmoke | #0f1108black |
| Muted foreground | #606255dimgray | #a7aa9ddarkgray |
| Accent | #c7cab9silver | #454b30darkolivegreen |
| Accent foreground | #2c2f23darkslategray | #dcdfcdgainsboro |
| Destructive | #990f0adarkred | #f23731crimson |
| Destructive foreground | #fddad9mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #212806black | #212806black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.10:1 | AAA |
| Text on card | 20.11:1 | AAA |
| Primary button | 9.54:1 | AAA |
| Secondary button | 7.57:1 | AAA |
| Muted text | 5.73:1 | AA |
| Accent | 8.20:1 | AAA |
| Destructive | 6.66:1 | AA |
| Text on background | 20.56:1 | AAA |
| Text on card | 20.14:1 | AAA |
| Primary button | 9.54:1 | AAA |
| Secondary button | 8.08:1 | AAA |
| Muted text | 8.03:1 | AAA |
| Accent | 6.74:1 | AA |
| Destructive | 3.91:1 | AA Large |
Paste this into your globals.css to use Happy-go-lucky in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.13 0.019 116.148);
--muted: oklch(0.971 0.012 115.797);
--muted-foreground: oklch(0.491 0.02 116.333);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.13 0.019 116.148);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.103 0.015 116.148);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.262 0.054 119.958);
--primary-foreground: oklch(0.834 0.195 121.576);
--secondary: oklch(0.867 0.008 115.739);
--secondary-foreground: oklch(0.351 0.012 116.182);
--accent: oklch(0.833 0.024 116.1);
--accent-foreground: oklch(0.297 0.02 116.827);
--destructive: oklch(0.436 0.17 29.032);
--destructive-foreground: oklch(0.916 0.039 20.232);
--ring: oklch(0.262 0.054 119.958);
--chart-1: oklch(0.262 0.054 119.958);
--chart-2: oklch(0.867 0.008 115.739);
--chart-3: oklch(0.833 0.024 116.1);
--chart-4: oklch(0.89 0.006 115.708);
--chart-5: oklch(0.265 0.056 120.073);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.101 0.013 116.067);
--foreground: oklch(1 0 180);
--muted: oklch(0.173 0.017 117.368);
--muted-foreground: oklch(0.731 0.018 116.039);
--popover: oklch(0.101 0.013 116.067);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.128 0.016 116.067);
--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.262 0.054 119.958);
--primary-foreground: oklch(0.834 0.195 121.576);
--secondary: oklch(0.306 0.018 116.677);
--secondary-foreground: oklch(0.837 0.019 116.004);
--accent: oklch(0.399 0.043 117.602);
--accent-foreground: oklch(0.897 0.024 116.077);
--destructive: oklch(0.629 0.223 27.845);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.262 0.054 119.958);
--chart-1: oklch(0.262 0.054 119.958);
--chart-2: oklch(0.306 0.018 116.677);
--chart-3: oklch(0.399 0.043 117.602);
--chart-4: oklch(0.339 0.021 116.716);
--chart-5: oklch(0.265 0.056 120.073);
}