Stable for shadcn/ui

Stable is a shadcn/ui theme built around a vivid green primary color (#89f0aa) with vivid purple accents (#f089d0). The light mode uses a neutral background (#fbfefc). Dark mode keeps the vivid green primary (#89f0aa) on a green-tinted background (#050f08).

Color palette

TokenLightDark
Background
#fbfefcwhite
#050f08black
Foreground
#010402black
#fcfdfcwhite
Card
#fbfefcwhite
#050f08black
Card foreground
#010402black
#fcfdfcwhite
Popover
#fbfefcwhite
#050f08black
Popover foreground
#010402black
#fcfdfcwhite
Primary
#89f0aapalegreen
#89f0aapalegreen
Primary foreground
#084019darkgreen
#084019darkgreen
Secondary
#f089d0violet
#f089d0violet
Secondary foreground
#40082emidnightblue
#40082emidnightblue
Muted
#e9d8e4gainsboro
#271622black
Muted foreground
#5e4556dimgray
#baa1b2darkgray
Accent
#f089d0violet
#f089d0violet
Accent foreground
#40082emidnightblue
#40082emidnightblue
Destructive
#ab1a12firebrick
#d01f16firebrick
Destructive foreground
#fef2f1seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#89f0aapalegreen
#89f0aapalegreen

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 button8.62:1AAA
Secondary button7.12:1AAA
Muted text6.24:1AA
Accent7.12:1AAA
Destructive6.66:1AA
Dark mode
Text on background19.06:1AAA
Text on card19.06:1AAA
Primary button8.62:1AAA
Secondary button7.12:1AAA
Muted text7.21:1AAA
Accent7.12:1AAA
Destructive5.41:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 156.479);
  --foreground: oklch(0.099 0.018 156.044);
  --muted: oklch(0.899 0.025 337.099);
  --muted-foreground: oklch(0.424 0.042 338.391);
  --popover: oklch(0.994 0.004 156.479);
  --popover-foreground: oklch(0.099 0.018 156.044);
  --card: oklch(0.994 0.004 156.479);
  --card-foreground: oklch(0.099 0.018 156.044);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.875 0.139 152.836);
  --primary-foreground: oklch(0.325 0.085 148.868);
  --secondary: oklch(0.762 0.151 340.135);
  --secondary-foreground: oklch(0.256 0.095 344.082);
  --accent: oklch(0.762 0.151 340.135);
  --accent-foreground: oklch(0.256 0.095 344.082);
  --destructive: oklch(0.476 0.18 29.141);
  --destructive-foreground: oklch(0.969 0.013 21.058);
  --ring: oklch(0.875 0.139 152.836);
  --chart-1: oklch(0.875 0.139 152.836);
  --chart-2: oklch(0.762 0.151 340.135);
  --chart-3: oklch(0.762 0.151 340.135);
  --chart-4: oklch(0.787 0.134 339.626);
  --chart-5: oklch(0.879 0.143 152.696);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.156 0.022 155.111);
  --foreground: oklch(0.993 0.002 156.511);
  --muted: oklch(0.228 0.035 339.373);
  --muted-foreground: oklch(0.736 0.037 337.502);
  --popover: oklch(0.156 0.022 155.111);
  --popover-foreground: oklch(0.993 0.002 156.511);
  --card: oklch(0.156 0.022 155.111);
  --card-foreground: oklch(0.993 0.002 156.511);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.875 0.139 152.836);
  --primary-foreground: oklch(0.325 0.085 148.868);
  --secondary: oklch(0.762 0.151 340.135);
  --secondary-foreground: oklch(0.256 0.095 344.082);
  --accent: oklch(0.762 0.151 340.135);
  --accent-foreground: oklch(0.256 0.095 344.082);
  --destructive: oklch(0.549 0.21 29.226);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.875 0.139 152.836);
  --chart-1: oklch(0.875 0.139 152.836);
  --chart-2: oklch(0.762 0.151 340.135);
  --chart-3: oklch(0.762 0.151 340.135);
  --chart-4: oklch(0.787 0.134 339.626);
  --chart-5: oklch(0.879 0.143 152.696);
}