Blind for shadcn/ui

Blind is a shadcn/ui theme built around a green primary color (#88a848) with violet accents (#6848a8). The light mode uses a neutral background (#fdfefb). Dark mode keeps the green primary (#88a848) on a neutral background (#030401).

Color palette

TokenLightDark
Background
#fdfefbwhite
#030401black
Foreground
#030401black
#f8faf5whitesmoke
Card
#fbfcf8snow
#060703black
Card foreground
#000000black
#fafcf8snow
Popover
#fdfefbwhite
#030401black
Popover foreground
#030401black
#f8faf5whitesmoke
Primary
#88a848yellowgreen
#88a848yellowgreen
Primary foreground
#14190bblack
#14190bblack
Secondary
#6848a8rebeccapurple
#6848a8rebeccapurple
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e5e4e7gainsboro
#19181bblack
Muted foreground
#535158dimgray
#aaa7aedarkgray
Accent
#6848a8rebeccapurple
#6848a8rebeccapurple
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#8a330asaddlebrown
#df5211chocolate
Destructive foreground
#fbdacbbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#88a848yellowgreen
#88a848yellowgreen

Contrast

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

Light mode
Text on background20.24:1AAA
Text on card20.37:1AAA
Primary button6.58:1AA
Secondary button6.82:1AA
Muted text6.18:1AA
Accent6.82:1AA
Destructive6.28:1AA
Dark mode
Text on background19.58:1AAA
Text on card19.54:1AAA
Primary button6.58:1AA
Secondary button6.82:1AA
Muted text7.43:1AAA
Accent6.82:1AA
Destructive3.92:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 121.541);
  --foreground: oklch(0.102 0.016 121.143);
  --muted: oklch(0.921 0.004 301.431);
  --muted-foreground: oklch(0.439 0.011 301.08);
  --popover: oklch(0.995 0.003 121.541);
  --popover-foreground: oklch(0.102 0.016 121.143);
  --card: oklch(0.989 0.006 121.59);
  --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.686 0.129 125.095);
  --primary-foreground: oklch(0.204 0.027 123.839);
  --secondary: oklch(0.485 0.148 295.751);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.485 0.148 295.751);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.439 0.128 40.987);
  --destructive-foreground: oklch(0.912 0.042 46.391);
  --ring: oklch(0.686 0.129 125.095);
  --chart-1: oklch(0.686 0.129 125.095);
  --chart-2: oklch(0.485 0.148 295.751);
  --chart-3: oklch(0.485 0.148 295.751);
  --chart-4: oklch(0.506 0.156 295.701);
  --chart-5: oklch(0.695 0.137 125.342);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.1 0.012 121.215);
  --foreground: oklch(0.982 0.007 121.609);
  --muted: oklch(0.212 0.005 301.105);
  --muted-foreground: oklch(0.734 0.01 301.276);
  --popover: oklch(0.1 0.012 121.215);
  --popover-foreground: oklch(0.982 0.007 121.609);
  --card: oklch(0.126 0.015 121.215);
  --card-foreground: oklch(0.988 0.005 121.57);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.686 0.129 125.095);
  --primary-foreground: oklch(0.204 0.027 123.839);
  --secondary: oklch(0.485 0.148 295.751);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.485 0.148 295.751);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.621 0.188 40.15);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.686 0.129 125.095);
  --chart-1: oklch(0.686 0.129 125.095);
  --chart-2: oklch(0.485 0.148 295.751);
  --chart-3: oklch(0.485 0.148 295.751);
  --chart-4: oklch(0.506 0.156 295.701);
  --chart-5: oklch(0.695 0.137 125.342);
}