Glum is a shadcn/ui theme built around a muted pink primary color (#9a6a81) with neutral gray accents (#d1ccce). The light mode uses a neutral background (#fdf7fa). Dark mode keeps the muted pink primary (#9a6a81) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fasnow | #000000black |
| Foreground | #0e0207black | #fdfcfcsnow |
| Card | #fdf7fasnow | #000000black |
| Card foreground | #0e0207black | #fdfcfcsnow |
| Popover | #fdf7fasnow | #000000black |
| Popover foreground | #0e0207black | #fdfcfcsnow |
| Primary | #9a6a81gray | #9a6a81gray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d1cccelightgrey | #191517black |
| Secondary foreground | #393235darkslategray | #b6aab0darkgray |
| Muted | #ded3d9gainsboro | #2c2126darkslategray |
| Muted foreground | #5c5c5cdimgray | #a3a3a3darkgray |
| Accent | #d1cccelightgrey | #191517black |
| Accent foreground | #393235darkslategray | #b6aab0darkgray |
| Destructive | #6a290bsaddlebrown | #e75a18chocolate |
| Destructive foreground | #f7c7b1peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9a6a81gray | #9a6a81gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.25:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 4.40:1 | AA Large |
| Secondary button | 7.86:1 | AAA |
| Muted text | 4.60:1 | AA |
| Accent | 7.86:1 | AAA |
| Destructive | 7.09:1 | AAA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.50:1 | AAA |
| Primary button | 4.40:1 | AA Large |
| Secondary button | 8.06:1 | AAA |
| Muted text | 6.16:1 | AA |
| Accent | 8.06:1 | AAA |
| Destructive | 3.58:1 | AA Large |
Paste this into your globals.css to use Glum in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.007 346.218);
--foreground: oklch(0.117 0.035 346.425);
--muted: oklch(0.878 0.014 346.427);
--muted-foreground: oklch(0.474 0 198.435);
--popover: oklch(0.981 0.007 346.218);
--popover-foreground: oklch(0.117 0.035 346.425);
--card: oklch(0.981 0.007 346.218);
--card-foreground: oklch(0.117 0.035 346.425);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.582 0.068 348.926);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.85 0.007 346.25);
--secondary-foreground: oklch(0.326 0.011 346.856);
--accent: oklch(0.85 0.007 346.25);
--accent-foreground: oklch(0.326 0.011 346.856);
--destructive: oklch(0.371 0.101 42.12);
--destructive-foreground: oklch(0.865 0.063 46.17);
--ring: oklch(0.582 0.068 348.926);
--chart-1: oklch(0.582 0.068 348.926);
--chart-2: oklch(0.85 0.007 346.25);
--chart-3: oklch(0.85 0.007 346.25);
--chart-4: oklch(0.874 0.006 346.207);
--chart-5: oklch(0.579 0.079 349.389);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 346.044);
--muted: oklch(0.262 0.019 347.823);
--muted-foreground: oklch(0.716 0 165.964);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.001 346.044);
--card: oklch(0 0 0);
--card-foreground: oklch(0.992 0.001 346.044);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.582 0.068 348.926);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.201 0.007 346.893);
--secondary-foreground: oklch(0.749 0.017 346.604);
--accent: oklch(0.201 0.007 346.893);
--accent-foreground: oklch(0.749 0.017 346.604);
--destructive: oklch(0.643 0.188 40.868);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.582 0.068 348.926);
--chart-1: oklch(0.582 0.068 348.926);
--chart-2: oklch(0.201 0.007 346.893);
--chart-3: oklch(0.201 0.007 346.893);
--chart-4: oklch(0.234 0.009 346.984);
--chart-5: oklch(0.579 0.079 349.389);
}