Eggplant for shadcn/ui

Eggplant is a shadcn/ui theme built around a light blue primary color (#bbcfdd) with light green accents (#cfddbb). The light mode uses a neutral background (#ffffff). Dark mode keeps the light blue primary (#bbcfdd) on a blue-tinted background (#040b10).

Color palette

TokenLightDark
Background
#ffffffwhite
#040b10black
Foreground
#010305black
#fcfdfdwhite
Card
#ffffffwhite
#040b10black
Card foreground
#010305black
#fcfdfdwhite
Popover
#ffffffwhite
#040b10black
Popover foreground
#010305black
#fcfdfdwhite
Primary
#bbcfddlightsteelblue
#bbcfddlightsteelblue
Primary foreground
#223644darkslategray
#223644darkslategray
Secondary
#ddbbcfthistle
#ddbbcfthistle
Secondary foreground
#442236darkslategray
#442236darkslategray
Muted
#ecdae5gainsboro
#25131eblack
Muted foreground
#745869dimgray
#a78b9crosybrown
Accent
#cfddbblightgrey
#cfddbblightgrey
Accent foreground
#364422darkslategray
#364422darkslategray
Destructive
#993000saddlebrown
#ff5b0forangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bbcfddlightsteelblue
#bbcfddlightsteelblue

Contrast

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

Light mode
Text on background20.65:1AAA
Text on card20.65:1AAA
Primary button7.81:1AAA
Secondary button7.89:1AAA
Muted text4.69:1AA
Accent7.35:1AAA
Destructive7.54:1AAA
Dark mode
Text on background19.39:1AAA
Text on card19.39:1AAA
Primary button7.81:1AAA
Secondary button7.89:1AAA
Muted text5.72:1AA
Accent7.35:1AAA
Destructive6.76:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.091 0.013 226.851);
  --muted: oklch(0.906 0.025 340.851);
  --muted-foreground: oklch(0.495 0.045 342.197);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.091 0.013 226.851);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.091 0.013 226.851);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.845 0.03 236.965);
  --primary-foreground: oklch(0.324 0.036 238.577);
  --secondary: oklch(0.827 0.048 341.507);
  --secondary-foreground: oklch(0.306 0.061 344.439);
  --accent: oklch(0.879 0.049 125.158);
  --accent-foreground: oklch(0.366 0.058 126.919);
  --destructive: oklch(0.463 0.148 39.195);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.845 0.03 236.965);
  --chart-1: oklch(0.845 0.03 236.965);
  --chart-2: oklch(0.827 0.048 341.507);
  --chart-3: oklch(0.879 0.049 125.158);
  --chart-4: oklch(0.853 0.041 341.281);
  --chart-5: oklch(0.845 0.032 237.015);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.145 0.017 233.809);
  --foreground: oklch(0.992 0.001 236.457);
  --muted: oklch(0.216 0.036 343.714);
  --muted-foreground: oklch(0.667 0.042 341.602);
  --popover: oklch(0.145 0.017 233.809);
  --popover-foreground: oklch(0.992 0.001 236.457);
  --card: oklch(0.145 0.017 233.809);
  --card-foreground: oklch(0.992 0.001 236.457);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.845 0.03 236.965);
  --primary-foreground: oklch(0.324 0.036 238.577);
  --secondary: oklch(0.827 0.048 341.507);
  --secondary-foreground: oklch(0.306 0.061 344.439);
  --accent: oklch(0.879 0.049 125.158);
  --accent-foreground: oklch(0.366 0.058 126.919);
  --destructive: oklch(0.683 0.212 39.528);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.845 0.03 236.965);
  --chart-1: oklch(0.845 0.03 236.965);
  --chart-2: oklch(0.827 0.048 341.507);
  --chart-3: oklch(0.879 0.049 125.158);
  --chart-4: oklch(0.853 0.041 341.281);
  --chart-5: oklch(0.845 0.032 237.015);
}