YELLOW for shadcn/ui

YELLOW is a shadcn/ui theme built around a light yellow primary color (#f2f3b4) with muted light yellow accents (#d0d1b8). The light mode uses a neutral background (#fefefb). Dark mode keeps the light yellow primary (#f2f3b4) on a neutral background (#040401).

Color palette

TokenLightDark
Background
#fefefbwhite
#040401black
Foreground
#000000black
#f8f8f6whitesmoke
Card
#fcfcf8snow
#080803black
Card foreground
#000000black
#fbfbf9snow
Popover
#fcfcf8snow
#080803black
Popover foreground
#000000black
#fbfbf9snow
Primary
#f2f3b4palegoldenrod
#f2f3b4palegoldenrod
Primary foreground
#0d0d02black
#0d0d02black
Secondary
#dbdcd1gainsboro
#2f2f22darkslategray
Secondary foreground
#454535darkslategray
#cbccb8silver
Muted
#e4e4d8gainsboro
#27271bblack
Muted foreground
#666666dimgray
#999999darkgray
Accent
#d0d1b8silver
#4f5030darkolivegreen
Accent foreground
#343422darkslategray
#e2e2cfgainsboro
Destructive
#781807maroon
#de2c0dorangered
Destructive foreground
#fbc1b7lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f2f3b4palegoldenrod
#f2f3b4palegoldenrod

Contrast

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

Light mode
Text on background20.71:1AAA
Text on card20.42:1AAA
Primary button16.95:1AAA
Secondary button7.01:1AAA
Muted text4.48:1AA Large
Accent8.11:1AAA
Destructive6.91:1AA
Dark mode
Text on background19.32:1AAA
Text on card19.41:1AAA
Primary button16.95:1AAA
Secondary button8.26:1AAA
Muted text5.26:1AA
Accent6.36:1AA
Destructive4.70:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 107.222);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.916 0.017 107.501);
  --muted-foreground: oklch(0.51 0 171.87);
  --popover: oklch(0.99 0.006 107.276);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.99 0.006 107.276);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.948 0.08 108.631);
  --primary-foreground: oklch(0.155 0.026 109.776);
  --secondary: oklch(0.89 0.014 107.46);
  --secondary-foreground: oklch(0.386 0.026 108.341);
  --accent: oklch(0.853 0.033 107.864);
  --accent-foreground: oklch(0.321 0.03 108.798);
  --destructive: oklch(0.376 0.133 32.226);
  --destructive-foreground: oklch(0.86 0.068 29.964);
  --ring: oklch(0.948 0.08 108.631);
  --chart-1: oklch(0.948 0.08 108.631);
  --chart-2: oklch(0.89 0.014 107.46);
  --chart-3: oklch(0.853 0.033 107.864);
  --chart-4: oklch(0.911 0.012 107.399);
  --chart-5: oklch(0.951 0.083 108.679);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.103 0.013 109.072);
  --foreground: oklch(0.98 0.003 107.222);
  --muted: oklch(0.27 0.022 108.59);
  --muted-foreground: oklch(0.683 0 180);
  --popover: oklch(0.129 0.016 109.072);
  --popover-foreground: oklch(0.987 0.002 107.204);
  --card: oklch(0.129 0.016 109.072);
  --card-foreground: oklch(0.987 0.002 107.204);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.948 0.08 108.631);
  --primary-foreground: oklch(0.155 0.026 109.776);
  --secondary: oklch(0.302 0.022 108.463);
  --secondary-foreground: oklch(0.838 0.027 107.738);
  --accent: oklch(0.421 0.049 109.14);
  --accent-foreground: oklch(0.908 0.026 107.674);
  --destructive: oklch(0.583 0.215 31.821);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.948 0.08 108.631);
  --chart-1: oklch(0.948 0.08 108.631);
  --chart-2: oklch(0.302 0.022 108.463);
  --chart-3: oklch(0.421 0.049 109.14);
  --chart-4: oklch(0.336 0.026 108.508);
  --chart-5: oklch(0.951 0.083 108.679);
}