Yellow for shadcn/ui

Yellow is a shadcn/ui theme built around a vivid deep red primary color (#5d1004) with vivid deep cyan accents (#04515d). The light mode uses a neutral background (#fefbfb). Dark mode keeps the vivid deep red primary (#5d1004) on a red-tinted background (#0c0504).

Color palette

TokenLightDark
Background
#fefbfbsnow
#0c0504black
Foreground
#0f0605black
#fbf9f9snow
Card
#fdf8f7snow
#0f0605black
Card foreground
#0b0504black
#fdfcfcsnow
Popover
#fdf8f7snow
#0f0605black
Popover foreground
#0b0504black
#fdfcfcsnow
Primary
#5d1004maroon
#5d1004maroon
Primary foreground
#faa699lightsalmon
#faa699lightsalmon
Secondary
#04515ddarkslategray
#04515ddarkslategray
Secondary foreground
#99edfapaleturquoise
#99edfapaleturquoise
Muted
#d1dee0gainsboro
#1f2c2edarkslategray
Muted foreground
#404444darkslategray
#bbbebfsilver
Accent
#04515ddarkslategray
#04515ddarkslategray
Accent foreground
#99edfapaleturquoise
#99edfapaleturquoise
Destructive
#8a2e0fsaddlebrown
#e9653atomato
Destructive foreground
#fadbd1bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5d1004maroon
#5d1004maroon

Contrast

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

Light mode
Text on background19.49:1AAA
Text on card19.16:1AAA
Primary button7.14:1AAA
Secondary button6.79:1AA
Muted text7.16:1AAA
Accent6.79:1AA
Destructive6.52:1AA
Dark mode
Text on background19.29:1AAA
Text on card19.51:1AAA
Primary button7.14:1AAA
Secondary button6.79:1AA
Muted text7.74:1AAA
Accent6.79:1AA
Destructive6.40:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 27.948);
  --foreground: oklch(0.139 0.018 31.942);
  --muted: oklch(0.892 0.014 207.874);
  --muted-foreground: oklch(0.383 0.005 207.884);
  --popover: oklch(0.982 0.006 27.964);
  --popover-foreground: oklch(0.125 0.015 32.66);
  --card: oklch(0.982 0.006 27.964);
  --card-foreground: oklch(0.125 0.015 32.66);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.312 0.111 32.052);
  --primary-foreground: oklch(0.804 0.103 29.104);
  --secondary: oklch(0.399 0.068 211.861);
  --secondary-foreground: oklch(0.897 0.084 208.104);
  --accent: oklch(0.399 0.068 211.861);
  --accent-foreground: oklch(0.897 0.084 208.104);
  --destructive: oklch(0.433 0.131 37.344);
  --destructive-foreground: oklch(0.915 0.037 39.313);
  --ring: oklch(0.312 0.111 32.052);
  --chart-1: oklch(0.312 0.111 32.052);
  --chart-2: oklch(0.399 0.068 211.861);
  --chart-3: oklch(0.399 0.068 211.861);
  --chart-4: oklch(0.441 0.075 212.137);
  --chart-5: oklch(0.314 0.113 32.233);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.015 32.785);
  --foreground: oklch(0.984 0.002 27.942);
  --muted: oklch(0.281 0.018 207.877);
  --muted-foreground: oklch(0.799 0.004 207.912);
  --popover: oklch(0.138 0.018 32.061);
  --popover-foreground: oklch(0.992 0.001 27.938);
  --card: oklch(0.138 0.018 32.061);
  --card-foreground: oklch(0.992 0.001 27.938);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.312 0.111 32.052);
  --primary-foreground: oklch(0.804 0.103 29.104);
  --secondary: oklch(0.399 0.068 211.861);
  --secondary-foreground: oklch(0.897 0.084 208.104);
  --accent: oklch(0.399 0.068 211.861);
  --accent-foreground: oklch(0.897 0.084 208.104);
  --destructive: oklch(0.665 0.174 38.434);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.312 0.111 32.052);
  --chart-1: oklch(0.312 0.111 32.052);
  --chart-2: oklch(0.399 0.068 211.861);
  --chart-3: oklch(0.399 0.068 211.861);
  --chart-4: oklch(0.441 0.075 212.137);
  --chart-5: oklch(0.314 0.113 32.233);
}