Stable for shadcn/ui

Stable is a shadcn/ui theme built around a light cyan primary color (#9ad3ea) with light blue accents (#9aabea). The light mode uses a neutral background (#f8fbfb). Dark mode keeps the light cyan primary (#9ad3ea) on a cyan-tinted background (#070c0e).

Color palette

TokenLightDark
Background
#f8fbfbghostwhite
#070c0eblack
Foreground
#000000black
#ffffffwhite
Card
#f8fbfbghostwhite
#070c0eblack
Card foreground
#000000black
#ffffffwhite
Popover
#f8fbfbghostwhite
#070c0eblack
Popover foreground
#000000black
#ffffffwhite
Primary
#9ad3easkyblue
#9ad3easkyblue
Primary foreground
#0e3443darkslategray
#0e3443darkslategray
Secondary
#9aead8powderblue
#9aead8powderblue
Secondary foreground
#0e4338darkslategray
#0e4338darkslategray
Muted
#d1e6e1gainsboro
#192e2adarkslategray
Muted foreground
#4b635edimgray
#9cb4afdarkgray
Accent
#9aabealightsteelblue
#9aabealightsteelblue
Accent foreground
#0e1a43midnightblue
#0e1a43midnightblue
Destructive
#c13215firebrick
#cf3617firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9ad3easkyblue
#9ad3easkyblue

Contrast

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

Light mode
Text on background20.14:1AAA
Text on card20.14:1AAA
Primary button8.09:1AAA
Secondary button8.03:1AAA
Muted text4.96:1AA
Accent7.53:1AAA
Destructive5.63:1AA
Dark mode
Text on background19.69:1AAA
Text on card19.69:1AAA
Primary button8.09:1AAA
Secondary button8.03:1AAA
Muted text6.49:1AA
Accent7.53:1AAA
Destructive5.03:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.003 223.157);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.908 0.024 181.331);
  --muted-foreground: oklch(0.478 0.03 180.177);
  --popover: oklch(0.985 0.003 223.157);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.985 0.003 223.157);
  --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.836 0.066 224.39);
  --primary-foreground: oklch(0.307 0.05 228.138);
  --secondary: oklch(0.879 0.082 179.117);
  --secondary-foreground: oklch(0.347 0.058 174.962);
  --accent: oklch(0.752 0.092 272.123);
  --accent-foreground: oklch(0.235 0.08 268.021);
  --destructive: oklch(0.536 0.184 32.904);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.836 0.066 224.39);
  --chart-1: oklch(0.836 0.066 224.39);
  --chart-2: oklch(0.879 0.082 179.117);
  --chart-3: oklch(0.752 0.092 272.123);
  --chart-4: oklch(0.893 0.073 179.56);
  --chart-5: oklch(0.837 0.069 224.471);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.148 0.01 222.373);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.283 0.029 178.764);
  --muted-foreground: oklch(0.751 0.028 181.007);
  --popover: oklch(0.148 0.01 222.373);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.148 0.01 222.373);
  --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.836 0.066 224.39);
  --primary-foreground: oklch(0.307 0.05 228.138);
  --secondary: oklch(0.879 0.082 179.117);
  --secondary-foreground: oklch(0.347 0.058 174.962);
  --accent: oklch(0.752 0.092 272.123);
  --accent-foreground: oklch(0.235 0.08 268.021);
  --destructive: oklch(0.564 0.194 32.877);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.836 0.066 224.39);
  --chart-1: oklch(0.836 0.066 224.39);
  --chart-2: oklch(0.879 0.082 179.117);
  --chart-3: oklch(0.752 0.092 272.123);
  --chart-4: oklch(0.893 0.073 179.56);
  --chart-5: oklch(0.837 0.069 224.471);
}