Crazy for shadcn/ui

Crazy is a shadcn/ui theme built around a near-black primary color (#000000) with muted light red accents (#d9c9c9). The light mode uses a neutral background (#fdfbfb). Dark mode keeps the near-black primary (#000000) on a neutral background (#030202).

Color palette

TokenLightDark
Background
#fdfbfbsnow
#030202black
Foreground
#100505black
#ffffffwhite
Card
#fdfbfbsnow
#030202black
Card foreground
#100505black
#ffffffwhite
Popover
#fdfbfbsnow
#030202black
Popover foreground
#100505black
#ffffffwhite
Primary
#000000black
#000000black
Primary foreground
#999999darkgray
#999999darkgray
Secondary
#d9c9c9lightgrey
#272626darkslategray
Secondary foreground
#422e2edarkslategray
#c0bfbfsilver
Muted
#ead7d7gainsboro
#281515black
Muted foreground
#473838darkslategray
#c7b8b8silver
Accent
#d9c9c9lightgrey
#272626darkslategray
Accent foreground
#422e2edarkslategray
#c0bfbfsilver
Destructive
#b0250cfirebrick
#f04a2dtomato
Destructive foreground
#fef3f1seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#000000black
#000000black

Contrast

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

Light mode
Text on background19.54:1AAA
Text on card19.54:1AAA
Primary button7.37:1AAA
Secondary button7.90:1AAA
Muted text8.04:1AAA
Accent7.90:1AAA
Destructive6.17:1AA
Dark mode
Text on background20.74:1AAA
Text on card20.74:1AAA
Primary button7.37:1AAA
Secondary button8.24:1AAA
Muted text9.06:1AAA
Accent8.24:1AAA
Destructive3.65:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 17.193);
  --foreground: oklch(0.132 0.023 20.699);
  --muted: oklch(0.895 0.02 17.539);
  --muted-foreground: oklch(0.358 0.022 18.221);
  --popover: oklch(0.991 0.002 17.193);
  --popover-foreground: oklch(0.132 0.023 20.699);
  --card: oklch(0.991 0.002 17.193);
  --card-foreground: oklch(0.132 0.023 20.699);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0 0 0);
  --primary-foreground: oklch(0.683 0 180);
  --secondary: oklch(0.849 0.019 17.524);
  --secondary-foreground: oklch(0.325 0.03 18.817);
  --accent: oklch(0.849 0.019 17.524);
  --accent-foreground: oklch(0.325 0.03 18.817);
  --destructive: oklch(0.494 0.179 32.028);
  --destructive-foreground: oklch(0.972 0.013 29.515);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.849 0.019 17.524);
  --chart-3: oklch(0.849 0.019 17.524);
  --chart-4: oklch(0.874 0.015 17.45);
  --chart-5: oklch(0 0 0);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.009 18.982);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.223 0.03 19.73);
  --muted-foreground: oklch(0.794 0.017 17.526);
  --popover: oklch(0.086 0.009 18.982);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.086 0.009 18.982);
  --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 0 0);
  --primary-foreground: oklch(0.683 0 180);
  --secondary: oklch(0.269 0.001 17.227);
  --secondary-foreground: oklch(0.804 0.001 17.187);
  --accent: oklch(0.269 0.001 17.227);
  --accent-foreground: oklch(0.804 0.001 17.187);
  --destructive: oklch(0.643 0.207 32.383);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.269 0.001 17.227);
  --chart-3: oklch(0.269 0.001 17.227);
  --chart-4: oklch(0.3 0.001 17.231);
  --chart-5: oklch(0 0 0);
}