Practical Blackish Green for shadcn/ui

Practical Blackish Green is a shadcn/ui theme built around a neutral gray primary color (#5f6363) with neutral gray accents (#e2e4e4). The light mode uses a neutral background (#fbfefe). Dark mode keeps the neutral gray primary (#5f6363) on a teal-tinted background (#050a0a).

Color palette

TokenLightDark
Background
#fbfefewhite
#050a0ablack
Foreground
#000000black
#f5f9f9whitesmoke
Card
#fbfefewhite
#050a0ablack
Card foreground
#000000black
#f5f9f9whitesmoke
Popover
#fbfefewhite
#050a0ablack
Popover foreground
#000000black
#f5f9f9whitesmoke
Primary
#5f6363dimgray
#5f6363dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e2e4e4gainsboro
#111818black
Secondary foreground
#474d4ddarkslategray
#9ebdbbdarkgray
Muted
#d8eeedlavender
#112726black
Muted foreground
#495555darkslategray
#aab6b6darkgray
Accent
#e2e4e4gainsboro
#111818black
Accent foreground
#474d4ddarkslategray
#9ebdbbdarkgray
Destructive
#c13101firebrick
#f93f01orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e6e6gainsboro
#252727darkslategray
Input
#e5e6e6gainsboro
#252727darkslategray
Ring
#5f6363dimgray
#5f6363dimgray

Contrast

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

Light mode
Text on background20.69:1AAA
Text on card20.69:1AAA
Primary button6.09:1AA
Secondary button6.75:1AA
Muted text6.40:1AA
Accent6.75:1AA
Destructive5.67:1AA
Dark mode
Text on background18.74:1AAA
Text on card18.74:1AAA
Primary button6.09:1AA
Secondary button8.93:1AAA
Muted text7.48:1AAA
Accent8.93:1AAA
Destructive3.66:1AA Large

CSS variables

Paste this into your globals.css to use Practical Blackish Green in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 193.546);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.933 0.024 193.107);
  --muted-foreground: oklch(0.44 0.016 192.893);
  --popover: oklch(0.995 0.003 193.546);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.995 0.003 193.546);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.924 0.001 193.584);
  --input: oklch(0.924 0.001 193.584);
  --primary: oklch(0.496 0.005 193.413);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.917 0.002 193.555);
  --secondary-foreground: oklch(0.414 0.008 193.241);
  --accent: oklch(0.917 0.002 193.555);
  --accent-foreground: oklch(0.414 0.008 193.241);
  --destructive: oklch(0.534 0.186 35.095);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.496 0.005 193.413);
  --chart-1: oklch(0.496 0.005 193.413);
  --chart-2: oklch(0.917 0.002 193.555);
  --chart-3: oklch(0.917 0.002 193.555);
  --chart-4: oklch(0.94 0.002 193.57);
  --chart-5: oklch(0.501 0.012 193.136);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.011 192.735);
  --foreground: oklch(0.98 0.005 193.515);
  --muted: oklch(0.255 0.029 191.298);
  --muted-foreground: oklch(0.767 0.014 193.244);
  --popover: oklch(0.14 0.011 192.735);
  --popover-foreground: oklch(0.98 0.005 193.515);
  --card: oklch(0.14 0.011 192.735);
  --card-foreground: oklch(0.98 0.005 193.515);
  --border: oklch(0.271 0.002 193.444);
  --input: oklch(0.271 0.002 193.444);
  --primary: oklch(0.496 0.005 193.413);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.202 0.012 192.478);
  --secondary-foreground: oklch(0.775 0.034 192.751);
  --accent: oklch(0.202 0.012 192.478);
  --accent-foreground: oklch(0.775 0.034 192.751);
  --destructive: oklch(0.644 0.228 34.615);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.496 0.005 193.413);
  --chart-1: oklch(0.496 0.005 193.413);
  --chart-2: oklch(0.202 0.012 192.478);
  --chart-3: oklch(0.202 0.012 192.478);
  --chart-4: oklch(0.239 0.015 192.354);
  --chart-5: oklch(0.501 0.012 193.136);
}