Crazy for shadcn/ui

Crazy is a shadcn/ui theme built around a muted light green primary color (#c6d5c3) with muted light red accents (#d5c3c6). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#c6d5c3) on a green-tinted background (#070f05).

Color palette

TokenLightDark
Background
#ffffffwhite
#070f05black
Foreground
#030802black
#ffffffwhite
Card
#ffffffwhite
#070f05black
Card foreground
#030802black
#ffffffwhite
Popover
#ffffffwhite
#070f05black
Popover foreground
#030802black
#ffffffwhite
Primary
#c6d5c3lightgrey
#c6d5c3lightgrey
Primary foreground
#2d3c2adarkslategray
#2d3c2adarkslategray
Secondary
#c3c6d5lightgrey
#c3c6d5lightgrey
Secondary foreground
#2a2d3cdarkslategray
#2a2d3cdarkslategray
Muted
#ecedf4lavender
#0b0d13black
Muted foreground
#3f4046darkslategray
#b9bbc0silver
Accent
#d5c3c6thistle
#d5c3c6thistle
Accent foreground
#3c2a2ddarkslategray
#3c2a2ddarkslategray
Destructive
#9d2007firebrick
#f64623orangered
Destructive foreground
#fdded8mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c6d5c3lightgrey
#c6d5c3lightgrey

Contrast

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

Light mode
Text on background20.20:1AAA
Text on card20.20:1AAA
Primary button7.66:1AAA
Secondary button8.05:1AAA
Muted text8.85:1AAA
Accent7.97:1AAA
Destructive6.31:1AA
Dark mode
Text on background19.44:1AAA
Text on card19.44:1AAA
Primary button7.66:1AAA
Secondary button8.05:1AAA
Muted text10.11:1AAA
Accent7.97:1AAA
Destructive3.61:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.125 0.026 137.42);
  --muted: oklch(0.947 0.009 274.917);
  --muted-foreground: oklch(0.373 0.009 274.721);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.125 0.026 137.42);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.125 0.026 137.42);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.857 0.03 139.436);
  --primary-foreground: oklch(0.338 0.037 139.441);
  --secondary: oklch(0.83 0.021 274.714);
  --secondary-foreground: oklch(0.302 0.027 273.748);
  --accent: oklch(0.833 0.021 3.866);
  --accent-foreground: oklch(0.307 0.028 5.583);
  --destructive: oklch(0.453 0.164 32.495);
  --destructive-foreground: oklch(0.925 0.036 31.165);
  --ring: oklch(0.857 0.03 139.436);
  --chart-1: oklch(0.857 0.03 139.436);
  --chart-2: oklch(0.83 0.021 274.714);
  --chart-3: oklch(0.833 0.021 3.866);
  --chart-4: oklch(0.856 0.018 274.776);
  --chart-5: oklch(0.859 0.034 139.435);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.156 0.025 138.402);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.16 0.014 273.751);
  --muted-foreground: oklch(0.792 0.008 274.916);
  --popover: oklch(0.156 0.025 138.402);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.156 0.025 138.402);
  --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.857 0.03 139.436);
  --primary-foreground: oklch(0.338 0.037 139.441);
  --secondary: oklch(0.83 0.021 274.714);
  --secondary-foreground: oklch(0.302 0.027 273.748);
  --accent: oklch(0.833 0.021 3.866);
  --accent-foreground: oklch(0.307 0.028 5.583);
  --destructive: oklch(0.647 0.217 33.004);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.857 0.03 139.436);
  --chart-1: oklch(0.857 0.03 139.436);
  --chart-2: oklch(0.83 0.021 274.714);
  --chart-3: oklch(0.833 0.021 3.866);
  --chart-4: oklch(0.856 0.018 274.776);
  --chart-5: oklch(0.859 0.034 139.435);
}