Warlike for shadcn/ui

Warlike is a shadcn/ui theme built around a muted light teal primary color (#c1dcd8) with muted light blue accents (#c1d3dc). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light teal primary (#c1dcd8) on a neutral background (#030707).

Color palette

TokenLightDark
Background
#ffffffwhite
#030707black
Foreground
#04100eblack
#f9fbfbghostwhite
Card
#ffffffwhite
#030707black
Card foreground
#04100eblack
#f9fbfbghostwhite
Popover
#ffffffwhite
#030707black
Popover foreground
#04100eblack
#f9fbfbghostwhite
Primary
#c1dcd8lightgrey
#c1dcd8lightgrey
Primary foreground
#274540darkslategray
#274540darkslategray
Secondary
#c1dccalightgrey
#c1dccalightgrey
Secondary foreground
#274531darkslategray
#274531darkslategray
Muted
#dbe1ddgainsboro
#1e2420black
Muted foreground
#545956dimgray
#a6aba7darkgray
Accent
#c1d3dclightgrey
#c1d3dclightgrey
Accent foreground
#273b45darkslategray
#273b45darkslategray
Destructive
#801505maroon
#f62d0eorangered
Destructive foreground
#fdc3balightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c1dcd8lightgrey
#c1dcd8lightgrey

Contrast

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

Light mode
Text on background19.34:1AAA
Text on card19.34:1AAA
Primary button7.21:1AAA
Secondary button7.25:1AAA
Muted text5.37:1AA
Accent7.57:1AAA
Destructive6.75:1AA
Dark mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button7.21:1AAA
Secondary button7.25:1AAA
Muted text6.76:1AA
Accent7.57:1AAA
Destructive3.95:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.161 0.02 183.019);
  --muted: oklch(0.904 0.008 157.076);
  --muted-foreground: oklch(0.459 0.009 156.88);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.161 0.02 183.019);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.161 0.02 183.019);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.874 0.029 184.547);
  --primary-foreground: oklch(0.363 0.037 182.39);
  --secondary: oklch(0.87 0.038 156.345);
  --secondary-foreground: oklch(0.359 0.05 153.942);
  --accent: oklch(0.856 0.023 229.131);
  --accent-foreground: oklch(0.338 0.031 230.484);
  --destructive: oklch(0.389 0.143 31.641);
  --destructive-foreground: oklch(0.866 0.068 28.534);
  --ring: oklch(0.874 0.029 184.547);
  --chart-1: oklch(0.874 0.029 184.547);
  --chart-2: oklch(0.87 0.038 156.345);
  --chart-3: oklch(0.856 0.023 229.131);
  --chart-4: oklch(0.89 0.032 156.517);
  --chart-5: oklch(0.876 0.033 184.454);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.011 185.176);
  --foreground: oklch(0.987 0.003 185.37);
  --muted: oklch(0.253 0.011 156.319);
  --muted-foreground: oklch(0.736 0.008 157.052);
  --popover: oklch(0.123 0.011 185.176);
  --popover-foreground: oklch(0.987 0.003 185.37);
  --card: oklch(0.123 0.011 185.176);
  --card-foreground: oklch(0.987 0.003 185.37);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.874 0.029 184.547);
  --primary-foreground: oklch(0.363 0.037 182.39);
  --secondary: oklch(0.87 0.038 156.345);
  --secondary-foreground: oklch(0.359 0.05 153.942);
  --accent: oklch(0.856 0.023 229.131);
  --accent-foreground: oklch(0.338 0.031 230.484);
  --destructive: oklch(0.627 0.236 31.265);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.874 0.029 184.547);
  --chart-1: oklch(0.874 0.029 184.547);
  --chart-2: oklch(0.87 0.038 156.345);
  --chart-3: oklch(0.856 0.023 229.131);
  --chart-4: oklch(0.89 0.032 156.517);
  --chart-5: oklch(0.876 0.033 184.454);
}