Yellow for shadcn/ui

Yellow is a shadcn/ui theme built around a vivid yellow primary color (#ebb40a) with neutral gray accents (#d6d6d6). The light mode uses a neutral background (#f0f0f0). Dark mode keeps the vivid yellow primary (#ebb40a) on a neutral background (#0f0f0f).

Color palette

TokenLightDark
Background
#f0f0f0whitesmoke
#0f0f0fblack
Foreground
#0f0f0fblack
#f0f0f0whitesmoke
Card
#edededwhitesmoke
#121212black
Card foreground
#121212black
#edededwhitesmoke
Popover
#edededwhitesmoke
#121212black
Popover foreground
#121212black
#edededwhitesmoke
Primary
#ebb40aorange
#ebb40aorange
Primary foreground
#0a0a0ablack
#0a0a0ablack
Secondary
#dbdbdbgainsboro
#242424darkslategray
Secondary foreground
#242424darkslategray
#dbdbdbgainsboro
Muted
#e0e0e0gainsboro
#1f1f1fblack
Muted foreground
#1f1f1fblack
#e0e0e0gainsboro
Accent
#d6d6d6lightgrey
#242424darkslategray
Accent foreground
#0f0f0fblack
#f0f0f0whitesmoke
Destructive
#f87272salmon
#f87272salmon
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e0e0e0gainsboro
#1f1f1fblack
Input
#e0e0e0gainsboro
#1f1f1fblack
Ring
#d7b40agoldenrod
#d7b40agoldenrod

Contrast

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

Light mode
Text on background16.77:1AAA
Text on card16.02:1AAA
Primary button10.43:1AAA
Secondary button11.24:1AAA
Muted text12.53:1AAA
Accent13.21:1AAA
Destructive2.74:1Fail
Dark mode
Text on background16.78:1AAA
Text on card16.02:1AAA
Primary button10.43:1AAA
Secondary button11.25:1AAA
Muted text12.54:1AAA
Accent13.67:1AAA
Destructive2.74:1Fail

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.954 0 180);
  --foreground: oklch(0.17 0 180);
  --muted: oklch(0.908 0 180);
  --muted-foreground: oklch(0.238 0 161.565);
  --popover: oklch(0.947 0 180);
  --popover-foreground: oklch(0.182 0 164.055);
  --card: oklch(0.947 0 180);
  --card-foreground: oklch(0.182 0 164.055);
  --border: oklch(0.908 0 180);
  --input: oklch(0.908 0 180);
  --primary: oklch(0.798 0.162 86.115);
  --primary-foreground: oklch(0.146 0 180);
  --secondary: oklch(0.892 0 180);
  --secondary-foreground: oklch(0.259 0 167.471);
  --accent: oklch(0.877 0 180);
  --accent-foreground: oklch(0.17 0 180);
  --destructive: oklch(0.712 0.165 22.149);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.778 0.158 94.688);
  --chart-1: oklch(0.798 0.162 86.115);
  --chart-2: oklch(0.892 0 180);
  --chart-3: oklch(0.877 0 180);
  --chart-4: oklch(0.916 0 180);
  --chart-5: oklch(0.806 0.164 85.684);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.17 0 180);
  --foreground: oklch(0.954 0 180);
  --muted: oklch(0.238 0 161.565);
  --muted-foreground: oklch(0.908 0 180);
  --popover: oklch(0.182 0 164.055);
  --popover-foreground: oklch(0.947 0 180);
  --card: oklch(0.182 0 164.055);
  --card-foreground: oklch(0.947 0 180);
  --border: oklch(0.238 0 161.565);
  --input: oklch(0.238 0 161.565);
  --primary: oklch(0.798 0.162 86.115);
  --primary-foreground: oklch(0.146 0 180);
  --secondary: oklch(0.259 0 167.471);
  --secondary-foreground: oklch(0.892 0 180);
  --accent: oklch(0.259 0 167.471);
  --accent-foreground: oklch(0.954 0 180);
  --destructive: oklch(0.712 0.165 22.149);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.778 0.158 94.688);
  --chart-1: oklch(0.798 0.162 86.115);
  --chart-2: oklch(0.259 0 167.471);
  --chart-3: oklch(0.259 0 167.471);
  --chart-4: oklch(0.29 0 180);
  --chart-5: oklch(0.806 0.164 85.684);
}