Stable for shadcn/ui

Stable is a shadcn/ui theme built around a deep cyan primary color (#195570) with deep blue accents (#192970). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep cyan primary (#195570) on a cyan-tinted background (#05090a).

Color palette

TokenLightDark
Background
#ffffffwhite
#05090ablack
Foreground
#010709black
#fcfdfdwhite
Card
#ffffffwhite
#05090ablack
Card foreground
#010709black
#fcfdfdwhite
Popover
#ffffffwhite
#05090ablack
Popover foreground
#010709black
#fcfdfdwhite
Primary
#195570darkslategray
#195570darkslategray
Primary foreground
#c9e6f3paleturquoise
#c9e6f3paleturquoise
Secondary
#197060seagreen
#197060seagreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dceae8gainsboro
#152321black
Muted foreground
#506d67dimgray
#92afaadarkgray
Accent
#192970midnightblue
#192970midnightblue
Accent foreground
#c9d1f3lightblue
#c9d1f3lightblue
Destructive
#b33900firebrick
#f04c00orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#195570darkslategray
#195570darkslategray

Contrast

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

Light mode
Text on background20.27:1AAA
Text on card20.27:1AAA
Primary button6.26:1AA
Secondary button5.93:1AA
Muted text4.56:1AA
Accent8.68:1AAA
Destructive6.03:1AA
Dark mode
Text on background19.65:1AAA
Text on card19.65:1AAA
Primary button6.26:1AA
Secondary button5.93:1AA
Muted text6.88:1AA
Accent8.68:1AAA
Destructive3.66:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.118 0.017 219.12);
  --muted: oklch(0.926 0.016 183.848);
  --muted-foreground: oklch(0.509 0.034 182.387);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.118 0.017 219.12);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.118 0.017 219.12);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.424 0.075 232.786);
  --primary-foreground: oklch(0.907 0.035 227.401);
  --secondary: oklch(0.492 0.083 177.264);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.319 0.124 268.582);
  --accent-foreground: oklch(0.865 0.048 275.372);
  --destructive: oklch(0.517 0.167 38.696);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.424 0.075 232.786);
  --chart-1: oklch(0.424 0.075 232.786);
  --chart-2: oklch(0.492 0.083 177.264);
  --chart-3: oklch(0.319 0.124 268.582);
  --chart-4: oklch(0.53 0.09 177.153);
  --chart-5: oklch(0.427 0.077 233.227);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.008 223.117);
  --foreground: oklch(0.993 0.001 226.869);
  --muted: oklch(0.243 0.021 181.792);
  --muted-foreground: oklch(0.73 0.032 183.096);
  --popover: oklch(0.134 0.008 223.117);
  --popover-foreground: oklch(0.993 0.001 226.869);
  --card: oklch(0.134 0.008 223.117);
  --card-foreground: oklch(0.993 0.001 226.869);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.424 0.075 232.786);
  --primary-foreground: oklch(0.907 0.035 227.401);
  --secondary: oklch(0.492 0.083 177.264);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.319 0.124 268.582);
  --accent-foreground: oklch(0.865 0.048 275.372);
  --destructive: oklch(0.641 0.21 37.939);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.424 0.075 232.786);
  --chart-1: oklch(0.424 0.075 232.786);
  --chart-2: oklch(0.492 0.083 177.264);
  --chart-3: oklch(0.319 0.124 268.582);
  --chart-4: oklch(0.53 0.09 177.153);
  --chart-5: oklch(0.427 0.077 233.227);
}