Shocked for shadcn/ui

Shocked is a shadcn/ui theme built around a vivid purple primary color (#ef39ef) with vivid green accents (#39ef39). The light mode uses a neutral background (#fcf8fc). Dark mode keeps the vivid purple primary (#ef39ef) on a purple-tinted background (#0e070e).

Color palette

TokenLightDark
Background
#fcf8fcsnow
#0e070eblack
Foreground
#080308black
#fcf8fcsnow
Card
#fcf8fcsnow
#0e070eblack
Card foreground
#080308black
#fcf8fcsnow
Popover
#fcf8fcsnow
#0e070eblack
Popover foreground
#080308black
#fcf8fcsnow
Primary
#ef39efmagenta
#ef39efmagenta
Primary foreground
#000000black
#000000black
Secondary
#39ef39limegreen
#39ef39limegreen
Secondary foreground
#000000black
#000000black
Muted
#e8ede8linen
#121712black
Muted foreground
#535a53dimgray
#a5aca5darkgray
Accent
#39ef39limegreen
#39ef39limegreen
Accent foreground
#000000black
#000000black
Destructive
#a93a0fbrown
#e14e14chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ef39efmagenta
#ef39efmagenta

Contrast

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

Light mode
Text on background19.44:1AAA
Text on card19.44:1AAA
Primary button6.49:1AA
Secondary button13.57:1AAA
Muted text5.99:1AA
Accent13.57:1AAA
Destructive6.35:1AA
Dark mode
Text on background18.95:1AAA
Text on card18.95:1AAA
Primary button6.49:1AA
Secondary button13.57:1AAA
Muted text7.83:1AAA
Accent13.57:1AAA
Destructive3.95:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.006 325.625);
  --foreground: oklch(0.109 0.022 326.972);
  --muted: oklch(0.941 0.008 145.515);
  --muted-foreground: oklch(0.46 0.014 145.341);
  --popover: oklch(0.983 0.006 325.625);
  --popover-foreground: oklch(0.109 0.022 326.972);
  --card: oklch(0.983 0.006 325.625);
  --card-foreground: oklch(0.109 0.022 326.972);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.687 0.281 328.11);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.832 0.259 142.804);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.832 0.259 142.804);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.503 0.154 38.693);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.687 0.281 328.11);
  --chart-1: oklch(0.687 0.281 328.11);
  --chart-2: oklch(0.832 0.259 142.804);
  --chart-3: oklch(0.832 0.259 142.804);
  --chart-4: oklch(0.838 0.249 142.954);
  --chart-5: oklch(0.692 0.287 328.142);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.02 326.563);
  --foreground: oklch(0.983 0.006 325.62);
  --muted: oklch(0.196 0.011 145.132);
  --muted-foreground: oklch(0.736 0.013 145.447);
  --popover: oklch(0.141 0.02 326.563);
  --popover-foreground: oklch(0.983 0.006 325.62);
  --card: oklch(0.141 0.02 326.563);
  --card-foreground: oklch(0.983 0.006 325.62);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.687 0.281 328.11);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.832 0.259 142.804);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.832 0.259 142.804);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.62 0.193 38.313);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.687 0.281 328.11);
  --chart-1: oklch(0.687 0.281 328.11);
  --chart-2: oklch(0.832 0.259 142.804);
  --chart-3: oklch(0.832 0.259 142.804);
  --chart-4: oklch(0.838 0.249 142.954);
  --chart-5: oklch(0.692 0.287 328.142);
}