Violent for shadcn/ui

Violent is a shadcn/ui theme built around a vivid light red primary color (#f9cdd8) with vivid light blue accents (#cdd8f9). The light mode uses a neutral background (#fdf7f8). Dark mode keeps the vivid light red primary (#f9cdd8) on a neutral background (#030202).

Color palette

TokenLightDark
Background
#fdf7f8snow
#030202black
Foreground
#080204black
#f8f6f7whitesmoke
Card
#fdf7f8snow
#030202black
Card foreground
#080204black
#f8f6f7whitesmoke
Popover
#fdf7f8snow
#030202black
Popover foreground
#080204black
#f8f6f7whitesmoke
Primary
#f9cdd8pink
#f9cdd8pink
Primary foreground
#850f2cbrown
#850f2cbrown
Secondary
#d8f9cdgainsboro
#d8f9cdgainsboro
Secondary foreground
#0e2905black
#0e2905black
Muted
#eef4ecwhitesmoke
#0d130bblack
Muted foreground
#3e4a3adarkslategray
#b9c5b5silver
Accent
#cdd8f9lavender
#cdd8f9lavender
Accent foreground
#0f2c85midnightblue
#0f2c85midnightblue
Destructive
#cb380bfirebrick
#f2420dorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f9cdd8pink
#f9cdd8pink

Contrast

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

Light mode
Text on background19.42:1AAA
Text on card19.42:1AAA
Primary button7.00:1AAA
Secondary button13.74:1AAA
Muted text8.34:1AAA
Accent8.57:1AAA
Destructive5.10:1AA
Dark mode
Text on background19.27:1AAA
Text on card19.27:1AAA
Primary button7.00:1AAA
Secondary button13.74:1AAA
Muted text10.48:1AAA
Accent8.57:1AAA
Destructive3.76:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.007 0.059);
  --foreground: oklch(0.105 0.018 359.79);
  --muted: oklch(0.959 0.012 137.785);
  --muted-foreground: oklch(0.394 0.03 137.908);
  --popover: oklch(0.981 0.007 0.059);
  --popover-foreground: oklch(0.105 0.018 359.79);
  --card: oklch(0.981 0.007 0.059);
  --card-foreground: oklch(0.105 0.018 359.79);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.889 0.053 1.486);
  --primary-foreground: oklch(0.4 0.149 15.031);
  --secondary: oklch(0.948 0.069 137.898);
  --secondary-foreground: oklch(0.251 0.07 138.698);
  --accent: oklch(0.884 0.048 270.823);
  --accent-foreground: oklch(0.341 0.152 264.771);
  --destructive: oklch(0.56 0.191 35.048);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.889 0.053 1.486);
  --chart-1: oklch(0.889 0.053 1.486);
  --chart-2: oklch(0.948 0.069 137.898);
  --chart-3: oklch(0.884 0.048 270.823);
  --chart-4: oklch(0.961 0.05 137.856);
  --chart-5: oklch(0.888 0.055 1.549);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.009 359.823);
  --foreground: oklch(0.976 0.002 359.93);
  --muted: oklch(0.179 0.018 137.971);
  --muted-foreground: oklch(0.809 0.026 137.818);
  --popover: oklch(0.087 0.009 359.823);
  --popover-foreground: oklch(0.976 0.002 359.93);
  --card: oklch(0.087 0.009 359.823);
  --card-foreground: oklch(0.976 0.002 359.93);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.889 0.053 1.486);
  --primary-foreground: oklch(0.4 0.149 15.031);
  --secondary: oklch(0.948 0.069 137.898);
  --secondary-foreground: oklch(0.251 0.07 138.698);
  --accent: oklch(0.884 0.048 270.823);
  --accent-foreground: oklch(0.341 0.152 264.771);
  --destructive: oklch(0.636 0.219 34.857);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.889 0.053 1.486);
  --chart-1: oklch(0.889 0.053 1.486);
  --chart-2: oklch(0.948 0.069 137.898);
  --chart-3: oklch(0.884 0.048 270.823);
  --chart-4: oklch(0.961 0.05 137.856);
  --chart-5: oklch(0.888 0.055 1.549);
}