Combative Tanzine for shadcn/ui

Combative Tanzine is a shadcn/ui theme built around a blue primary color (#7288da) with muted light blue accents (#c5c8d3). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the blue primary (#7288da) on a blue-tinted background (#06080e).

Color palette

TokenLightDark
Background
#fbfcfewhite
#06080eblack
Foreground
#000000black
#f9f9fbghostwhite
Card
#fbfcfewhite
#06080eblack
Card foreground
#000000black
#f9f9fbghostwhite
Popover
#fbfcfewhite
#06080eblack
Popover foreground
#000000black
#f9f9fbghostwhite
Primary
#7288dacornflowerblue
#7288dacornflowerblue
Primary foreground
#000000black
#ffffffwhite
Secondary
#dedfe3gainsboro
#22252fdarkslategray
Secondary foreground
#42444ddarkslategray
#b8bcccsilver
Muted
#e9eaeclavender
#131416black
Muted foreground
#42444ddarkslategray
#b2b4bdsilver
Accent
#c5c8d3lightgrey
#303750darkslategray
Accent foreground
#2c2f3adarkslategray
#cfd3e2lightgrey
Destructive
#941505darkred
#f8280dorangered
Destructive foreground
#fdd3cepink
#ffffffwhite
Border
#e9e9edlavender
#202227black
Input
#e9e9edlavender
#202227black
Ring
#7288dacornflowerblue
#7288dacornflowerblue

Contrast

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

Light mode
Text on background20.43:1AAA
Text on card20.43:1AAA
Primary button6.26:1AA
Secondary button7.28:1AAA
Muted text8.04:1AAA
Accent8.00:1AAA
Destructive6.46:1AA
Dark mode
Text on background19.05:1AAA
Text on card19.05:1AAA
Primary button3.35:1AA Large
Secondary button8.06:1AAA
Muted text8.93:1AAA
Accent7.90:1AAA
Destructive3.97:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 273.837);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.937 0.003 273.828);
  --muted-foreground: oklch(0.388 0.015 273.376);
  --popover: oklch(0.991 0.002 273.837);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.002 273.837);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.936 0.004 273.812);
  --input: oklch(0.936 0.004 273.812);
  --primary: oklch(0.646 0.124 270.89);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.904 0.005 273.798);
  --secondary-foreground: oklch(0.388 0.015 273.376);
  --accent: oklch(0.834 0.015 273.659);
  --accent-foreground: oklch(0.308 0.019 273.066);
  --destructive: oklch(0.429 0.163 31.018);
  --destructive-foreground: oklch(0.902 0.048 26.891);
  --ring: oklch(0.646 0.124 270.89);
  --chart-1: oklch(0.646 0.124 270.89);
  --chart-2: oklch(0.904 0.005 273.798);
  --chart-3: oklch(0.834 0.015 273.659);
  --chart-4: oklch(0.928 0.004 273.817);
  --chart-5: oklch(0.643 0.131 270.684);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.135 0.015 269.904);
  --foreground: oklch(0.983 0.002 273.844);
  --muted: oklch(0.19 0.005 273.577);
  --muted-foreground: oklch(0.772 0.013 273.67);
  --popover: oklch(0.135 0.015 269.904);
  --popover-foreground: oklch(0.983 0.002 273.844);
  --card: oklch(0.135 0.015 269.904);
  --card-foreground: oklch(0.983 0.002 273.844);
  --border: oklch(0.251 0.011 273.334);
  --input: oklch(0.251 0.011 273.334);
  --primary: oklch(0.646 0.124 270.89);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.267 0.02 272.902);
  --secondary-foreground: oklch(0.797 0.022 273.534);
  --accent: oklch(0.341 0.045 271.962);
  --accent-foreground: oklch(0.869 0.021 273.578);
  --destructive: oklch(0.627 0.24 30.791);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.646 0.124 270.89);
  --chart-1: oklch(0.646 0.124 270.89);
  --chart-2: oklch(0.267 0.02 272.902);
  --chart-3: oklch(0.341 0.045 271.962);
  --chart-4: oklch(0.295 0.023 272.853);
  --chart-5: oklch(0.643 0.131 270.684);
}