Descriptive for shadcn/ui

Descriptive is a shadcn/ui theme built around a yellow primary color (#d9ce96) with neutral gray accents (#e5e4e1). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the yellow primary (#d9ce96) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfcf7snow
#000000black
Foreground
#090801black
#fbfbf9snow
Card
#fcfbf3floralwhite
#030303black
Card foreground
#050401black
#fdfdfcwhite
Popover
#fdfcf7snow
#000000black
Popover foreground
#090801black
#fbfbf9snow
Primary
#d9ce96burlywood
#d9ce96burlywood
Primary foreground
#2d2810black
#2d2810black
Secondary
#e5e4e1gainsboro
#2e2d28darkslategray
Secondary foreground
#4e4d46darkslategray
#c8c7c0silver
Muted
#ebe9e0beige
#1f1d14black
Muted foreground
#585546darkolivegreen
#b9b6a7darkgray
Accent
#e5e4e1gainsboro
#2e2d28darkslategray
Accent foreground
#4e4d46darkslategray
#c8c7c0silver
Destructive
#c52e0dfirebrick
#dd340eorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d9ce96burlywood
#d9ce96burlywood

Contrast

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

Light mode
Text on background19.53:1AAA
Text on card19.69:1AAA
Primary button9.29:1AAA
Secondary button6.67:1AA
Muted text6.17:1AA
Accent6.67:1AA
Destructive5.58:1AA
Dark mode
Text on background20.26:1AAA
Text on card20.31:1AAA
Primary button9.29:1AAA
Secondary button8.09:1AAA
Muted text8.27:1AAA
Accent8.09:1AAA
Destructive4.60:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.007 97.354);
  --foreground: oklch(0.132 0.023 102.416);
  --muted: oklch(0.934 0.013 97.437);
  --muted-foreground: oklch(0.447 0.023 97.874);
  --popover: oklch(0.99 0.007 97.354);
  --popover-foreground: oklch(0.132 0.023 102.416);
  --card: oklch(0.986 0.011 97.401);
  --card-foreground: oklch(0.105 0.018 102.416);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.847 0.074 98.171);
  --primary-foreground: oklch(0.276 0.039 98.247);
  --secondary: oklch(0.919 0.004 97.315);
  --secondary-foreground: oklch(0.419 0.012 97.627);
  --accent: oklch(0.919 0.004 97.315);
  --accent-foreground: oklch(0.419 0.012 97.627);
  --destructive: oklch(0.539 0.191 33.124);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.847 0.074 98.171);
  --chart-1: oklch(0.847 0.074 98.171);
  --chart-2: oklch(0.919 0.004 97.315);
  --chart-3: oklch(0.919 0.004 97.315);
  --chart-4: oklch(0.941 0.003 97.299);
  --chart-5: oklch(0.851 0.078 98.198);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.987 0.003 97.301);
  --muted: oklch(0.231 0.017 98.083);
  --muted-foreground: oklch(0.774 0.02 97.596);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.987 0.003 97.301);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.994 0.002 97.28);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.847 0.074 98.171);
  --primary-foreground: oklch(0.276 0.039 98.247);
  --secondary: oklch(0.298 0.009 97.642);
  --secondary-foreground: oklch(0.829 0.01 97.411);
  --accent: oklch(0.298 0.009 97.642);
  --accent-foreground: oklch(0.829 0.01 97.411);
  --destructive: oklch(0.586 0.209 33.04);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.847 0.074 98.171);
  --chart-1: oklch(0.847 0.074 98.171);
  --chart-2: oklch(0.298 0.009 97.642);
  --chart-3: oklch(0.298 0.009 97.642);
  --chart-4: oklch(0.33 0.01 97.655);
  --chart-5: oklch(0.851 0.078 98.198);
}