P. \ Eggplant for shadcn/ui

P. \ Eggplant is a shadcn/ui theme built around an orange primary color (#bd9051) with muted deep violet accents (#403055). The light mode uses a violet-tinted background (#1b1424). Dark mode keeps the orange primary (#bd9051) on a violet-tinted background (#1b1424).

Color palette

TokenLightDark
Background
#1b1424black
#1b1424black
Foreground
#ffd9bdpeachpuff
#ffd9bdpeachpuff
Card
#16111dblack
#16111dblack
Card foreground
#ffe8d6antiquewhite
#ffe8d6antiquewhite
Popover
#140f1ablack
#140f1ablack
Popover foreground
#fff6f0seashell
#fff6f0seashell
Primary
#bd9051peru
#bd9051peru
Primary foreground
#000000black
#000000black
Secondary
#53432ddarkolivegreen
#53432ddarkolivegreen
Secondary foreground
#e4dbcdgainsboro
#e4dbcdgainsboro
Muted
#26222bdarkslategray
#26222bdarkslategray
Muted foreground
#a49bb0darkgray
#a49bb0darkgray
Accent
#403055darkslategray
#403055darkslategray
Accent foreground
#dad1e5gainsboro
#dad1e5gainsboro
Destructive
#f6120ered
#f6120ered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#282130darkslategray
#282130darkslategray
Input
#2f2839darkslategray
#2f2839darkslategray
Ring
#bd9051peru
#bd9051peru

Contrast

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

Light mode
Text on background13.56:1AAA
Text on card15.72:1AAA
Primary button7.28:1AAA
Secondary button6.94:1AA
Muted text5.88:1AA
Accent8.05:1AAA
Destructive4.18:1AA Large
Dark mode
Text on background13.56:1AAA
Text on card15.72:1AAA
Primary button7.28:1AAA
Secondary button6.94:1AA
Muted text5.88:1AA
Accent8.05:1AAA
Destructive4.18:1AA Large

CSS variables

Paste this into your globals.css to use P. \ Eggplant in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.208 0.032 303.648);
  --foreground: oklch(0.911 0.057 59.387);
  --muted: oklch(0.259 0.018 304.821);
  --muted-foreground: oklch(0.704 0.032 305.127);
  --popover: oklch(0.179 0.024 303.909);
  --popover-foreground: oklch(0.979 0.013 60.104);
  --card: oklch(0.189 0.027 303.811);
  --card-foreground: oklch(0.945 0.035 59.775);
  --border: oklch(0.263 0.028 304.295);
  --input: oklch(0.292 0.033 304.228);
  --primary: oklch(0.683 0.097 74.21);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.393 0.041 75.44);
  --secondary-foreground: oklch(0.894 0.021 76.527);
  --accent: oklch(0.344 0.066 303.058);
  --accent-foreground: oklch(0.875 0.029 305.303);
  --destructive: oklch(0.615 0.247 29.032);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.683 0.097 74.21);
  --chart-1: oklch(0.683 0.097 74.21);
  --chart-2: oklch(0.393 0.041 75.44);
  --chart-3: oklch(0.344 0.066 303.058);
  --chart-4: oklch(0.425 0.045 75.398);
  --chart-5: oklch(0.688 0.103 73.889);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.208 0.032 303.648);
  --foreground: oklch(0.911 0.057 59.387);
  --muted: oklch(0.259 0.018 304.821);
  --muted-foreground: oklch(0.704 0.032 305.127);
  --popover: oklch(0.179 0.024 303.909);
  --popover-foreground: oklch(0.979 0.013 60.104);
  --card: oklch(0.189 0.027 303.811);
  --card-foreground: oklch(0.945 0.035 59.775);
  --border: oklch(0.263 0.028 304.295);
  --input: oklch(0.292 0.033 304.228);
  --primary: oklch(0.683 0.097 74.21);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.393 0.041 75.44);
  --secondary-foreground: oklch(0.894 0.021 76.527);
  --accent: oklch(0.344 0.066 303.058);
  --accent-foreground: oklch(0.875 0.029 305.303);
  --destructive: oklch(0.615 0.247 29.032);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.683 0.097 74.21);
  --chart-1: oklch(0.683 0.097 74.21);
  --chart-2: oklch(0.393 0.041 75.44);
  --chart-3: oklch(0.344 0.066 303.058);
  --chart-4: oklch(0.425 0.045 75.398);
  --chart-5: oklch(0.688 0.103 73.889);
}