Gloomy for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.27:1AAA
Text on card20.38:1AAA
Primary button7.48:1AAA
Secondary button2.95:1Fail
Muted text4.65:1AA
Accent5.75:1AA
Destructive6.84:1AA
Dark mode
Text on background19.10:1AAA
Text on card19.07:1AAA
Primary button7.48:1AAA
Secondary button2.95:1Fail
Muted text6.34:1AA
Accent5.75:1AA
Destructive4.70:1AA

CSS variables

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);
}