Blind for shadcn/ui

Blind is a shadcn/ui theme built around a near-black primary color (#090104) with near-black accents (#010409). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#090104) on a pink-tinted background (#0f0509).

Color palette

TokenLightDark
Background
#ffffffwhite
#0f0509black
Foreground
#14060bblack
#f8f7f7whitesmoke
Card
#ffffffwhite
#0f0509black
Card foreground
#14060bblack
#f8f7f7whitesmoke
Popover
#ffffffwhite
#0f0509black
Popover foreground
#14060bblack
#f8f7f7whitesmoke
Primary
#090104black
#090104black
Primary foreground
#f7abc6lightpink
#f7abc6lightpink
Secondary
#040901black
#040901black
Secondary foreground
#51c313limegreen
#51c313limegreen
Muted
#f1f7edhoneydew
#0b1208black
Muted foreground
#41483ddarkslategray
#bbc2b7silver
Accent
#010409black
#010409black
Accent foreground
#abc6f7lightblue
#abc6f7lightblue
Destructive
#d13010firebrick
#ee3a17orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#090104black
#090104black

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card19.79:1AAA
Primary button11.39:1AAA
Secondary button8.76:1AAA
Muted text8.69:1AAA
Accent11.89:1AAA
Destructive5.08:1AA
Dark mode
Text on background18.76:1AAA
Text on card18.76:1AAA
Primary button11.39:1AAA
Secondary button8.76:1AAA
Muted text10.44:1AAA
Accent11.89:1AAA
Destructive4.00: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.147 0.028 356.981);
  --muted: oklch(0.969 0.015 134.305);
  --muted-foreground: oklch(0.39 0.02 134.511);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.147 0.028 356.981);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.147 0.028 356.981);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.1 0.03 352.954);
  --primary-foreground: oklch(0.822 0.094 356.686);
  --secondary: oklch(0.129 0.03 132.011);
  --secondary-foreground: oklch(0.722 0.219 138.36);
  --accent: oklch(0.103 0.021 250.222);
  --accent-foreground: oklch(0.823 0.075 262.665);
  --destructive: oklch(0.562 0.201 32.58);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.1 0.03 352.954);
  --chart-1: oklch(0.1 0.03 352.954);
  --chart-2: oklch(0.129 0.03 132.011);
  --chart-3: oklch(0.103 0.021 250.222);
  --chart-4: oklch(0.186 0.046 134.313);
  --chart-5: oklch(0.099 0.032 352.921);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.135 0.023 354.899);
  --foreground: oklch(0.976 0.002 353.626);
  --muted: oklch(0.17 0.023 134.745);
  --muted-foreground: oklch(0.806 0.017 134.335);
  --popover: oklch(0.135 0.023 354.899);
  --popover-foreground: oklch(0.976 0.002 353.626);
  --card: oklch(0.135 0.023 354.899);
  --card-foreground: oklch(0.976 0.002 353.626);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.1 0.03 352.954);
  --primary-foreground: oklch(0.822 0.094 356.686);
  --secondary: oklch(0.129 0.03 132.011);
  --secondary-foreground: oklch(0.722 0.219 138.36);
  --accent: oklch(0.103 0.021 250.222);
  --accent-foreground: oklch(0.823 0.075 262.665);
  --destructive: oklch(0.622 0.219 32.697);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.1 0.03 352.954);
  --chart-1: oklch(0.1 0.03 352.954);
  --chart-2: oklch(0.129 0.03 132.011);
  --chart-3: oklch(0.103 0.021 250.222);
  --chart-4: oklch(0.186 0.046 134.313);
  --chart-5: oklch(0.099 0.032 352.921);
}