Glum is a shadcn/ui theme built around a light orange primary color (#f0d1bc) with light violet accents (#d1bcf0). The light mode uses a neutral background (#ffffff). Dark mode keeps the light orange primary (#f0d1bc) on a neutral background (#040201).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040201black |
| Foreground | #120903black | #ffffffwhite |
| Card | #ffffffwhite | #040201black |
| Card foreground | #120903black | #ffffffwhite |
| Popover | #ffffffwhite | #040201black |
| Popover foreground | #120903black | #ffffffwhite |
| Primary | #f0d1bcwheat | #f0d1bcwheat |
| Primary foreground | #643517saddlebrown | #643517saddlebrown |
| Secondary | #bcf0d1powderblue | #bcf0d1powderblue |
| Secondary foreground | #041109black | #041109black |
| Muted | #e9ecealavender | #131614black |
| Muted foreground | #505853darkslategray | #a7afaadarkgray |
| Accent | #d1bcf0thistle | #d1bcf0thistle |
| Accent foreground | #351764midnightblue | #351764midnightblue |
| Destructive | #c24314firebrick | #e7531dchocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f0d1bcwheat | #f0d1bcwheat |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.69:1 | AAA |
| Text on card | 19.69:1 | AAA |
| Primary button | 7.05:1 | AAA |
| Secondary button | 15.17:1 | AAA |
| Muted text | 6.17:1 | AA |
| Accent | 8.37:1 | AAA |
| Destructive | 5.12:1 | AA |
| Text on background | 20.68:1 | AAA |
| Text on card | 20.68:1 | AAA |
| Primary button | 7.05:1 | AAA |
| Secondary button | 15.17:1 | AAA |
| Muted text | 8.12:1 | AAA |
| Accent | 8.37:1 | AAA |
| Destructive | 3.71: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.149 0.023 63.401);
--muted: oklch(0.941 0.004 160.141);
--muted-foreground: oklch(0.453 0.013 159.54);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.149 0.023 63.401);
--card: oklch(1 0 180);
--card-foreground: oklch(0.149 0.023 63.401);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.881 0.044 55.738);
--primary-foreground: oklch(0.383 0.079 51.707);
--secondary: oklch(0.911 0.067 158.407);
--secondary-foreground: oklch(0.16 0.026 158.276);
--accent: oklch(0.831 0.074 303.061);
--accent-foreground: oklch(0.299 0.127 296.033);
--destructive: oklch(0.555 0.171 37.853);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.881 0.044 55.738);
--chart-1: oklch(0.881 0.044 55.738);
--chart-2: oklch(0.911 0.067 158.407);
--chart-3: oklch(0.831 0.074 303.061);
--chart-4: oklch(0.927 0.055 158.799);
--chart-5: oklch(0.882 0.047 55.704);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.092 0.009 63.848);
--foreground: oklch(1 0 180);
--muted: oklch(0.196 0.006 159.563);
--muted-foreground: oklch(0.746 0.012 159.866);
--popover: oklch(0.092 0.009 63.848);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0.009 63.848);
--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.881 0.044 55.738);
--primary-foreground: oklch(0.383 0.079 51.707);
--secondary: oklch(0.911 0.067 158.407);
--secondary-foreground: oklch(0.16 0.026 158.276);
--accent: oklch(0.831 0.074 303.061);
--accent-foreground: oklch(0.299 0.127 296.033);
--destructive: oklch(0.636 0.194 38.034);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.881 0.044 55.738);
--chart-1: oklch(0.881 0.044 55.738);
--chart-2: oklch(0.911 0.067 158.407);
--chart-3: oklch(0.831 0.074 303.061);
--chart-4: oklch(0.927 0.055 158.799);
--chart-5: oklch(0.882 0.047 55.704);
}