Happy is a shadcn/ui theme built around a vivid light teal primary color (#8bfbfd) with vivid light red accents (#fd8d8b). The light mode uses a neutral background (#f7fcfc). Dark mode keeps the vivid light teal primary (#8bfbfd) on a neutral background (#030707).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fcfcmintcream | #030707black |
| Foreground | #010909black | #ffffffwhite |
| Card | #f4fbfbmintcream | #040b0bblack |
| Card foreground | #010405black | #ffffffwhite |
| Popover | #f7fcfcmintcream | #030707black |
| Popover foreground | #010909black | #ffffffwhite |
| Primary | #8bfbfdpaleturquoise | #8bfbfdpaleturquoise |
| Primary foreground | #015455darkslategray | #015455darkslategray |
| Secondary | #fd8d8blightcoral | #fd8d8blightcoral |
| Secondary foreground | #550301maroon | #550301maroon |
| Muted | #e9cecelightgrey | #311716black |
| Muted foreground | #5e5050dimgray | #afa2a1darkgray |
| Accent | #fd8d8blightcoral | #fd8d8blightcoral |
| Accent foreground | #550301maroon | #550301maroon |
| Destructive | #9d3302saddlebrown | #fd5c12orangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8bfbfdpaleturquoise | #8bfbfdpaleturquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.47:1 | AAA |
| Text on card | 19.60:1 | AAA |
| Primary button | 7.23:1 | AAA |
| Secondary button | 6.70:1 | AA |
| Muted text | 5.18:1 | AA |
| Accent | 6.70:1 | AA |
| Destructive | 7.26:1 | AAA |
| Text on background | 20.21:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 7.23:1 | AAA |
| Secondary button | 6.70:1 | AA |
| Muted text | 6.73:1 | AA |
| Accent | 6.70:1 | AA |
| Destructive | 6.70:1 | AA |
Paste this into your globals.css to use Happy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.005 198.285);
--foreground: oklch(0.128 0.018 196.109);
--muted: oklch(0.874 0.03 18.905);
--muted-foreground: oklch(0.445 0.018 19.016);
--popover: oklch(0.988 0.005 198.285);
--popover-foreground: oklch(0.128 0.018 196.109);
--card: oklch(0.982 0.008 198.246);
--card-foreground: oklch(0.102 0.015 196.109);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.924 0.103 196.954);
--primary-foreground: oklch(0.404 0.068 196.759);
--secondary: oklch(0.765 0.136 21.757);
--secondary-foreground: oklch(0.286 0.114 29.357);
--accent: oklch(0.765 0.136 21.757);
--accent-foreground: oklch(0.286 0.114 29.357);
--destructive: oklch(0.472 0.149 39.292);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.924 0.103 196.954);
--chart-1: oklch(0.924 0.103 196.954);
--chart-2: oklch(0.765 0.136 21.757);
--chart-3: oklch(0.765 0.136 21.757);
--chart-4: oklch(0.792 0.117 21.066);
--chart-5: oklch(0.927 0.105 196.933);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.011 196.871);
--foreground: oklch(1 0 180);
--muted: oklch(0.241 0.043 21.796);
--muted-foreground: oklch(0.723 0.016 18.706);
--popover: oklch(0.123 0.011 196.871);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.141 0.013 196.928);
--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.924 0.103 196.954);
--primary-foreground: oklch(0.404 0.068 196.759);
--secondary: oklch(0.765 0.136 21.757);
--secondary-foreground: oklch(0.286 0.114 29.357);
--accent: oklch(0.765 0.136 21.757);
--accent-foreground: oklch(0.286 0.114 29.357);
--destructive: oklch(0.68 0.208 39.828);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.924 0.103 196.954);
--chart-1: oklch(0.924 0.103 196.954);
--chart-2: oklch(0.765 0.136 21.757);
--chart-3: oklch(0.765 0.136 21.757);
--chart-4: oklch(0.792 0.117 21.066);
--chart-5: oklch(0.927 0.105 196.933);
}