Min Light for shadcn/ui

Min Light is a shadcn/ui theme built around a neutral gray primary color (#9e9e9e) with neutral gray accents (#d9d9d9). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#9e9e9e) on a neutral background (#ffffff).

Color palette

TokenLightDark
Background
#ffffffwhite
#ffffffwhite
Foreground
#212121black
#212121black
Card
#fafafasnow
#fafafasnow
Card foreground
#141414black
#141414black
Popover
#f7f7f7whitesmoke
#f7f7f7whitesmoke
Popover foreground
#080808black
#080808black
Primary
#9e9e9edarkgray
#9e9e9edarkgray
Primary foreground
#050505black
#050505black
Secondary
#404040darkslategray
#404040darkslategray
Secondary foreground
#d9d9d9gainsboro
#d9d9d9gainsboro
Muted
#e9e2e2gainsboro
#e9e2e2gainsboro
Muted foreground
#564343darkslategray
#564343darkslategray
Accent
#d9d9d9gainsboro
#d9d9d9gainsboro
Accent foreground
#404040darkslategray
#404040darkslategray
Destructive
#c82314firebrick
#c82314firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#f2f2f2whitesmoke
#f2f2f2whitesmoke
Input
#ebebeblinen
#ebebeblinen
Ring
#9e9e9edarkgray
#9e9e9edarkgray

Contrast

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

Light mode
Text on background16.10:1AAA
Text on card17.63:1AAA
Primary button7.61:1AAA
Secondary button7.37:1AAA
Muted text7.22:1AAA
Accent7.32:1AAA
Destructive5.68:1AA
Dark mode
Text on background16.10:1AAA
Text on card17.63:1AAA
Primary button7.61:1AAA
Secondary button7.37:1AAA
Muted text7.22:1AAA
Accent7.32:1AAA
Destructive5.68:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.248 0 173.29);
  --muted: oklch(0.919 0.007 17.278);
  --muted-foreground: oklch(0.404 0.025 18.259);
  --popover: oklch(0.977 0 180);
  --popover-foreground: oklch(0.132 0 165.964);
  --card: oklch(0.985 0 180);
  --card-foreground: oklch(0.193 0 164.055);
  --border: oklch(0.962 0 180);
  --input: oklch(0.939 0 180);
  --primary: oklch(0.7 0 180);
  --primary-foreground: oklch(0.116 0 180);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.885 0 180);
  --accent-foreground: oklch(0.371 0 168.69);
  --destructive: oklch(0.536 0.201 30.056);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.7 0 180);
  --chart-1: oklch(0.7 0 180);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.885 0 180);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.695 0.007 17.32);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.248 0 173.29);
  --muted: oklch(0.919 0.007 17.278);
  --muted-foreground: oklch(0.404 0.025 18.259);
  --popover: oklch(0.977 0 180);
  --popover-foreground: oklch(0.132 0 165.964);
  --card: oklch(0.985 0 180);
  --card-foreground: oklch(0.193 0 164.055);
  --border: oklch(0.962 0 180);
  --input: oklch(0.939 0 180);
  --primary: oklch(0.7 0 180);
  --primary-foreground: oklch(0.116 0 180);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.885 0 180);
  --accent-foreground: oklch(0.371 0 168.69);
  --destructive: oklch(0.536 0.201 30.056);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.7 0 180);
  --chart-1: oklch(0.7 0 180);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.885 0 180);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.695 0.007 17.32);
}