Yellow for shadcn/ui

Yellow is a shadcn/ui theme built around a red primary color (#8d3030) with orange accents (#8d5e30). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#8d3030) on a neutral background (#070303).

Color palette

TokenLightDark
Background
#ffffffwhite
#070303black
Foreground
#160404black
#fbf9f9snow
Card
#ffffffwhite
#070303black
Card foreground
#160404black
#fbf9f9snow
Popover
#ffffffwhite
#070303black
Popover foreground
#160404black
#fbf9f9snow
Primary
#8d3030brown
#8d3030brown
Primary foreground
#fbf4f4lavenderblush
#fbf4f4lavenderblush
Secondary
#8d305ebrown
#8d305ebrown
Secondary foreground
#fbf4f7lavenderblush
#fbf4f7lavenderblush
Muted
#efe6eblinen
#191014black
Muted foreground
#66575edimgray
#a899a1darkgray
Accent
#8d5e30sienna
#8d5e30sienna
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#791f0bmaroon
#ea401aorangered
Destructive foreground
#f9c9bepink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8d3030brown
#8d3030brown

Contrast

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

Light mode
Text on background19.93:1AAA
Text on card19.93:1AAA
Primary button7.46:1AAA
Secondary button7.14:1AAA
Muted text5.55:1AA
Accent5.55:1AA
Destructive6.98:1AA
Dark mode
Text on background19.52:1AAA
Text on card19.52:1AAA
Primary button7.46:1AAA
Secondary button7.14:1AAA
Muted text6.88:1AA
Accent5.55:1AA
Destructive4.00:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.141 0.037 22.965);
  --muted: oklch(0.933 0.012 345.488);
  --muted-foreground: oklch(0.473 0.023 346.36);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.141 0.037 22.965);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.141 0.037 22.965);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.445 0.126 23.753);
  --primary-foreground: oklch(0.972 0.008 17.295);
  --secondary: oklch(0.458 0.134 352.747);
  --secondary-foreground: oklch(0.973 0.009 345.395);
  --accent: oklch(0.523 0.087 63.873);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.386 0.128 33.748);
  --destructive-foreground: oklch(0.874 0.057 32.83);
  --ring: oklch(0.445 0.126 23.753);
  --chart-1: oklch(0.445 0.126 23.753);
  --chart-2: oklch(0.458 0.134 352.747);
  --chart-3: oklch(0.523 0.087 63.873);
  --chart-4: oklch(0.484 0.143 352.826);
  --chart-5: oklch(0.446 0.133 24.256);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.01 18.726);
  --foreground: oklch(0.983 0.002 17.196);
  --muted: oklch(0.186 0.019 347.625);
  --muted-foreground: oklch(0.699 0.021 345.899);
  --popover: oklch(0.109 0.01 18.726);
  --popover-foreground: oklch(0.983 0.002 17.196);
  --card: oklch(0.109 0.01 18.726);
  --card-foreground: oklch(0.983 0.002 17.196);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.445 0.126 23.753);
  --primary-foreground: oklch(0.972 0.008 17.295);
  --secondary: oklch(0.458 0.134 352.747);
  --secondary-foreground: oklch(0.973 0.009 345.395);
  --accent: oklch(0.523 0.087 63.873);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.621 0.211 33.54);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.445 0.126 23.753);
  --chart-1: oklch(0.445 0.126 23.753);
  --chart-2: oklch(0.458 0.134 352.747);
  --chart-3: oklch(0.523 0.087 63.873);
  --chart-4: oklch(0.484 0.143 352.826);
  --chart-5: oklch(0.446 0.133 24.256);
}