Ghost Pokemon for shadcn/ui

Ghost Pokemon is a shadcn/ui theme built around a violet primary color (#8b66cc) with blue accents (#5ca9d6). The light mode uses a violet-tinted background (#f1eef7). Dark mode keeps the violet primary (#7d53c6) on a violet-tinted background (#171122).

Color palette

TokenLightDark
Background
#f1eef7whitesmoke
#171122black
Foreground
#262626darkslategray
#cccccclightgrey
Card
#eeeaf5lavender
#191226black
Card foreground
#292929darkslategray
#c9c9c9silver
Popover
#f4f1f8whitesmoke
#150f1fblack
Popover foreground
#242424darkslategray
#cfcfcflightgrey
Primary
#8b66ccmediumpurple
#7d53c6slateblue
Primary foreground
#efe7felavender
#efe7felavender
Secondary
#6966ccslateblue
#5753c6slateblue
Secondary foreground
#e8e7felavender
#e8e7felavender
Muted
#c9c2d6thistle
#3c334ddarkslategray
Muted foreground
#3c334ddarkslategray
#c9c2d6thistle
Accent
#5ca9d6cornflowerblue
#479fd1steelblue
Accent foreground
#e7f5fealiceblue
#e7f5fealiceblue
Destructive
#cc001bcrimson
#b30018firebrick
Destructive foreground
#ffe6e9mistyrose
#ffe6e9mistyrose
Border
#e4e0eblavender
#30293ddarkslategray
Input
#c9c2d6thistle
#483d5cdarkslategray
Ring
#6e40bfslateblue
#6e40bfslateblue

Contrast

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

Light mode
Text on background13.17:1AAA
Text on card12.32:1AAA
Primary button3.59:1AA Large
Secondary button3.94:1AA Large
Muted text6.86:1AA
Accent2.32:1Fail
Destructive4.95:1AA
Dark mode
Text on background11.49:1AAA
Text on card10.94:1AAA
Primary button4.47:1AA Large
Secondary button5.01:1AA
Muted text6.86:1AA
Accent2.65:1Fail
Destructive6.08:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.954 0.012 302.731);
  --foreground: oklch(0.27 0 180);
  --muted: oklch(0.826 0.029 302.388);
  --muted-foreground: oklch(0.342 0.045 300.86);
  --popover: oklch(0.963 0.01 302.768);
  --popover-foreground: oklch(0.259 0 167.471);
  --card: oklch(0.945 0.014 302.696);
  --card-foreground: oklch(0.28 0 180);
  --border: oklch(0.914 0.014 302.691);
  --input: oklch(0.826 0.029 302.388);
  --primary: oklch(0.594 0.153 298.559);
  --primary-foreground: oklch(0.941 0.032 302.412);
  --secondary: oklch(0.564 0.153 281.797);
  --secondary-foreground: oklch(0.935 0.031 287.317);
  --accent: oklch(0.704 0.101 236.047);
  --accent-foreground: oklch(0.963 0.019 232.868);
  --destructive: oklch(0.532 0.216 26.016);
  --destructive-foreground: oklch(0.945 0.028 8.476);
  --ring: oklch(0.497 0.189 295.513);
  --chart-1: oklch(0.594 0.153 298.559);
  --chart-2: oklch(0.564 0.153 281.797);
  --chart-3: oklch(0.704 0.101 236.047);
  --chart-4: oklch(0.597 0.141 282.762);
  --chart-5: oklch(0.59 0.162 298.216);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.194 0.036 299.925);
  --foreground: oklch(0.845 0 164.055);
  --muted: oklch(0.342 0.045 300.86);
  --muted-foreground: oklch(0.826 0.029 302.388);
  --popover: oklch(0.184 0.033 300.061);
  --popover-foreground: oklch(0.853 0 168.69);
  --card: oklch(0.203 0.039 299.804);
  --card-foreground: oklch(0.837 0 171.254);
  --border: oklch(0.298 0.038 300.961);
  --input: oklch(0.385 0.053 300.787);
  --primary: oklch(0.544 0.172 297.256);
  --primary-foreground: oklch(0.941 0.032 302.412);
  --secondary: oklch(0.51 0.174 279.78);
  --secondary-foreground: oklch(0.935 0.031 287.317);
  --accent: oklch(0.669 0.112 237.206);
  --accent-foreground: oklch(0.963 0.019 232.868);
  --destructive: oklch(0.482 0.196 25.72);
  --destructive-foreground: oklch(0.945 0.028 8.476);
  --ring: oklch(0.497 0.189 295.513);
  --chart-1: oklch(0.544 0.172 297.256);
  --chart-2: oklch(0.51 0.174 279.78);
  --chart-3: oklch(0.669 0.112 237.206);
  --chart-4: oklch(0.542 0.162 281.058);
  --chart-5: oklch(0.54 0.181 296.784);
}