Yellow Dark for shadcn/ui

Yellow Dark is a shadcn/ui theme built around a vivid yellow primary color (#ffc642) with near-white accents (#ecebe9). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the vivid yellow primary (#ffc642) on a yellow-tinted background (#0b0905).

Color palette

TokenLightDark
Background
#fdfdfcwhite
#0b0905black
Foreground
#040301black
#fdfdfcwhite
Card
#fdfdfcwhite
#0b0905black
Card foreground
#040301black
#fdfdfcwhite
Popover
#fdfdfcwhite
#0b0905black
Popover foreground
#040301black
#fdfdfcwhite
Primary
#ffc642sandybrown
#ffc642sandybrown
Primary foreground
#0f0b00black
#0f0b00black
Secondary
#ecebe9linen
#2e2c29darkslategray
Secondary foreground
#57544cdarkolivegreen
#c8c6c1silver
Muted
#ebe8e0beige
#1f1c14black
Muted foreground
#645c4adimgray
#b5ae9bdarkgray
Accent
#ecebe9linen
#2e2c29darkslategray
Accent foreground
#57544cdarkolivegreen
#c8c6c1silver
Destructive
#c13b06firebrick
#f74c08orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e8e6e3gainsboro
#24221eblack
Input
#e8e6e3gainsboro
#24221eblack
Ring
#ffc642sandybrown
#ffc642sandybrown

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button12.58:1AAA
Secondary button6.35:1AA
Muted text5.38:1AA
Accent6.35:1AA
Destructive5.39:1AA
Dark mode
Text on background19.57:1AAA
Text on card19.57:1AAA
Primary button12.58:1AAA
Secondary button8.12:1AAA
Muted text7.72:1AAA
Accent8.12:1AAA
Destructive3.50:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 87.429);
  --foreground: oklch(0.1 0.014 93.83);
  --muted: oklch(0.93 0.01 87.474);
  --muted-foreground: oklch(0.477 0.03 87.558);
  --popover: oklch(0.994 0.002 87.429);
  --popover-foreground: oklch(0.1 0.014 93.83);
  --card: oklch(0.994 0.002 87.429);
  --card-foreground: oklch(0.1 0.014 93.83);
  --border: oklch(0.926 0.005 87.446);
  --input: oklch(0.926 0.005 87.446);
  --primary: oklch(0.857 0.155 84.372);
  --primary-foreground: oklch(0.15 0.031 94.413);
  --secondary: oklch(0.941 0.003 87.436);
  --secondary-foreground: oklch(0.446 0.014 87.544);
  --accent: oklch(0.941 0.003 87.436);
  --accent-foreground: oklch(0.446 0.014 87.544);
  --destructive: oklch(0.545 0.178 37.224);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.857 0.155 84.372);
  --chart-1: oklch(0.857 0.155 84.372);
  --chart-2: oklch(0.941 0.003 87.436);
  --chart-3: oklch(0.941 0.003 87.436);
  --chart-4: oklch(0.963 0.002 87.429);
  --chart-5: oklch(0.862 0.158 84.132);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.011 91.296);
  --foreground: oklch(0.993 0 87.422);
  --muted: oklch(0.225 0.014 87.558);
  --muted-foreground: oklch(0.751 0.027 87.556);
  --popover: oklch(0.139 0.011 91.296);
  --popover-foreground: oklch(0.993 0 87.422);
  --card: oklch(0.139 0.011 91.296);
  --card-foreground: oklch(0.993 0 87.422);
  --border: oklch(0.254 0.008 87.548);
  --input: oklch(0.254 0.008 87.548);
  --primary: oklch(0.857 0.155 84.372);
  --primary-foreground: oklch(0.15 0.031 94.413);
  --secondary: oklch(0.295 0.007 87.523);
  --secondary-foreground: oklch(0.826 0.007 87.464);
  --accent: oklch(0.295 0.007 87.523);
  --accent-foreground: oklch(0.826 0.007 87.464);
  --destructive: oklch(0.654 0.217 36.8);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.857 0.155 84.372);
  --chart-1: oklch(0.857 0.155 84.372);
  --chart-2: oklch(0.295 0.007 87.523);
  --chart-3: oklch(0.295 0.007 87.523);
  --chart-4: oklch(0.326 0.008 87.526);
  --chart-5: oklch(0.862 0.158 84.132);
}