Blind for shadcn/ui

Blind is a shadcn/ui theme built around a yellow primary color (#938b1a) with indigo accents (#1a2293). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#938b1a) on a neutral background (#070703).

Color palette

TokenLightDark
Background
#ffffffwhite
#070703black
Foreground
#121102black
#faf9f5whitesmoke
Card
#ffffffwhite
#070703black
Card foreground
#121102black
#faf9f5whitesmoke
Popover
#ffffffwhite
#070703black
Popover foreground
#121102black
#faf9f5whitesmoke
Primary
#938b1aolive
#938b1aolive
Primary foreground
#000000black
#000000black
Secondary
#1a2293midnightblue
#1a2293midnightblue
Secondary foreground
#e5e6falavender
#e5e6falavender
Muted
#d8d9e9gainsboro
#161727black
Muted foreground
#4d4d4ddarkslategray
#b3b3b3darkgray
Accent
#1a2293midnightblue
#1a2293midnightblue
Accent foreground
#e5e6falavender
#e5e6falavender
Destructive
#c24614chocolate
#d44c16chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#938b1aolive
#938b1aolive

Contrast

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

Light mode
Text on background18.97:1AAA
Text on card18.97:1AAA
Primary button5.97:1AA
Secondary button10.03:1AAA
Muted text6.03:1AA
Accent10.03:1AAA
Destructive5.04:1AA
Dark mode
Text on background19.19:1AAA
Text on card19.19:1AAA
Primary button5.97:1AA
Secondary button10.03:1AAA
Muted text8.45:1AAA
Accent10.03:1AAA
Destructive4.32:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.174 0.031 105.959);
  --muted: oklch(0.888 0.023 282.664);
  --muted-foreground: oklch(0.418 0 173.29);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.174 0.031 105.959);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.174 0.031 105.959);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.626 0.125 105.091);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.343 0.18 269.394);
  --secondary-foreground: oklch(0.931 0.027 282.601);
  --accent: oklch(0.343 0.18 269.394);
  --accent-foreground: oklch(0.931 0.027 282.601);
  --destructive: oklch(0.559 0.169 38.877);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.626 0.125 105.091);
  --chart-1: oklch(0.626 0.125 105.091);
  --chart-2: oklch(0.343 0.18 269.394);
  --chart-3: oklch(0.343 0.18 269.394);
  --chart-4: oklch(0.363 0.192 269.206);
  --chart-5: oklch(0.633 0.128 105.044);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.01 104.894);
  --foreground: oklch(0.982 0.006 103.206);
  --muted: oklch(0.212 0.033 280.08);
  --muted-foreground: oklch(0.765 0 172.405);
  --popover: oklch(0.124 0.01 104.894);
  --popover-foreground: oklch(0.982 0.006 103.206);
  --card: oklch(0.124 0.01 104.894);
  --card-foreground: oklch(0.982 0.006 103.206);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.626 0.125 105.091);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.343 0.18 269.394);
  --secondary-foreground: oklch(0.931 0.027 282.601);
  --accent: oklch(0.343 0.18 269.394);
  --accent-foreground: oklch(0.931 0.027 282.601);
  --destructive: oklch(0.597 0.182 38.77);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.626 0.125 105.091);
  --chart-1: oklch(0.626 0.125 105.091);
  --chart-2: oklch(0.343 0.18 269.394);
  --chart-3: oklch(0.343 0.18 269.394);
  --chart-4: oklch(0.363 0.192 269.206);
  --chart-5: oklch(0.633 0.128 105.044);
}