Glum is a shadcn/ui theme built around a purple primary color (#d2a7c9) with near-white accents (#e8e8e8). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#d2a7c9) on a purple-tinted background (#0d070c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0d070cblack |
| Foreground | #000000black | #ffffffwhite |
| Card | #ffffffwhite | #0d070cblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #0d070cblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #d2a7c9plum | #d2a7c9plum |
| Primary foreground | #2f182adarkslategray | #2f182adarkslategray |
| Secondary | #e8e8e8lavender | #181116black |
| Secondary foreground | #504e4fdarkslategray | #bba0b5darkgray |
| Muted | #ebdbe7gainsboro | #241420black |
| Muted foreground | #555355dimgray | #acaaabdarkgray |
| Accent | #e8e8e8lavender | #181116black |
| Accent foreground | #504e4fdarkslategray | #bba0b5darkgray |
| Destructive | #aa100efirebrick | #de1512crimson |
| Destructive foreground | #fdececlinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d2a7c9plum | #d2a7c9plum |
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 | 7.89:1 | AAA |
| Secondary button | 6.73:1 | AA |
| Muted text | 5.75:1 | AA |
| Accent | 6.73:1 | AA |
| Destructive | 6.59:1 | AA |
| Text on background | 19.92:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 7.89:1 | AAA |
| Secondary button | 7.79:1 | AAA |
| Muted text | 7.58:1 | AAA |
| Accent | 7.79:1 | AAA |
| Destructive | 4.98:1 | AA |
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.908 0.023 333.002);
--muted-foreground: oklch(0.445 0.003 332.722);
--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.778 0.066 333.882);
--primary-foreground: oklch(0.249 0.047 335.31);
--secondary: oklch(0.931 0.001 332.628);
--secondary-foreground: oklch(0.427 0.003 332.721);
--accent: oklch(0.931 0.001 332.628);
--accent-foreground: oklch(0.427 0.003 332.721);
--destructive: oklch(0.469 0.184 28.667);
--destructive-foreground: oklch(0.958 0.019 18.663);
--ring: oklch(0.778 0.066 333.882);
--chart-1: oklch(0.778 0.066 333.882);
--chart-2: oklch(0.931 0.001 332.628);
--chart-3: oklch(0.931 0.001 332.628);
--chart-4: oklch(0.954 0 332.624);
--chart-5: oklch(0.777 0.073 333.998);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.015 333.83);
--foreground: oklch(1 0 180);
--muted: oklch(0.219 0.032 334.756);
--muted-foreground: oklch(0.74 0.003 332.673);
--popover: oklch(0.141 0.015 333.83);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.141 0.015 333.83);
--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.778 0.066 333.882);
--primary-foreground: oklch(0.249 0.047 335.31);
--secondary: oklch(0.189 0.015 333.836);
--secondary-foreground: oklch(0.735 0.044 333.517);
--accent: oklch(0.189 0.015 333.836);
--accent-foreground: oklch(0.735 0.044 333.517);
--destructive: oklch(0.571 0.226 28.815);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.778 0.066 333.882);
--chart-1: oklch(0.778 0.066 333.882);
--chart-2: oklch(0.189 0.015 333.836);
--chart-3: oklch(0.189 0.015 333.836);
--chart-4: oklch(0.221 0.02 333.985);
--chart-5: oklch(0.777 0.073 333.998);
}