Blight for shadcn/ui

Blight is a shadcn/ui theme built around a teal primary color (#53b2b2) with blue accents (#5382b2). The light mode uses a neutral background (#f7fdfd). Dark mode keeps the teal primary (#53b2b2) on a neutral background (#030707).

Color palette

TokenLightDark
Background
#f7fdfdmintcream
#030707black
Foreground
#000000black
#fbfdfdwhite
Card
#f3fcfcmintcream
#050a0ablack
Card foreground
#000000black
#ffffffwhite
Popover
#f7fdfdmintcream
#030707black
Popover foreground
#000000black
#fbfdfdwhite
Primary
#53b2b2cadetblue
#53b2b2cadetblue
Primary foreground
#112727black
#112727black
Secondary
#53b282mediumseagreen
#53b282mediumseagreen
Secondary foreground
#11271cblack
#11271cblack
Muted
#cce6d9gainsboro
#193326darkslategray
Muted foreground
#444b47darkslategray
#b4bbb8silver
Accent
#5382b2steelblue
#5382b2steelblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a00d0ddarkred
#ed1d1dcrimson
Destructive foreground
#fde3e3mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#53b2b2cadetblue
#53b2b2cadetblue

Contrast

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

Light mode
Text on background20.40:1AAA
Text on card20.10:1AAA
Primary button6.20:1AA
Secondary button6.02:1AA
Muted text6.76:1AA
Accent4.03:1AA Large
Destructive6.73:1AA
Dark mode
Text on background19.83:1AAA
Text on card19.89:1AAA
Primary button6.20:1AA
Secondary button6.02:1AA
Muted text6.93:1AA
Accent4.03:1AA Large
Destructive4.39:1AA Large

CSS variables

Paste this into your globals.css to use Blight in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.006 197.056);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.901 0.033 164.158);
  --muted-foreground: oklch(0.405 0.011 164.413);
  --popover: oklch(0.989 0.006 197.056);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.984 0.009 197.004);
  --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.705 0.089 195.316);
  --primary-foreground: oklch(0.254 0.027 195.567);
  --secondary: oklch(0.691 0.115 159.399);
  --secondary-foreground: oklch(0.25 0.034 160.711);
  --accent: oklch(0.593 0.09 249.556);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.449 0.177 28.357);
  --destructive-foreground: oklch(0.936 0.029 17.675);
  --ring: oklch(0.705 0.089 195.316);
  --chart-1: oklch(0.705 0.089 195.316);
  --chart-2: oklch(0.691 0.115 159.399);
  --chart-3: oklch(0.593 0.09 249.556);
  --chart-4: oklch(0.709 0.109 160.012);
  --chart-5: oklch(0.714 0.094 195.246);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.009 196.045);
  --foreground: oklch(0.994 0.002 197.123);
  --muted: oklch(0.297 0.04 160.79);
  --muted-foreground: oklch(0.786 0.009 164.828);
  --popover: oklch(0.122 0.009 196.045);
  --popover-foreground: oklch(0.994 0.002 197.123);
  --card: oklch(0.14 0.01 196.045);
  --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.705 0.089 195.316);
  --primary-foreground: oklch(0.254 0.027 195.567);
  --secondary: oklch(0.691 0.115 159.399);
  --secondary-foreground: oklch(0.25 0.034 160.711);
  --accent: oklch(0.593 0.09 249.556);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.602 0.235 28.159);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.705 0.089 195.316);
  --chart-1: oklch(0.705 0.089 195.316);
  --chart-2: oklch(0.691 0.115 159.399);
  --chart-3: oklch(0.593 0.09 249.556);
  --chart-4: oklch(0.709 0.109 160.012);
  --chart-5: oklch(0.714 0.094 195.246);
}