yello for shadcn/ui

yello is a shadcn/ui theme built around a vivid deep yellow primary color (#494409) with neutral gray accents (#dbdad7). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep yellow primary (#494409) on a neutral background (#070603).

Color palette

TokenLightDark
Background
#ffffffwhite
#070603black
Foreground
#0c0b03black
#ffffffwhite
Card
#fcfcfcsnow
#0a0a05black
Card foreground
#080702black
#ffffffwhite
Popover
#ffffffwhite
#070603black
Popover foreground
#0c0b03black
#ffffffwhite
Primary
#494409darkolivegreen
#494409darkolivegreen
Primary foreground
#e7d936goldenrod
#e7d936goldenrod
Secondary
#dbdad7gainsboro
#171717black
Secondary foreground
#43423ddarkslategray
#b1b1afdarkgray
Muted
#e7e5cagainsboro
#353218darkslategray
Muted foreground
#5f5f5ddimgray
#a2a1a0darkgray
Accent
#dbdad7gainsboro
#171717black
Accent foreground
#43423ddarkslategray
#b1b1afdarkgray
Destructive
#b81d0ffirebrick
#ed2e1dorangered
Destructive foreground
#fffbfasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#494409darkolivegreen
#494409darkolivegreen

Contrast

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

Light mode
Text on background19.72:1AAA
Text on card19.72:1AAA
Primary button6.82:1AA
Secondary button7.21:1AAA
Muted text5.01:1AA
Accent7.21:1AAA
Destructive6.34:1AA
Dark mode
Text on background20.22:1AAA
Text on card19.86:1AAA
Primary button6.82:1AA
Secondary button8.33:1AAA
Muted text5.00:1AA
Accent8.33:1AAA
Destructive4.20:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.148 0.019 104.921);
  --muted: oklch(0.916 0.035 102.817);
  --muted-foreground: oklch(0.486 0.003 102.304);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.148 0.019 104.921);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.129 0.017 105.202);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.379 0.075 103.889);
  --primary-foreground: oklch(0.87 0.17 103.937);
  --secondary: oklch(0.889 0.005 102.3);
  --secondary-foreground: oklch(0.379 0.01 102.621);
  --accent: oklch(0.889 0.005 102.3);
  --accent-foreground: oklch(0.379 0.01 102.621);
  --destructive: oklch(0.503 0.19 30.08);
  --destructive-foreground: oklch(0.99 0.004 23.623);
  --ring: oklch(0.379 0.075 103.889);
  --chart-1: oklch(0.379 0.075 103.889);
  --chart-2: oklch(0.889 0.005 102.3);
  --chart-3: oklch(0.889 0.005 102.3);
  --chart-4: oklch(0.911 0.004 102.28);
  --chart-5: oklch(0.383 0.076 103.842);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.01 104.097);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.314 0.043 103.966);
  --muted-foreground: oklch(0.71 0.002 102.269);
  --popover: oklch(0.124 0.01 104.097);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.142 0.011 104.097);
  --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.379 0.075 103.889);
  --primary-foreground: oklch(0.87 0.17 103.937);
  --secondary: oklch(0.205 0.001 102.278);
  --secondary-foreground: oklch(0.759 0.002 102.256);
  --accent: oklch(0.205 0.001 102.278);
  --accent-foreground: oklch(0.759 0.002 102.256);
  --destructive: oklch(0.611 0.226 30.021);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.379 0.075 103.889);
  --chart-1: oklch(0.379 0.075 103.889);
  --chart-2: oklch(0.205 0.001 102.278);
  --chart-3: oklch(0.205 0.001 102.278);
  --chart-4: oklch(0.239 0.001 102.285);
  --chart-5: oklch(0.383 0.076 103.842);
}