Violent for shadcn/ui

Violent is a shadcn/ui theme built around a deep violet primary color (#130e20) with deep green accents (#1b200e). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep violet primary (#130e20) on a neutral background (#040307).

Color palette

TokenLightDark
Background
#ffffffwhite
#040307black
Foreground
#070410black
#f9f8fbghostwhite
Card
#ffffffwhite
#040307black
Card foreground
#070410black
#f9f8fbghostwhite
Popover
#ffffffwhite
#040307black
Popover foreground
#070410black
#f9f8fbghostwhite
Primary
#130e20black
#130e20black
Primary foreground
#a292cemediumpurple
#a292cemediumpurple
Secondary
#1b200eblack
#1b200eblack
Secondary foreground
#93ac4dyellowgreen
#93ac4dyellowgreen
Muted
#f3f3f1whitesmoke
#0d0e0cblack
Muted foreground
#616558dimgray
#a4a79adarkgray
Accent
#1b200eblack
#1b200eblack
Accent foreground
#93ac4dyellowgreen
#93ac4dyellowgreen
Destructive
#7a2701saddlebrown
#f95001orangered
Destructive foreground
#ffc7aepeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#130e20black
#130e20black

Contrast

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

Light mode
Text on background20.31:1AAA
Text on card20.31:1AAA
Primary button6.77:1AA
Secondary button6.56:1AA
Muted text5.38:1AA
Accent6.56:1AA
Destructive6.63:1AA
Dark mode
Text on background19.40:1AAA
Text on card19.40:1AAA
Primary button6.77:1AA
Secondary button6.56:1AA
Muted text7.91:1AAA
Accent6.56:1AA
Destructive3.41:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.123 0.031 296.978);
  --muted: oklch(0.963 0.002 118.604);
  --muted-foreground: oklch(0.499 0.021 119.3);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.123 0.031 296.978);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.123 0.031 296.978);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.181 0.035 294.87);
  --primary-foreground: oklch(0.696 0.088 296.274);
  --secondary: oklch(0.232 0.032 121.119);
  --secondary-foreground: oklch(0.706 0.125 122.095);
  --accent: oklch(0.232 0.032 121.119);
  --accent-foreground: oklch(0.706 0.125 122.095);
  --destructive: oklch(0.395 0.123 40.152);
  --destructive-foreground: oklch(0.873 0.072 46.086);
  --ring: oklch(0.181 0.035 294.87);
  --chart-1: oklch(0.181 0.035 294.87);
  --chart-2: oklch(0.232 0.032 121.119);
  --chart-3: oklch(0.232 0.032 121.119);
  --chart-4: oklch(0.273 0.04 121.353);
  --chart-5: oklch(0.179 0.038 294.5);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.106 0.013 298.489);
  --foreground: oklch(0.982 0.004 298.491);
  --muted: oklch(0.16 0.003 118.918);
  --muted-foreground: oklch(0.723 0.019 119.029);
  --popover: oklch(0.106 0.013 298.489);
  --popover-foreground: oklch(0.982 0.004 298.491);
  --card: oklch(0.106 0.013 298.489);
  --card-foreground: oklch(0.982 0.004 298.491);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.181 0.035 294.87);
  --primary-foreground: oklch(0.696 0.088 296.274);
  --secondary: oklch(0.232 0.032 121.119);
  --secondary-foreground: oklch(0.706 0.125 122.095);
  --accent: oklch(0.232 0.032 121.119);
  --accent-foreground: oklch(0.706 0.125 122.095);
  --destructive: oklch(0.66 0.216 37.989);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.181 0.035 294.87);
  --chart-1: oklch(0.181 0.035 294.87);
  --chart-2: oklch(0.232 0.032 121.119);
  --chart-3: oklch(0.232 0.032 121.119);
  --chart-4: oklch(0.273 0.04 121.353);
  --chart-5: oklch(0.179 0.038 294.5);
}