Gleeful is a shadcn/ui theme built around a deep green primary color (#1e2f18) with deep pink accents (#2f181e). The light mode uses a neutral background (#fcfefb). Dark mode keeps the deep green primary (#1e2f18) on a neutral background (#020401).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #020401black |
| Foreground | #060c03black | #fcfdfcwhite |
| Card | #f8fdf6mintcream | #040802black |
| Card foreground | #040802black | #ffffffwhite |
| Popover | #f8fdf6mintcream | #040802black |
| Popover foreground | #040802black | #ffffffwhite |
| Primary | #1e2f18black | #1e2f18black |
| Primary foreground | #b3d2a7silver | #b3d2a7silver |
| Secondary | #181e2fblack | #181e2fblack |
| Secondary foreground | #a7b3d2lightsteelblue | #a7b3d2lightsteelblue |
| Muted | #eceef3whitesmoke | #0c0e13black |
| Muted foreground | #525660dimgray | #9fa2addarkgray |
| Accent | #2f181eblack | #2f181eblack |
| Accent foreground | #d2a7b3silver | #d2a7b3silver |
| Destructive | #660505maroon | #f43434crimson |
| Destructive foreground | #faa3a3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1e2f18black | #1e2f18black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.51:1 | AAA |
| Text on card | 19.63:1 | AAA |
| Primary button | 8.58:1 | AAA |
| Secondary button | 7.88:1 | AAA |
| Muted text | 6.33:1 | AA |
| Accent | 7.78:1 | AAA |
| Destructive | 6.82:1 | AA |
| Text on background | 20.18:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 8.58:1 | AAA |
| Secondary button | 7.88:1 | AAA |
| Muted text | 7.59:1 | AAA |
| Accent | 7.78:1 | AAA |
| Destructive | 3.89:1 | AA Large |
Paste this into your globals.css to use Gleeful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.005 137.202);
--foreground: oklch(0.143 0.025 135.591);
--muted: oklch(0.95 0.007 270.061);
--muted-foreground: oklch(0.453 0.018 269.758);
--popover: oklch(0.989 0.011 137.215);
--popover-foreground: oklch(0.125 0.022 135.485);
--card: oklch(0.989 0.011 137.215);
--card-foreground: oklch(0.125 0.022 135.485);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.284 0.046 137.709);
--primary-foreground: oklch(0.829 0.067 137.397);
--secondary: oklch(0.239 0.034 268.483);
--secondary-foreground: oklch(0.768 0.046 269.524);
--accent: oklch(0.244 0.038 3.04);
--accent-foreground: oklch(0.772 0.052 0.633);
--destructive: oklch(0.324 0.127 28.293);
--destructive-foreground: oklch(0.802 0.104 19.605);
--ring: oklch(0.284 0.046 137.709);
--chart-1: oklch(0.284 0.046 137.709);
--chart-2: oklch(0.239 0.034 268.483);
--chart-3: oklch(0.244 0.038 3.04);
--chart-4: oklch(0.267 0.04 268.369);
--chart-5: oklch(0.286 0.05 137.774);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.017 135.485);
--foreground: oklch(0.993 0.002 137.195);
--muted: oklch(0.163 0.011 269.452);
--muted-foreground: oklch(0.714 0.016 269.928);
--popover: oklch(0.125 0.022 135.485);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.125 0.022 135.485);
--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.284 0.046 137.709);
--primary-foreground: oklch(0.829 0.067 137.397);
--secondary: oklch(0.239 0.034 268.483);
--secondary-foreground: oklch(0.768 0.046 269.524);
--accent: oklch(0.244 0.038 3.04);
--accent-foreground: oklch(0.772 0.052 0.633);
--destructive: oklch(0.631 0.227 26.746);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.284 0.046 137.709);
--chart-1: oklch(0.284 0.046 137.709);
--chart-2: oklch(0.239 0.034 268.483);
--chart-3: oklch(0.244 0.038 3.04);
--chart-4: oklch(0.267 0.04 268.369);
--chart-5: oklch(0.286 0.05 137.774);
}