Happy-go-lucky is a shadcn/ui theme built around a muted orange primary color (#8e7e6b) with muted light orange accents (#dcd4cb). The light mode uses a neutral background (#fefdfb). Dark mode keeps the muted orange primary (#8e7e6b) on a neutral background (#080503).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #080503black |
| Foreground | #0d0802black | #faf8f4whitesmoke |
| Card | #fefdfbsnow | #080503black |
| Card foreground | #0d0802black | #faf8f4whitesmoke |
| Popover | #fefdfbsnow | #080503black |
| Popover foreground | #0d0802black | #faf8f4whitesmoke |
| Primary | #8e7e6bgray | #8e7e6bgray |
| Primary foreground | #000000black | #000000black |
| Secondary | #ebe8e5linen | #221f1bblack |
| Secondary foreground | #595046darkolivegreen | #bfb8b0silver |
| Muted | #f4eee6linen | #19120bblack |
| Muted foreground | #48433cdarkslategray | #c3bdb7silver |
| Accent | #dcd4cblightgrey | #342c22darkslategray |
| Accent foreground | #463b30darkslategray | #d1c5b8silver |
| Destructive | #c31c09firebrick | #f4230borangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8e7e6bgray | #8e7e6bgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.56:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 5.36:1 | AA |
| Secondary button | 6.47:1 | AA |
| Muted text | 8.48:1 | AAA |
| Accent | 7.43:1 | AAA |
| Destructive | 6.02:1 | AA |
| Text on background | 19.14:1 | AAA |
| Text on card | 19.14:1 | AAA |
| Primary button | 5.36:1 | AA |
| Secondary button | 8.37:1 | AAA |
| Muted text | 9.94:1 | AAA |
| Accent | 8.09:1 | AAA |
| Destructive | 4.14: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(0.993 0.003 71.426);
--foreground: oklch(0.139 0.02 80.151);
--muted: oklch(0.951 0.012 71.338);
--muted-foreground: oklch(0.385 0.013 71.123);
--popover: oklch(0.993 0.003 71.426);
--popover-foreground: oklch(0.139 0.02 80.151);
--card: oklch(0.993 0.003 71.426);
--card-foreground: oklch(0.139 0.02 80.151);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.603 0.034 70.839);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.933 0.005 71.406);
--secondary-foreground: oklch(0.436 0.02 70.978);
--accent: oklch(0.874 0.015 71.3);
--accent-foreground: oklch(0.361 0.024 70.664);
--destructive: oklch(0.523 0.201 30.445);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.603 0.034 70.839);
--chart-1: oklch(0.603 0.034 70.839);
--chart-2: oklch(0.933 0.005 71.406);
--chart-3: oklch(0.874 0.015 71.3);
--chart-4: oklch(0.955 0.003 71.422);
--chart-5: oklch(0.606 0.041 70.667);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.012 78.278);
--foreground: oklch(0.979 0.005 71.406);
--muted: oklch(0.189 0.018 70.17);
--muted-foreground: oklch(0.801 0.011 71.33);
--popover: oklch(0.119 0.012 78.278);
--popover-foreground: oklch(0.979 0.005 71.406);
--card: oklch(0.119 0.012 78.278);
--card-foreground: oklch(0.979 0.005 71.406);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.603 0.034 70.839);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.241 0.008 71.118);
--secondary-foreground: oklch(0.787 0.014 71.286);
--accent: oklch(0.299 0.021 70.628);
--accent-foreground: oklch(0.83 0.022 71.2);
--destructive: oklch(0.617 0.239 30.393);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.603 0.034 70.839);
--chart-1: oklch(0.603 0.034 70.839);
--chart-2: oklch(0.241 0.008 71.118);
--chart-3: oklch(0.299 0.021 70.628);
--chart-4: oklch(0.273 0.01 71.092);
--chart-5: oklch(0.606 0.041 70.667);
}