Fight for shadcn/ui

Fight is a shadcn/ui theme built around a near-black primary color (#040302) with near-black accents (#030402). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the near-black primary (#040302) on an orange-tinted background (#0f0b05).

Color palette

TokenLightDark
Background
#fdfbf7snow
#0f0b05black
Foreground
#0c0804black
#fbfaf8snow
Card
#fdfbf7snow
#0f0b05black
Card foreground
#0c0804black
#fbfaf8snow
Popover
#fdfbf7snow
#0f0b05black
Popover foreground
#0c0804black
#fbfaf8snow
Primary
#040302black
#040302black
Primary foreground
#c3a474darkkhaki
#c3a474darkkhaki
Secondary
#040202black
#040202black
Secondary foreground
#c37c74rosybrown
#c37c74rosybrown
Muted
#f4e8e7linen
#180d0bblack
Muted foreground
#6c5856dimgray
#a99693rosybrown
Accent
#030402black
#030402black
Accent foreground
#8a923folivedrab
#8a923folivedrab
Destructive
#833007saddlebrown
#f57738tomato
Destructive foreground
#fcd4c0peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#040302black
#040302black

Contrast

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

Light mode
Text on background19.24:1AAA
Text on card19.24:1AAA
Primary button8.73:1AAA
Secondary button6.37:1AA
Muted text5.52:1AA
Accent6.13:1AA
Destructive6.40:1AA
Dark mode
Text on background18.77:1AAA
Text on card18.77:1AAA
Primary button8.73:1AAA
Secondary button6.37:1AA
Muted text6.78:1AA
Accent6.13:1AA
Destructive7.56:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.005 78.295);
  --foreground: oklch(0.139 0.015 84.429);
  --muted: oklch(0.94 0.013 25.108);
  --muted-foreground: oklch(0.48 0.026 25.513);
  --popover: oklch(0.987 0.005 78.295);
  --popover-foreground: oklch(0.139 0.015 84.429);
  --card: oklch(0.987 0.005 78.295);
  --card-foreground: oklch(0.139 0.015 84.429);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.095 0.008 83.311);
  --primary-foreground: oklch(0.734 0.074 77.318);
  --secondary: oklch(0.087 0.009 28.185);
  --secondary-foreground: oklch(0.659 0.091 26.685);
  --accent: oklch(0.1 0.01 112.043);
  --accent-foreground: oklch(0.636 0.108 114.267);
  --destructive: oklch(0.424 0.123 41.78);
  --destructive-foreground: oklch(0.898 0.052 48.117);
  --ring: oklch(0.095 0.008 83.311);
  --chart-1: oklch(0.095 0.008 83.311);
  --chart-2: oklch(0.087 0.009 28.185);
  --chart-3: oklch(0.1 0.01 112.043);
  --chart-4: oklch(0.139 0.014 27.743);
  --chart-5: oklch(0.095 0.008 83.666);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.016 81.007);
  --foreground: oklch(0.986 0.003 78.304);
  --muted: oklch(0.174 0.021 26.42);
  --muted-foreground: oklch(0.688 0.023 25.298);
  --popover: oklch(0.154 0.016 81.007);
  --popover-foreground: oklch(0.986 0.003 78.304);
  --card: oklch(0.154 0.016 81.007);
  --card-foreground: oklch(0.986 0.003 78.304);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.095 0.008 83.311);
  --primary-foreground: oklch(0.734 0.074 77.318);
  --secondary: oklch(0.087 0.009 28.185);
  --secondary-foreground: oklch(0.659 0.091 26.685);
  --accent: oklch(0.1 0.01 112.043);
  --accent-foreground: oklch(0.636 0.108 114.267);
  --destructive: oklch(0.706 0.171 44.647);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.095 0.008 83.311);
  --chart-1: oklch(0.095 0.008 83.311);
  --chart-2: oklch(0.087 0.009 28.185);
  --chart-3: oklch(0.1 0.01 112.043);
  --chart-4: oklch(0.139 0.014 27.743);
  --chart-5: oklch(0.095 0.008 83.666);
}