Descriptive for shadcn/ui

Descriptive is a shadcn/ui theme built around a neutral gray primary color (#c1c2c1) with neutral gray accents (#c2c1c1). The light mode uses a neutral background (#fbfdfc). Dark mode keeps the neutral gray primary (#c1c2c1) on a neutral background (#030703).

Color palette

TokenLightDark
Background
#fbfdfcwhite
#030703black
Foreground
#030c04black
#ffffffwhite
Card
#fbfdfcwhite
#030703black
Card foreground
#030c04black
#ffffffwhite
Popover
#fbfdfcwhite
#030703black
Popover foreground
#030c04black
#ffffffwhite
Primary
#c1c2c1silver
#c1c2c1silver
Primary foreground
#282928darkslategray
#282928darkslategray
Secondary
#c1c1c2silver
#c1c1c2silver
Secondary foreground
#282829darkslategray
#282829darkslategray
Muted
#f1f1f4whitesmoke
#0b0b0eblack
Muted foreground
#585667dimgray
#9a98a9darkgray
Accent
#c2c1c1silver
#c2c1c1silver
Accent foreground
#292828darkslategray
#292828darkslategray
Destructive
#722d09saddlebrown
#e45b11chocolate
Destructive foreground
#f9ccb3peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c1c2c1silver
#c1c2c1silver

Contrast

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

Light mode
Text on background19.49:1AAA
Text on card19.49:1AAA
Primary button8.20:1AAA
Secondary button8.20:1AAA
Muted text6.31:1AA
Accent8.21:1AAA
Destructive6.82:1AA
Dark mode
Text on background20.24:1AAA
Text on card20.24:1AAA
Primary button8.20:1AAA
Secondary button8.20:1AAA
Muted text6.95:1AA
Accent8.21:1AAA
Destructive3.62:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 149.094);
  --foreground: oklch(0.141 0.028 147.727);
  --muted: oklch(0.958 0.004 291.693);
  --muted-foreground: oklch(0.461 0.027 290.632);
  --popover: oklch(0.993 0.003 149.094);
  --popover-foreground: oklch(0.141 0.028 147.727);
  --card: oklch(0.993 0.003 149.094);
  --card-foreground: oklch(0.141 0.028 147.727);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.814 0.002 149.104);
  --primary-foreground: oklch(0.281 0.002 149.06);
  --secondary: oklch(0.812 0.002 291.74);
  --secondary-foreground: oklch(0.279 0.001 291.679);
  --accent: oklch(0.813 0.001 26.45);
  --accent-foreground: oklch(0.28 0.001 26.466);
  --destructive: oklch(0.391 0.107 43.905);
  --destructive-foreground: oklch(0.878 0.062 49.832);
  --ring: oklch(0.814 0.002 149.104);
  --chart-1: oklch(0.814 0.002 149.104);
  --chart-2: oklch(0.812 0.002 291.74);
  --chart-3: oklch(0.813 0.001 26.45);
  --chart-4: oklch(0.836 0.001 291.746);
  --chart-5: oklch(0.816 0.008 149.017);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.017 148.195);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.152 0.007 290.891);
  --muted-foreground: oklch(0.687 0.025 291.093);
  --popover: oklch(0.121 0.017 148.195);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.121 0.017 148.195);
  --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.814 0.002 149.104);
  --primary-foreground: oklch(0.281 0.002 149.06);
  --secondary: oklch(0.812 0.002 291.74);
  --secondary-foreground: oklch(0.279 0.001 291.679);
  --accent: oklch(0.813 0.001 26.45);
  --accent-foreground: oklch(0.28 0.001 26.466);
  --destructive: oklch(0.64 0.185 42.459);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.814 0.002 149.104);
  --chart-1: oklch(0.814 0.002 149.104);
  --chart-2: oklch(0.812 0.002 291.74);
  --chart-3: oklch(0.813 0.001 26.45);
  --chart-4: oklch(0.836 0.001 291.746);
  --chart-5: oklch(0.816 0.008 149.017);
}