Fight is a shadcn/ui theme built around an indigo primary color (#3133af) with green accents (#33af31). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#3133af) on an indigo-tinted background (#05050b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #05050bblack |
| Foreground | #000000black | #f5f5fawhitesmoke |
| Card | #fcfcfcsnow | #06060eblack |
| Card foreground | #000000black | #f8f8fcghostwhite |
| Popover | #fcfcfcsnow | #06060eblack |
| Popover foreground | #000000black | #f8f8fcghostwhite |
| Primary | #3133afdarkslateblue | #3133afdarkslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #af3133brown | #af3133brown |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eee7e7linen | #181111black |
| Muted foreground | #493737darkslategray | #c8b6b7silver |
| Accent | #33af31limegreen | #33af31limegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #a23811saddlebrown | #eb6b3dtomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3133afdarkslateblue | #3133afdarkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 9.40:1 | AAA |
| Secondary button | 6.32:1 | AA |
| Muted text | 9.14:1 | AAA |
| Accent | 2.86:1 | Fail |
| Destructive | 6.79:1 | AA |
| Text on background | 18.73:1 | AAA |
| Text on card | 19.02:1 | AAA |
| Primary button | 9.40:1 | AAA |
| Secondary button | 6.32:1 | AA |
| Muted text | 9.61:1 | AAA |
| Accent | 2.86:1 | Fail |
| Destructive | 6.70:1 | AA |
Paste this into your globals.css to use Fight in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.934 0.008 16.116);
--muted-foreground: oklch(0.356 0.026 17.313);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.412 0.19 273.507);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.507 0.162 24.25);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.662 0.196 142.768);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.487 0.148 38.066);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.412 0.19 273.507);
--chart-1: oklch(0.412 0.19 273.507);
--chart-2: oklch(0.507 0.162 24.25);
--chart-3: oklch(0.662 0.196 142.768);
--chart-4: oklch(0.532 0.171 24.32);
--chart-5: oklch(0.408 0.199 272.585);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.117 0.016 282.666);
--foreground: oklch(0.971 0.007 285.484);
--muted: oklch(0.186 0.012 17.128);
--muted-foreground: oklch(0.792 0.02 16.435);
--popover: oklch(0.129 0.018 282.568);
--popover-foreground: oklch(0.98 0.005 285.53);
--card: oklch(0.129 0.018 282.568);
--card-foreground: oklch(0.98 0.005 285.53);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.412 0.19 273.507);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.507 0.162 24.25);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.662 0.196 142.768);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.676 0.169 39.744);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.412 0.19 273.507);
--chart-1: oklch(0.412 0.19 273.507);
--chart-2: oklch(0.507 0.162 24.25);
--chart-3: oklch(0.662 0.196 142.768);
--chart-4: oklch(0.532 0.171 24.32);
--chart-5: oklch(0.408 0.199 272.585);
}