Eggplant Tint Pinniped for shadcn/ui

Eggplant Tint Pinniped is a shadcn/ui theme built around a violet primary color (#521692) with green accents (#569216). The light mode uses a violet-tinted background (#e4e1e7). Dark mode keeps the violet primary (#521692) on a neutral background (#060606).

Color palette

TokenLightDark
Background
#e4e1e7gainsboro
#060606black
Foreground
#000000black
#ffffffwhite
Card
#faf6fdghostwhite
#000000black
Card foreground
#000000black
#ffffffwhite
Popover
#faf6fdghostwhite
#000000black
Popover foreground
#000000black
#ffffffwhite
Primary
#521692indigo
#521692indigo
Primary foreground
#ede0falavender
#ede0falavender
Secondary
#569216olivedrab
#569216olivedrab
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dbdfd7gainsboro
#242820darkslategray
Muted foreground
#42463fdarkslategray
#bdc0b9silver
Accent
#569216olivedrab
#569216olivedrab
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#8d0a07darkred
#f32420crimson
Destructive foreground
#fccbcapink
#ffffffwhite
Border
#e8e8e9lavender
#19191ablack
Input
#e8e8e9lavender
#19191ablack
Ring
#521692indigo
#521692indigo

Contrast

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

Light mode
Text on background16.27:1AAA
Text on card19.70:1AAA
Primary button8.80:1AAA
Secondary button3.78:1AA Large
Muted text7.15:1AAA
Accent3.78:1AA Large
Destructive6.70:1AA
Dark mode
Text on background20.27:1AAA
Text on card21.00:1AAA
Primary button8.80:1AAA
Secondary button3.78:1AA Large
Muted text8.18:1AAA
Accent3.78:1AA Large
Destructive4.12:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.915 0.009 307.677);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.899 0.011 127.937);
  --muted-foreground: oklch(0.387 0.012 128.149);
  --popover: oklch(0.979 0.01 307.669);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.979 0.01 307.669);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.93 0.001 307.773);
  --input: oklch(0.93 0.001 307.773);
  --primary: oklch(0.378 0.182 298.618);
  --primary-foreground: oklch(0.925 0.038 307.312);
  --secondary: oklch(0.597 0.161 133.2);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.597 0.161 133.2);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.407 0.161 28.828);
  --destructive-foreground: oklch(0.884 0.057 19.414);
  --ring: oklch(0.378 0.182 298.618);
  --chart-1: oklch(0.378 0.182 298.618);
  --chart-2: oklch(0.597 0.161 133.2);
  --chart-3: oklch(0.597 0.161 133.2);
  --chart-4: oklch(0.636 0.172 133.267);
  --chart-5: oklch(0.378 0.187 298.047);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0 171.254);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.269 0.015 128.47);
  --muted-foreground: oklch(0.803 0.01 127.933);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.214 0.002 307.674);
  --input: oklch(0.214 0.002 307.674);
  --primary: oklch(0.378 0.182 298.618);
  --primary-foreground: oklch(0.925 0.038 307.312);
  --secondary: oklch(0.597 0.161 133.2);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.597 0.161 133.2);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.618 0.237 28.343);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.378 0.182 298.618);
  --chart-1: oklch(0.378 0.182 298.618);
  --chart-2: oklch(0.597 0.161 133.2);
  --chart-3: oklch(0.597 0.161 133.2);
  --chart-4: oklch(0.636 0.172 133.267);
  --chart-5: oklch(0.378 0.187 298.047);
}