Min for shadcn/ui

Min is a shadcn/ui theme built around a deep teal primary color (#142f22) with muted teal accents (#b8c6bf). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep teal primary (#142f22) on a neutral background (#010403).

Color palette

TokenLightDark
Background
#ffffffwhite
#010403black
Foreground
#03110ablack
#ffffffwhite
Card
#ffffffwhite
#010403black
Card foreground
#03110ablack
#ffffffwhite
Popover
#ffffffwhite
#010403black
Popover foreground
#03110ablack
#ffffffwhite
Primary
#142f22black
#142f22black
Primary foreground
#9ed6bbsilver
#9ed6bbsilver
Secondary
#ced0cflightgrey
#141514black
Secondary foreground
#343736darkslategray
#acafaddarkgray
Muted
#e3ede8lavender
#121c17black
Muted foreground
#525b57dimgray
#a4ada8darkgray
Accent
#b8c6bfsilver
#262c29darkslategray
Accent foreground
#222a26darkslategray
#bec6c2silver
Destructive
#832d01saddlebrown
#e34d02orangered
Destructive foreground
#fed0b8peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#142f22black
#142f22black

Contrast

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

Light mode
Text on background19.29:1AAA
Text on card19.29:1AAA
Primary button8.79:1AAA
Secondary button7.72:1AAA
Muted text5.85:1AA
Accent8.33:1AAA
Destructive6.37:1AA
Dark mode
Text on background20.61:1AAA
Text on card20.61:1AAA
Primary button8.79:1AAA
Secondary button8.28:1AAA
Muted text7.59:1AAA
Accent8.19:1AAA
Destructive3.93:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.162 0.027 163.405);
  --muted: oklch(0.937 0.011 165.688);
  --muted-foreground: oklch(0.462 0.013 165.258);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.162 0.027 163.405);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.162 0.027 163.405);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.278 0.042 160.944);
  --primary-foreground: oklch(0.831 0.07 163.527);
  --secondary: oklch(0.854 0.002 165.94);
  --secondary-foreground: oklch(0.333 0.003 165.738);
  --accent: oklch(0.815 0.018 165.415);
  --accent-foreground: oklch(0.277 0.014 164.597);
  --destructive: oklch(0.42 0.128 41);
  --destructive-foreground: oklch(0.891 0.062 48.009);
  --ring: oklch(0.278 0.042 160.944);
  --chart-1: oklch(0.278 0.042 160.944);
  --chart-2: oklch(0.854 0.002 165.94);
  --chart-3: oklch(0.815 0.018 165.415);
  --chart-4: oklch(0.878 0.002 165.954);
  --chart-5: oklch(0.281 0.044 160.578);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.01 166.153);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.214 0.016 163.825);
  --muted-foreground: oklch(0.738 0.011 165.598);
  --popover: oklch(0.097 0.01 166.153);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.097 0.01 166.153);
  --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.278 0.042 160.944);
  --primary-foreground: oklch(0.831 0.07 163.527);
  --secondary: oklch(0.194 0.002 165.808);
  --secondary-foreground: oklch(0.751 0.004 165.864);
  --accent: oklch(0.285 0.009 165.098);
  --accent-foreground: oklch(0.819 0.011 165.654);
  --destructive: oklch(0.622 0.197 39.332);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.278 0.042 160.944);
  --chart-1: oklch(0.278 0.042 160.944);
  --chart-2: oklch(0.194 0.002 165.808);
  --chart-3: oklch(0.285 0.009 165.098);
  --chart-4: oklch(0.228 0.002 165.782);
  --chart-5: oklch(0.281 0.044 160.578);
}