Gloomy is a shadcn/ui theme built around a teal primary color (#21aba9) with blue accents (#2168ab). The light mode uses a neutral background (#fbfefe). Dark mode keeps the teal primary (#21aba9) on a teal-tinted background (#040b0b).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefewhite | #040b0bblack |
| Foreground | #010404black | #f9fbfbghostwhite |
| Card | #f7fdfdmintcream | #060f0fblack |
| Card foreground | #000000black | #fcfdfdwhite |
| Popover | #f7fdfdmintcream | #060f0fblack |
| Popover foreground | #000000black | #fcfdfdwhite |
| Primary | #21aba9lightseagreen | #21aba9lightseagreen |
| Primary foreground | #000000black | #000000black |
| Secondary | #21ab64mediumseagreen | #21ab64mediumseagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dcefe5gainsboro | #102319black |
| Muted foreground | #5a6c63dimgray | #93a59bdarkseagreen |
| Accent | #2168absteelblue | #2168absteelblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #720f04maroon | #e41d07red |
| Destructive foreground | #fcb3ablightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #21aba9lightseagreen | #21aba9lightseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.27:1 | AAA |
| Text on card | 20.38:1 | AAA |
| Primary button | 7.48:1 | AAA |
| Secondary button | 2.95:1 | Fail |
| Muted text | 4.65:1 | AA |
| Accent | 5.75:1 | AA |
| Destructive | 6.84:1 | AA |
| Text on background | 19.10:1 | AAA |
| Text on card | 19.07:1 | AAA |
| Primary button | 7.48:1 | AAA |
| Secondary button | 2.95:1 | Fail |
| Muted text | 6.34:1 | AA |
| Accent | 5.75:1 | AA |
| Destructive | 4.70:1 | AA |
Paste this into your globals.css to use Gloomy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 195.921);
--foreground: oklch(0.1 0.012 194.373);
--muted: oklch(0.935 0.024 163.615);
--muted-foreground: oklch(0.515 0.026 162.918);
--popover: oklch(0.989 0.006 195.867);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.989 0.006 195.867);
--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.674 0.109 193.085);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.655 0.155 154.328);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.51 0.127 250.783);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.355 0.134 30.886);
--destructive-foreground: oklch(0.834 0.087 26.177);
--ring: oklch(0.674 0.109 193.085);
--chart-1: oklch(0.674 0.109 193.085);
--chart-2: oklch(0.655 0.155 154.328);
--chart-3: oklch(0.51 0.127 250.783);
--chart-4: oklch(0.691 0.164 154.253);
--chart-5: oklch(0.683 0.112 193.033);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.013 194.712);
--foreground: oklch(0.986 0.001 195.949);
--muted: oklch(0.236 0.031 160.146);
--muted-foreground: oklch(0.704 0.024 163.372);
--popover: oklch(0.157 0.014 194.53);
--popover-foreground: oklch(0.993 0.001 195.962);
--card: oklch(0.157 0.014 194.53);
--card-foreground: oklch(0.993 0.001 195.962);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.674 0.109 193.085);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.655 0.155 154.328);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.51 0.127 250.783);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.585 0.228 30.35);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.674 0.109 193.085);
--chart-1: oklch(0.674 0.109 193.085);
--chart-2: oklch(0.655 0.155 154.328);
--chart-3: oklch(0.51 0.127 250.783);
--chart-4: oklch(0.691 0.164 154.253);
--chart-5: oklch(0.683 0.112 193.033);
}