Crisis for shadcn/ui

Crisis is a shadcn/ui theme built around a green primary color (#3ee069) with muted light green accents (#c7d6cb). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#3ee069) on a neutral background (#030704).

Color palette

TokenLightDark
Background
#ffffffwhite
#030704black
Foreground
#010903black
#f9fbf9mintcream
Card
#fcfcfcsnow
#040b06black
Card foreground
#010502black
#fcfdfcwhite
Popover
#ffffffwhite
#030704black
Popover foreground
#010903black
#f9fbf9mintcream
Primary
#3ee069mediumseagreen
#3ee069mediumseagreen
Primary foreground
#0b461bdarkgreen
#0b461bdarkgreen
Secondary
#c7d6cblightgrey
#151916black
Secondary foreground
#2e3e32darkslategray
#a8b8acdarkgray
Muted
#cbe7d2lightgrey
#183420darkslategray
Muted foreground
#556d5bdimgray
#92aa99darkseagreen
Accent
#c7d6cblightgrey
#151916black
Accent foreground
#2e3e32darkslategray
#a8b8acdarkgray
Destructive
#c63901firebrick
#fe5716orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3ee069mediumseagreen
#3ee069mediumseagreen

Contrast

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

Light mode
Text on background20.15:1AAA
Text on card20.06:1AAA
Primary button6.30:1AA
Secondary button7.50:1AAA
Muted text4.26:1AA Large
Accent7.50:1AAA
Destructive5.27:1AA
Dark mode
Text on background19.46:1AAA
Text on card19.50:1AAA
Primary button6.30:1AA
Secondary button8.54:1AAA
Muted text5.41:1AA
Accent8.54:1AAA
Destructive6.59:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.126 0.027 153.688);
  --muted: oklch(0.901 0.041 153.697);
  --muted-foreground: oklch(0.509 0.039 153.106);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.126 0.027 153.688);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.1 0.021 153.688);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.798 0.208 147.955);
  --primary-foreground: oklch(0.347 0.092 147.734);
  --secondary: oklch(0.861 0.021 154.082);
  --secondary-foreground: oklch(0.344 0.029 152.915);
  --accent: oklch(0.861 0.021 154.082);
  --accent-foreground: oklch(0.344 0.029 152.915);
  --destructive: oklch(0.551 0.185 36.652);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.798 0.208 147.955);
  --chart-1: oklch(0.798 0.208 147.955);
  --chart-2: oklch(0.861 0.021 154.082);
  --chart-3: oklch(0.861 0.021 154.082);
  --chart-4: oklch(0.884 0.018 154.165);
  --chart-5: oklch(0.806 0.214 147.726);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.015 154.054);
  --foreground: oklch(0.986 0.002 154.483);
  --muted: oklch(0.298 0.051 150.886);
  --muted-foreground: oklch(0.714 0.036 153.613);
  --popover: oklch(0.121 0.015 154.054);
  --popover-foreground: oklch(0.986 0.002 154.483);
  --card: oklch(0.139 0.018 154.009);
  --card-foreground: oklch(0.993 0.001 154.505);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.798 0.208 147.955);
  --primary-foreground: oklch(0.347 0.092 147.734);
  --secondary: oklch(0.208 0.01 153.687);
  --secondary-foreground: oklch(0.767 0.024 153.965);
  --accent: oklch(0.208 0.01 153.687);
  --accent-foreground: oklch(0.767 0.024 153.965);
  --destructive: oklch(0.677 0.213 38.129);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.798 0.208 147.955);
  --chart-1: oklch(0.798 0.208 147.955);
  --chart-2: oklch(0.208 0.01 153.687);
  --chart-3: oklch(0.208 0.01 153.687);
  --chart-4: oklch(0.243 0.012 153.599);
  --chart-5: oklch(0.806 0.214 147.726);
}