Glum is a shadcn/ui theme built around a purple primary color (#e873cd) with green accents (#73e88e). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#e873cd) on a purple-tinted background (#0c030a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c030ablack |
| Foreground | #000000black | #fbf9fasnow |
| Card | #ffffffwhite | #0c030ablack |
| Card foreground | #000000black | #fbf9fasnow |
| Popover | #ffffffwhite | #0c030ablack |
| Popover foreground | #000000black | #fbf9fasnow |
| Primary | #e873cdorchid | #e873cdorchid |
| Primary foreground | #23061cblack | #23061cblack |
| Secondary | #73e88elightgreen | #73e88elightgreen |
| Secondary foreground | #06230dblack | #06230dblack |
| Muted | #d2dfd5lightgrey | #202d23darkslategray |
| Muted foreground | #5c605ddimgray | #9fa3a0darkgray |
| Accent | #73e88elightgreen | #73e88elightgreen |
| Accent foreground | #06230dblack | #06230dblack |
| Destructive | #ba3403firebrick | #ec4204orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e873cdorchid | #e873cdorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.95:1 | AA |
| Secondary button | 10.90:1 | AAA |
| Muted text | 4.65:1 | AA |
| Accent | 10.90:1 | AAA |
| Destructive | 5.88:1 | AA |
| Text on background | 19.36:1 | AAA |
| Text on card | 19.36:1 | AAA |
| Primary button | 6.95:1 | AA |
| Secondary button | 10.90:1 | AAA |
| Muted text | 5.64:1 | AA |
| Accent | 10.90:1 | AAA |
| Destructive | 3.93:1 | AA Large |
Paste this into your globals.css to use Glum in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.892 0.019 152.882);
--muted-foreground: oklch(0.486 0.007 153.019);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.719 0.179 336.958);
--primary-foreground: oklch(0.186 0.061 338.024);
--secondary: oklch(0.841 0.165 149.303);
--secondary-foreground: oklch(0.228 0.055 148.35);
--accent: oklch(0.841 0.165 149.303);
--accent-foreground: oklch(0.228 0.055 148.35);
--destructive: oklch(0.525 0.178 36.125);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.719 0.179 336.958);
--chart-1: oklch(0.719 0.179 336.958);
--chart-2: oklch(0.841 0.165 149.303);
--chart-3: oklch(0.841 0.165 149.303);
--chart-4: oklch(0.853 0.151 149.789);
--chart-5: oklch(0.72 0.186 337.099);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.026 334.315);
--foreground: oklch(0.984 0.003 333.29);
--muted: oklch(0.281 0.025 151.649);
--muted-foreground: oklch(0.71 0.006 153.103);
--popover: oklch(0.123 0.026 334.315);
--popover-foreground: oklch(0.984 0.003 333.29);
--card: oklch(0.123 0.026 334.315);
--card-foreground: oklch(0.984 0.003 333.29);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.719 0.179 336.958);
--primary-foreground: oklch(0.186 0.061 338.024);
--secondary: oklch(0.841 0.165 149.303);
--secondary-foreground: oklch(0.228 0.055 148.35);
--accent: oklch(0.841 0.165 149.303);
--accent-foreground: oklch(0.228 0.055 148.35);
--destructive: oklch(0.625 0.214 35.663);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.719 0.179 336.958);
--chart-1: oklch(0.719 0.179 336.958);
--chart-2: oklch(0.841 0.165 149.303);
--chart-3: oklch(0.841 0.165 149.303);
--chart-4: oklch(0.853 0.151 149.789);
--chart-5: oklch(0.72 0.186 337.099);
}