Mulgore Mustard Perch for shadcn/ui

Mulgore Mustard Perch is a shadcn/ui theme built around a yellow primary color (#c1b22f) with muted yellow accents (#c9c6b1). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the yellow primary (#c1b22f) on a yellow-tinted background (#0b0b04).

Color palette

TokenLightDark
Background
#fdfcf7snow
#0b0b04black
Foreground
#111003black
#f9f9f5whitesmoke
Card
#fcfbf3floralwhite
#0f0e05black
Card foreground
#0d0c02black
#fbfbf9snow
Popover
#fdfcf7snow
#0b0b04black
Popover foreground
#111003black
#f9f9f5whitesmoke
Primary
#c1b22fgoldenrod
#c1b22fgoldenrod
Primary foreground
#1d1b07black
#1d1b07black
Secondary
#d3d2calightgrey
#333124darkslategray
Secondary foreground
#3b3a30darkslategray
#ceccbasilver
Muted
#e7e4cagainsboro
#353218darkslategray
Muted foreground
#4c4b3ddarkslategray
#c2c0b3silver
Accent
#c9c6b1silver
#46432adarkolivegreen
Accent foreground
#2a291ddarkslategray
#dddac6lightgrey
Destructive
#c23414firebrick
#ea5534tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e5e0gainsboro
#2a2923darkslategray
Input
#e5e5e0gainsboro
#2a2923darkslategray
Ring
#c1b22fgoldenrod
#c1b22fgoldenrod

Contrast

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

Light mode
Text on background18.60:1AAA
Text on card18.85:1AAA
Primary button8.00:1AAA
Secondary button7.57:1AAA
Muted text6.88:1AA
Accent8.51:1AAA
Destructive5.53:1AA
Dark mode
Text on background18.71:1AAA
Text on card18.63:1AAA
Primary button8.00:1AAA
Secondary button8.06:1AAA
Muted text7.10:1AAA
Accent7.08:1AAA
Destructive3.59:1AA Large

CSS variables

Paste this into your globals.css to use Mulgore Mustard Perch in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.007 101.394);
  --foreground: oklch(0.17 0.027 103.961);
  --muted: oklch(0.915 0.035 101.863);
  --muted-foreground: oklch(0.41 0.022 102.079);
  --popover: oklch(0.991 0.007 101.394);
  --popover-foreground: oklch(0.17 0.027 103.961);
  --card: oklch(0.986 0.01 101.447);
  --card-foreground: oklch(0.151 0.024 104.539);
  --border: oklch(0.921 0.006 101.392);
  --input: oklch(0.921 0.006 101.392);
  --primary: oklch(0.755 0.144 102.735);
  --primary-foreground: oklch(0.217 0.034 103.091);
  --secondary: oklch(0.863 0.012 101.503);
  --secondary-foreground: oklch(0.346 0.016 101.99);
  --accent: oklch(0.823 0.029 101.829);
  --accent-foreground: oklch(0.278 0.02 102.327);
  --destructive: oklch(0.54 0.183 33.563);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.755 0.144 102.735);
  --chart-1: oklch(0.755 0.144 102.735);
  --chart-2: oklch(0.863 0.012 101.503);
  --chart-3: oklch(0.823 0.029 101.829);
  --chart-4: oklch(0.885 0.01 101.464);
  --chart-5: oklch(0.764 0.148 102.656);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.146 0.017 103.921);
  --foreground: oklch(0.981 0.005 101.361);
  --muted: oklch(0.313 0.042 102.908);
  --muted-foreground: oklch(0.806 0.019 101.649);
  --popover: oklch(0.146 0.017 103.921);
  --popover-foreground: oklch(0.981 0.005 101.361);
  --card: oklch(0.163 0.02 103.348);
  --card-foreground: oklch(0.987 0.003 101.336);
  --border: oklch(0.279 0.011 101.886);
  --input: oklch(0.279 0.011 101.886);
  --primary: oklch(0.755 0.144 102.735);
  --primary-foreground: oklch(0.217 0.034 103.091);
  --secondary: oklch(0.311 0.023 102.322);
  --secondary-foreground: oklch(0.843 0.024 101.733);
  --accent: oklch(0.38 0.04 102.677);
  --accent-foreground: oklch(0.885 0.028 101.767);
  --destructive: oklch(0.645 0.19 34.117);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.755 0.144 102.735);
  --chart-1: oklch(0.755 0.144 102.735);
  --chart-2: oklch(0.311 0.023 102.322);
  --chart-3: oklch(0.38 0.04 102.677);
  --chart-4: oklch(0.345 0.026 102.351);
  --chart-5: oklch(0.764 0.148 102.656);
}