Hairy for shadcn/ui

Hairy is a shadcn/ui theme built around a vivid light orange primary color (#fdf4e8) with vivid light blue accents (#e8f0fd). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the vivid light orange primary (#fdf4e8) on an orange-tinted background (#0c0804).

Color palette

TokenLightDark
Background
#fdfdfcwhite
#0c0804black
Foreground
#040301black
#fdfdfcwhite
Card
#fcfaf8snow
#100b05black
Card foreground
#000000black
#ffffffwhite
Popover
#fdfdfcwhite
#0c0804black
Popover foreground
#040301black
#fdfdfcwhite
Primary
#fdf4e8oldlace
#fdf4e8oldlace
Primary foreground
#462c06maroon
#462c06maroon
Secondary
#e8f0fdlavender
#e8f0fdlavender
Secondary foreground
#0e4da4teal
#0e4da4teal
Muted
#e9eaeclavender
#131416black
Muted foreground
#4a4e55darkslategray
#aaafb5darkgray
Accent
#e8f0fdlavender
#e8f0fdlavender
Accent foreground
#0e4da4teal
#0e4da4teal
Destructive
#e32802orangered
#fd3912orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fdf4e8oldlace
#fdf4e8oldlace

Contrast

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

Light mode
Text on background20.21:1AAA
Text on card20.18:1AAA
Primary button11.87:1AAA
Secondary button7.01:1AAA
Muted text6.95:1AA
Accent7.01:1AAA
Destructive4.59:1AA
Dark mode
Text on background19.59:1AAA
Text on card19.59:1AAA
Primary button11.87:1AAA
Secondary button7.01:1AAA
Muted text8.34:1AAA
Accent7.01:1AAA
Destructive3.65:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 76.645);
  --foreground: oklch(0.096 0.01 83.486);
  --muted: oklch(0.937 0.003 256.666);
  --muted-foreground: oklch(0.423 0.012 256.747);
  --popover: oklch(0.993 0.002 76.645);
  --popover-foreground: oklch(0.096 0.01 83.486);
  --card: oklch(0.986 0.003 76.638);
  --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.971 0.019 76.55);
  --primary-foreground: oklch(0.317 0.063 69.948);
  --secondary: oklch(0.953 0.019 256.724);
  --secondary-foreground: oklch(0.437 0.154 258.702);
  --accent: oklch(0.953 0.019 256.724);
  --accent-foreground: oklch(0.437 0.154 258.702);
  --destructive: oklch(0.59 0.223 31.849);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.971 0.019 76.55);
  --chart-1: oklch(0.971 0.019 76.55);
  --chart-2: oklch(0.953 0.019 256.724);
  --chart-3: oklch(0.953 0.019 256.724);
  --chart-4: oklch(0.981 0.008 256.683);
  --chart-5: oklch(0.971 0.02 76.546);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.014 82.793);
  --foreground: oklch(0.993 0.002 76.645);
  --muted: oklch(0.191 0.005 256.74);
  --muted-foreground: oklch(0.752 0.011 256.705);
  --popover: oklch(0.138 0.014 82.793);
  --popover-foreground: oklch(0.993 0.002 76.645);
  --card: oklch(0.153 0.016 79.511);
  --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.971 0.019 76.55);
  --primary-foreground: oklch(0.317 0.063 69.948);
  --secondary: oklch(0.953 0.019 256.724);
  --secondary-foreground: oklch(0.437 0.154 258.702);
  --accent: oklch(0.953 0.019 256.724);
  --accent-foreground: oklch(0.437 0.154 258.702);
  --destructive: oklch(0.647 0.234 32.423);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.971 0.019 76.55);
  --chart-1: oklch(0.971 0.019 76.55);
  --chart-2: oklch(0.953 0.019 256.724);
  --chart-3: oklch(0.953 0.019 256.724);
  --chart-4: oklch(0.981 0.008 256.683);
  --chart-5: oklch(0.971 0.02 76.546);
}