Fight for shadcn/ui

Fight is a shadcn/ui theme built around a green primary color (#76973b) with green accents (#48973b). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the green primary (#76973b) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfdf7snow
#000000black
Foreground
#090d03black
#fafbf9snow
Card
#f9fbf3floralwhite
#030303black
Card foreground
#060902black
#fdfdfcwhite
Popover
#f9fbf3floralwhite
#030303black
Popover foreground
#060902black
#fdfdfcwhite
Primary
#76973bolivedrab
#76973bolivedrab
Primary foreground
#030401black
#030401black
Secondary
#97893bolivedrab
#97893bolivedrab
Secondary foreground
#000000black
#000000black
Muted
#f1f1eewhitesmoke
#11100eblack
Muted foreground
#4f4c3bdarkolivegreen
#c4c1b0silver
Accent
#48973bseagreen
#48973bseagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#be4313firebrick
#e35116chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#76973bolivedrab
#76973bolivedrab

Contrast

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

Light mode
Text on background19.09:1AAA
Text on card19.24:1AAA
Primary button6.10:1AA
Secondary button5.93:1AA
Muted text7.61:1AAA
Accent3.65:1AA Large
Destructive5.22:1AA
Dark mode
Text on background20.23:1AAA
Text on card20.31:1AAA
Primary button6.10:1AA
Secondary button5.93:1AA
Muted text10.50:1AAA
Accent3.65:1AA Large
Destructive3.84:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.007 122.33);
  --foreground: oklch(0.15 0.026 122.212);
  --muted: oklch(0.957 0.003 98.359);
  --muted-foreground: oklch(0.415 0.028 99.143);
  --popover: oklch(0.985 0.011 122.39);
  --popover-foreground: oklch(0.13 0.022 121.714);
  --card: oklch(0.985 0.011 122.39);
  --card-foreground: oklch(0.13 0.022 121.714);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.631 0.125 126.053);
  --primary-foreground: oklch(0.1 0.012 121.863);
  --secondary: oklch(0.626 0.1 99.378);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.605 0.15 140.771);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.55 0.167 38.777);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.631 0.125 126.053);
  --chart-1: oklch(0.631 0.125 126.053);
  --chart-2: oklch(0.626 0.1 99.378);
  --chart-3: oklch(0.605 0.15 140.771);
  --chart-4: oklch(0.659 0.106 99.37);
  --chart-5: oklch(0.639 0.132 126.295);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.987 0.004 122.271);
  --muted: oklch(0.173 0.004 98.651);
  --muted-foreground: oklch(0.81 0.024 98.721);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.994 0.002 122.242);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.994 0.002 122.242);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.631 0.125 126.053);
  --primary-foreground: oklch(0.1 0.012 121.863);
  --secondary: oklch(0.626 0.1 99.378);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.605 0.15 140.771);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.627 0.193 38.564);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.631 0.125 126.053);
  --chart-1: oklch(0.631 0.125 126.053);
  --chart-2: oklch(0.626 0.1 99.378);
  --chart-3: oklch(0.605 0.15 140.771);
  --chart-4: oklch(0.659 0.106 99.37);
  --chart-5: oklch(0.639 0.132 126.295);
}