Victim for shadcn/ui

Victim is a shadcn/ui theme built around a violet primary color (#ae9bca) with green accents (#b7ca9b). The light mode uses a neutral background (#faf8fc). Dark mode keeps the violet primary (#ae9bca) on a neutral background (#020104).

Color palette

TokenLightDark
Background
#faf8fcghostwhite
#020104black
Foreground
#0b0416black
#faf9fbghostwhite
Card
#f7f5fawhitesmoke
#050307black
Card foreground
#090312black
#fcfcfdwhite
Popover
#f7f5fawhitesmoke
#050307black
Popover foreground
#090312black
#fcfcfdwhite
Primary
#ae9bcadarkgray
#ae9bcadarkgray
Primary foreground
#181221black
#181221black
Secondary
#b7ca9btan
#b7ca9btan
Secondary foreground
#1b2112black
#1b2112black
Muted
#e1e2dfgainsboro
#1f201dblack
Muted foreground
#59624bdarkolivegreen
#abb49ddarkgray
Accent
#b7ca9btan
#b7ca9btan
Accent foreground
#1b2112black
#1b2112black
Destructive
#8b2304darkred
#e53a06orangered
Destructive foreground
#fdd1c3peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ae9bcadarkgray
#ae9bcadarkgray

Contrast

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

Light mode
Text on background19.07:1AAA
Text on card18.74:1AAA
Primary button7.25:1AAA
Secondary button9.39:1AAA
Muted text4.92:1AA
Accent9.39:1AAA
Destructive6.42:1AA
Dark mode
Text on background19.79:1AAA
Text on card20.05:1AAA
Primary button7.25:1AAA
Secondary button9.39:1AAA
Muted text7.59:1AAA
Accent9.39:1AAA
Destructive4.26:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 304.277);
  --foreground: oklch(0.132 0.044 301.797);
  --muted: oklch(0.911 0.004 124.413);
  --muted-foreground: oklch(0.482 0.037 125.474);
  --popover: oklch(0.973 0.007 304.242);
  --popover-foreground: oklch(0.121 0.038 303.696);
  --card: oklch(0.973 0.007 304.242);
  --card-foreground: oklch(0.121 0.038 303.696);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.722 0.071 302.93);
  --primary-foreground: oklch(0.197 0.032 301.907);
  --secondary: oklch(0.813 0.068 125.582);
  --secondary-foreground: oklch(0.238 0.03 126.305);
  --accent: oklch(0.813 0.068 125.582);
  --accent-foreground: oklch(0.238 0.03 126.305);
  --destructive: oklch(0.423 0.144 35.31);
  --destructive-foreground: oklch(0.895 0.054 37.592);
  --ring: oklch(0.722 0.071 302.93);
  --chart-1: oklch(0.722 0.071 302.93);
  --chart-2: oklch(0.813 0.068 125.582);
  --chart-3: oklch(0.813 0.068 125.582);
  --chart-4: oklch(0.832 0.061 125.423);
  --chart-5: oklch(0.718 0.078 302.779);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.083 0.014 305.149);
  --foreground: oklch(0.983 0.003 304.304);
  --muted: oklch(0.242 0.006 124.703);
  --muted-foreground: oklch(0.755 0.033 124.982);
  --popover: oklch(0.104 0.017 305.149);
  --popover-foreground: oklch(0.991 0.001 304.324);
  --card: oklch(0.104 0.017 305.149);
  --card-foreground: oklch(0.991 0.001 304.324);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.722 0.071 302.93);
  --primary-foreground: oklch(0.197 0.032 301.907);
  --secondary: oklch(0.813 0.068 125.582);
  --secondary-foreground: oklch(0.238 0.03 126.305);
  --accent: oklch(0.813 0.068 125.582);
  --accent-foreground: oklch(0.238 0.03 126.305);
  --destructive: oklch(0.606 0.213 34.396);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.722 0.071 302.93);
  --chart-1: oklch(0.722 0.071 302.93);
  --chart-2: oklch(0.813 0.068 125.582);
  --chart-3: oklch(0.813 0.068 125.582);
  --chart-4: oklch(0.832 0.061 125.423);
  --chart-5: oklch(0.718 0.078 302.779);
}