Warlike for shadcn/ui

Warlike is a shadcn/ui theme built around a vivid purple primary color (#ef6af6) with vivid pink accents (#f66ab7). The light mode uses a neutral background (#fefbfe). Dark mode keeps the vivid purple primary (#ef6af6) on a neutral background (#040104).

Color palette

TokenLightDark
Background
#fefbfewhite
#040104black
Foreground
#100411black
#ffffffwhite
Card
#fefbfewhite
#040104black
Card foreground
#100411black
#ffffffwhite
Popover
#fefbfewhite
#040104black
Popover foreground
#100411black
#ffffffwhite
Primary
#ef6af6violet
#ef6af6violet
Primary foreground
#29032bblack
#29032bblack
Secondary
#a96af6mediumpurple
#a96af6mediumpurple
Secondary foreground
#000000black
#000000black
Muted
#eae8edlavender
#141217black
Muted foreground
#5e5766dimgray
#a099a8darkgray
Accent
#f66ab7hotpink
#f66ab7hotpink
Accent foreground
#2b0319black
#2b0319black
Destructive
#92100cdarkred
#ef443etomato
Destructive foreground
#fcd6d5mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ef6af6violet
#ef6af6violet

Contrast

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

Light mode
Text on background19.51:1AAA
Text on card19.51:1AAA
Primary button7.05:1AAA
Secondary button6.06:1AA
Muted text5.69:1AA
Accent6.77:1AA
Destructive6.81:1AA
Dark mode
Text on background20.74:1AAA
Text on card20.74:1AAA
Primary button7.05:1AAA
Secondary button6.06:1AA
Muted text6.75:1AA
Accent6.77:1AA
Destructive3.77:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 324.156);
  --foreground: oklch(0.137 0.038 325.744);
  --muted: oklch(0.934 0.008 306.325);
  --muted-foreground: oklch(0.468 0.025 305.735);
  --popover: oklch(0.991 0.004 324.156);
  --popover-foreground: oklch(0.137 0.038 325.744);
  --card: oklch(0.991 0.004 324.156);
  --card-foreground: oklch(0.137 0.038 325.744);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.736 0.231 325.624);
  --primary-foreground: oklch(0.204 0.087 326.01);
  --secondary: oklch(0.655 0.204 301.779);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.718 0.19 348.821);
  --accent-foreground: oklch(0.196 0.074 351.228);
  --destructive: oklch(0.422 0.163 28.873);
  --destructive-foreground: oklch(0.907 0.042 20.302);
  --ring: oklch(0.736 0.231 325.624);
  --chart-1: oklch(0.736 0.231 325.624);
  --chart-2: oklch(0.655 0.204 301.779);
  --chart-3: oklch(0.718 0.19 348.821);
  --chart-4: oklch(0.686 0.186 302.564);
  --chart-5: oklch(0.737 0.237 325.651);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.017 325.552);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.186 0.011 305.658);
  --muted-foreground: oklch(0.694 0.023 306.004);
  --popover: oklch(0.087 0.017 325.552);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.087 0.017 325.552);
  --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.736 0.231 325.624);
  --primary-foreground: oklch(0.204 0.087 326.01);
  --secondary: oklch(0.655 0.204 301.779);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.718 0.19 348.821);
  --accent-foreground: oklch(0.196 0.074 351.228);
  --destructive: oklch(0.636 0.209 27.014);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.736 0.231 325.624);
  --chart-1: oklch(0.736 0.231 325.624);
  --chart-2: oklch(0.655 0.204 301.779);
  --chart-3: oklch(0.718 0.19 348.821);
  --chart-4: oklch(0.686 0.186 302.564);
  --chart-5: oklch(0.737 0.237 325.651);
}