Ghee Yellow Pig for shadcn/ui

Ghee Yellow Pig is a shadcn/ui theme built around a yellow primary color (#dabc2b) with neutral gray accents (#d1cccc). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#dabc2b) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#ffffffwhite
#040301black
Foreground
#000000black
#f9f9f5whitesmoke
Card
#fcfcfcsnow
#080702black
Card foreground
#000000black
#fbfbf9snow
Popover
#ffffffwhite
#040301black
Popover foreground
#000000black
#f9f9f5whitesmoke
Primary
#dabc2bgoldenrod
#dabc2bgoldenrod
Primary foreground
#302908black
#302908black
Secondary
#dbdbdbgainsboro
#181716black
Secondary foreground
#424242darkslategray
#b2b2aedarkgray
Muted
#f1efefwhitesmoke
#10100eblack
Muted foreground
#484141darkslategray
#bebcb7silver
Accent
#d1cccclightgrey
#2f2e28darkslategray
Accent foreground
#393232darkslategray
#c9c7c0silver
Destructive
#bd3e14firebrick
#e74c18orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#f0f0efwhitesmoke
#201f1eblack
Input
#f0f0efwhitesmoke
#201f1eblack
Ring
#dabc2bgoldenrod
#dabc2bgoldenrod

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button7.76:1AAA
Secondary button7.27:1AAA
Muted text8.67:1AAA
Accent7.87:1AAA
Destructive5.42:1AA
Dark mode
Text on background19.49:1AAA
Text on card19.46:1AAA
Primary button7.76:1AAA
Secondary button8.39:1AAA
Muted text10.03:1AAA
Accent8.08:1AAA
Destructive3.86:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.953 0.002 17.192);
  --muted-foreground: oklch(0.384 0.009 17.571);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.955 0.001 97.274);
  --input: oklch(0.955 0.001 97.274);
  --primary: oklch(0.798 0.154 96.883);
  --primary-foreground: oklch(0.281 0.049 97.786);
  --secondary: oklch(0.892 0 180);
  --secondary-foreground: oklch(0.38 0 180);
  --accent: oklch(0.849 0.006 17.284);
  --accent-foreground: oklch(0.325 0.009 17.635);
  --destructive: oklch(0.542 0.17 36.911);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.798 0.154 96.883);
  --chart-1: oklch(0.798 0.154 96.883);
  --chart-2: oklch(0.892 0 180);
  --chart-3: oklch(0.849 0.006 17.284);
  --chart-4: oklch(0.916 0 180);
  --chart-5: oklch(0.807 0.157 96.684);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.101 0.012 101.028);
  --foreground: oklch(0.981 0.004 97.32);
  --muted: oklch(0.172 0.003 97.497);
  --muted-foreground: oklch(0.796 0.008 97.394);
  --popover: oklch(0.101 0.012 101.028);
  --popover-foreground: oklch(0.981 0.004 97.32);
  --card: oklch(0.127 0.015 101.028);
  --card-foreground: oklch(0.987 0.003 97.3);
  --border: oklch(0.24 0.003 97.419);
  --input: oklch(0.24 0.003 97.419);
  --primary: oklch(0.798 0.154 96.883);
  --primary-foreground: oklch(0.281 0.049 97.786);
  --secondary: oklch(0.206 0.002 97.405);
  --secondary-foreground: oklch(0.762 0.006 97.358);
  --accent: oklch(0.299 0.01 97.69);
  --accent-foreground: oklch(0.83 0.011 97.432);
  --destructive: oklch(0.627 0.2 36.722);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.798 0.154 96.883);
  --chart-1: oklch(0.798 0.154 96.883);
  --chart-2: oklch(0.206 0.002 97.405);
  --chart-3: oklch(0.299 0.01 97.69);
  --chart-4: oklch(0.24 0.003 97.419);
  --chart-5: oklch(0.807 0.157 96.684);
}