Developer for shadcn/ui

Developer is a shadcn/ui theme built around a muted yellow primary color (#73745d) with muted light yellow accents (#dbdcd0). The light mode uses a neutral background (#fdfdf6). Dark mode keeps the muted yellow primary (#73745d) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfdf6snow
#000000black
Foreground
#141504black
#fafaf9snow
Card
#fcfdf2ivory
#030303black
Card foreground
#101103black
#fdfdfcwhite
Popover
#fcfdf2ivory
#030303black
Popover foreground
#101103black
#fdfdfcwhite
Primary
#73745ddimgray
#73745ddimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#dbdcd0gainsboro
#181811black
Secondary foreground
#454635darkslategray
#babc9fdarkgray
Muted
#f4f5f0whitesmoke
#0f0f0ablack
Muted foreground
#6b6c60dimgray
#9e9f93darkgray
Accent
#dbdcd0gainsboro
#181811black
Accent foreground
#454635darkslategray
#babc9fdarkgray
Destructive
#aa3a0efirebrick
#ef6c39tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#73745ddimgray
#73745ddimgray

Contrast

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

Light mode
Text on background18.10:1AAA
Text on card18.50:1AAA
Primary button4.79:1AA
Secondary button6.95:1AA
Muted text4.85:1AA
Accent6.95:1AA
Destructive6.33:1AA
Dark mode
Text on background20.10:1AAA
Text on card20.31:1AAA
Primary button4.79:1AA
Secondary button9.16:1AAA
Muted text7.16:1AAA
Accent9.16:1AAA
Destructive6.89:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.009 109.652);
  --foreground: oklch(0.191 0.033 112.334);
  --muted: oklch(0.968 0.006 109.602);
  --muted-foreground: oklch(0.527 0.019 110.13);
  --popover: oklch(0.99 0.014 109.739);
  --popover-foreground: oklch(0.172 0.029 112.06);
  --card: oklch(0.99 0.014 109.739);
  --card-foreground: oklch(0.172 0.029 112.06);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.551 0.034 110.612);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.89 0.015 109.799);
  --secondary-foreground: oklch(0.387 0.028 110.782);
  --accent: oklch(0.89 0.015 109.799);
  --accent-foreground: oklch(0.387 0.028 110.782);
  --destructive: oklch(0.504 0.155 38.562);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.551 0.034 110.612);
  --chart-1: oklch(0.551 0.034 110.612);
  --chart-2: oklch(0.89 0.015 109.799);
  --chart-3: oklch(0.89 0.015 109.799);
  --chart-4: oklch(0.911 0.012 109.732);
  --chart-5: oklch(0.56 0.043 110.875);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.001 109.504);
  --muted: oklch(0.167 0.01 110.545);
  --muted-foreground: oklch(0.699 0.017 109.941);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.993 0.001 109.491);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.993 0.001 109.491);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.551 0.034 110.612);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.206 0.014 110.71);
  --secondary-foreground: oklch(0.786 0.04 110.416);
  --accent: oklch(0.206 0.014 110.71);
  --accent-foreground: oklch(0.786 0.04 110.416);
  --destructive: oklch(0.683 0.174 40.768);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.551 0.034 110.612);
  --chart-1: oklch(0.551 0.034 110.612);
  --chart-2: oklch(0.206 0.014 110.71);
  --chart-3: oklch(0.206 0.014 110.71);
  --chart-4: oklch(0.244 0.018 110.842);
  --chart-5: oklch(0.56 0.043 110.875);
}