Glum is a shadcn/ui theme built around a green primary color (#549c5b) with teal accents (#549c7f). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the green primary (#549c5b) on a neutral background (#030703).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #030703black |
| Foreground | #000000black | #f5faf5whitesmoke |
| Card | #f8fcf9mintcream | #050b05black |
| Card foreground | #000000black | #f8fbf9mintcream |
| Popover | #fcfdfcwhite | #030703black |
| Popover foreground | #000000black | #f5faf5whitesmoke |
| Primary | #549c5bmediumseagreen | #549c5bmediumseagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #719c54olivedrab | #719c54olivedrab |
| Secondary foreground | #000000black | #000000black |
| Muted | #deebd5gainsboro | #1c2a14black |
| Muted foreground | #474747darkslategray | #b8b8b8silver |
| Accent | #549c7fcadetblue | #549c7fcadetblue |
| Accent foreground | #000000black | #000000black |
| Destructive | #9f2b04saddlebrown | #f9470borangered |
| Destructive foreground | #fee1d7mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #549c5bmediumseagreen | #549c5bmediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.61:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 3.34:1 | AA Large |
| Secondary button | 6.56:1 | AA |
| Muted text | 7.52:1 | AAA |
| Accent | 6.42:1 | AA |
| Destructive | 6.01:1 | AA |
| Text on background | 19.17:1 | AAA |
| Text on card | 19.11:1 | AAA |
| Primary button | 3.34:1 | AA Large |
| Secondary button | 6.56:1 | AA |
| Muted text | 7.63:1 | AAA |
| Accent | 6.42:1 | AA |
| Destructive | 3.54:1 | AA Large |
Paste this into your globals.css to use Glum in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 148.562);
--foreground: oklch(0 0 0);
--muted: oklch(0.925 0.033 132.627);
--muted-foreground: oklch(0.399 0 180);
--popover: oklch(0.993 0.003 148.562);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.986 0.005 148.531);
--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.628 0.12 146.133);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.643 0.111 133.954);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.637 0.085 165.827);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.468 0.158 35.799);
--destructive-foreground: oklch(0.931 0.035 39.322);
--ring: oklch(0.628 0.12 146.133);
--chart-1: oklch(0.628 0.12 146.133);
--chart-2: oklch(0.643 0.111 133.954);
--chart-3: oklch(0.637 0.085 165.827);
--chart-4: oklch(0.673 0.117 133.965);
--chart-5: oklch(0.636 0.13 145.91);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.016 147.695);
--foreground: oklch(0.98 0.008 148.507);
--muted: oklch(0.265 0.043 133.818);
--muted-foreground: oklch(0.781 0 180);
--popover: oklch(0.12 0.016 147.695);
--popover-foreground: oklch(0.98 0.008 148.507);
--card: oklch(0.138 0.018 147.688);
--card-foreground: oklch(0.986 0.005 148.537);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.628 0.12 146.133);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.643 0.111 133.954);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.637 0.085 165.827);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.651 0.222 35.459);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.628 0.12 146.133);
--chart-1: oklch(0.628 0.12 146.133);
--chart-2: oklch(0.643 0.111 133.954);
--chart-3: oklch(0.637 0.085 165.827);
--chart-4: oklch(0.673 0.117 133.965);
--chart-5: oklch(0.636 0.13 145.91);
}