Violence for shadcn/ui

Violence is a shadcn/ui theme built around a vivid orange primary color (#f4b18b) with vivid yellow accents (#f4e68b). The light mode uses a neutral background (#fefcfb). Dark mode keeps the vivid orange primary (#f4b18b) on an orange-tinted background (#0f0906).

Color palette

TokenLightDark
Background
#fefcfbsnow
#0f0906black
Foreground
#160a04black
#ffffffwhite
Card
#fdf9f6snow
#120b07black
Card foreground
#120803black
#ffffffwhite
Popover
#fefcfbsnow
#0f0906black
Popover foreground
#160a04black
#ffffffwhite
Primary
#f4b18bburlywood
#f4b18bburlywood
Primary foreground
#461e07maroon
#461e07maroon
Secondary
#f48b99lightcoral
#f48b99lightcoral
Secondary foreground
#46070fmaroon
#46070fmaroon
Muted
#efececlinen
#131011black
Muted foreground
#6d5054dimgray
#af9296rosybrown
Accent
#f4e68bkhaki
#f4e68bkhaki
Accent foreground
#463d07darkolivegreen
#463d07darkolivegreen
Destructive
#bb1111firebrick
#d71414crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f4b18bburlywood
#f4b18bburlywood

Contrast

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

Light mode
Text on background19.02:1AAA
Text on card18.90:1AAA
Primary button7.94:1AAA
Secondary button6.92:1AA
Muted text6.09:1AA
Accent8.53:1AAA
Destructive6.57:1AA
Dark mode
Text on background19.78:1AAA
Text on card19.47:1AAA
Primary button7.94:1AAA
Secondary button6.92:1AA
Muted text6.62:1AA
Accent8.53:1AAA
Destructive5.26:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.003 52.54);
  --foreground: oklch(0.161 0.026 56.32);
  --muted: oklch(0.945 0.003 7.83);
  --muted-foreground: oklch(0.463 0.038 9.769);
  --popover: oklch(0.992 0.003 52.54);
  --popover-foreground: oklch(0.161 0.026 56.32);
  --card: oklch(0.985 0.006 52.5);
  --card-foreground: oklch(0.147 0.023 59.775);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.814 0.093 51.069);
  --primary-foreground: oklch(0.288 0.069 47.313);
  --secondary: oklch(0.752 0.127 12.069);
  --secondary-foreground: oklch(0.257 0.092 20.087);
  --accent: oklch(0.915 0.113 100.652);
  --accent-foreground: oklch(0.359 0.07 99.882);
  --destructive: oklch(0.503 0.198 28.341);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.814 0.093 51.069);
  --chart-1: oklch(0.814 0.093 51.069);
  --chart-2: oklch(0.752 0.127 12.069);
  --chart-3: oklch(0.915 0.113 100.652);
  --chart-4: oklch(0.779 0.111 11.31);
  --chart-5: oklch(0.815 0.097 51.005);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.146 0.013 56.166);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.179 0.005 8.402);
  --muted-foreground: oklch(0.688 0.034 8.959);
  --popover: oklch(0.146 0.013 56.166);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.159 0.015 52.968);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.814 0.093 51.069);
  --primary-foreground: oklch(0.288 0.069 47.313);
  --secondary: oklch(0.752 0.127 12.069);
  --secondary-foreground: oklch(0.257 0.092 20.087);
  --accent: oklch(0.915 0.113 100.652);
  --accent-foreground: oklch(0.359 0.07 99.882);
  --destructive: oklch(0.557 0.22 28.437);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.814 0.093 51.069);
  --chart-1: oklch(0.814 0.093 51.069);
  --chart-2: oklch(0.752 0.127 12.069);
  --chart-3: oklch(0.915 0.113 100.652);
  --chart-4: oklch(0.779 0.111 11.31);
  --chart-5: oklch(0.815 0.097 51.005);
}