Decent for shadcn/ui

Decent is a shadcn/ui theme built around a neutral gray primary color (#b3b3b3) with neutral gray accents (#b3b3b3). The light mode uses a neutral background (#fefbfb). Dark mode keeps the neutral gray primary (#b3b3b3) on a neutral background (#070404).

Color palette

TokenLightDark
Background
#fefbfbsnow
#070404black
Foreground
#110404black
#fdfcfcsnow
Card
#fdf7f7snow
#0a0505black
Card foreground
#0c0303black
#ffffffwhite
Popover
#fdf7f7snow
#0a0505black
Popover foreground
#0c0303black
#ffffffwhite
Primary
#b3b3b3darkgray
#b3b3b3darkgray
Primary foreground
#1a1a1ablack
#1a1a1ablack
Secondary
#b3b3b3darkgray
#b3b3b3darkgray
Secondary foreground
#1a1a1ablack
#1a1a1ablack
Muted
#e3dedegainsboro
#211c1cblack
Muted foreground
#645959dimgray
#a69b9bdarkgray
Accent
#b3b3b3darkgray
#b3b3b3darkgray
Accent foreground
#1a1a1ablack
#1a1a1ablack
Destructive
#8b0f04darkred
#f21b07red
Destructive foreground
#fdc8c4pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b3b3b3darkgray
#b3b3b3darkgray

Contrast

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

Light mode
Text on background19.54:1AAA
Text on card19.20:1AAA
Primary button8.25:1AAA
Secondary button8.25:1AAA
Muted text5.05:1AA
Accent8.25:1AAA
Destructive6.58:1AA
Dark mode
Text on background19.99:1AAA
Text on card20.22:1AAA
Primary button8.25:1AAA
Secondary button8.25:1AAA
Muted text6.23:1AA
Accent8.25:1AAA
Destructive4.24:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 17.216);
  --foreground: oklch(0.131 0.027 21.472);
  --muted: oklch(0.904 0.005 17.256);
  --muted-foreground: oklch(0.474 0.015 17.686);
  --popover: oklch(0.98 0.007 17.276);
  --popover-foreground: oklch(0.117 0.023 21.261);
  --card: oklch(0.98 0.007 17.276);
  --card-foreground: oklch(0.117 0.023 21.261);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.765 0 172.405);
  --primary-foreground: oklch(0.216 0 180);
  --secondary: oklch(0.765 0 172.405);
  --secondary-foreground: oklch(0.216 0 180);
  --accent: oklch(0.765 0 172.405);
  --accent-foreground: oklch(0.216 0 180);
  --destructive: oklch(0.406 0.157 30.284);
  --destructive-foreground: oklch(0.879 0.061 24.39);
  --ring: oklch(0.765 0 172.405);
  --chart-1: oklch(0.765 0 172.405);
  --chart-2: oklch(0.765 0 172.405);
  --chart-3: oklch(0.765 0 172.405);
  --chart-4: oklch(0.789 0 171.254);
  --chart-5: oklch(0.762 0.005 17.272);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.009 18.604);
  --foreground: oklch(0.992 0.001 17.176);
  --muted: oklch(0.233 0.008 17.714);
  --muted-foreground: oklch(0.699 0.013 17.476);
  --popover: oklch(0.126 0.01 18.604);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.126 0.01 18.604);
  --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.765 0 172.405);
  --primary-foreground: oklch(0.216 0 180);
  --secondary: oklch(0.765 0 172.405);
  --secondary-foreground: oklch(0.216 0 180);
  --accent: oklch(0.765 0 172.405);
  --accent-foreground: oklch(0.216 0 180);
  --destructive: oklch(0.611 0.241 30.017);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.765 0 172.405);
  --chart-1: oklch(0.765 0 172.405);
  --chart-2: oklch(0.765 0 172.405);
  --chart-3: oklch(0.765 0 172.405);
  --chart-4: oklch(0.789 0 171.254);
  --chart-5: oklch(0.762 0.005 17.272);
}