Offensive is a shadcn/ui theme built around a near-black primary color (#000f0f) with near-black accents (#0f0000). The light mode uses a neutral background (#f8fbfb). Dark mode keeps the near-black primary (#000f0f) on a neutral background (#010404).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fbfbghostwhite | #010404black |
| Foreground | #020d0dblack | #ffffffwhite |
| Card | #f5fafamintcream | #020808black |
| Card foreground | #010909black | #ffffffwhite |
| Popover | #f5fafamintcream | #020808black |
| Popover foreground | #010909black | #ffffffwhite |
| Primary | #000f0fblack | #000f0fblack |
| Primary foreground | #03d4d8darkturquoise | #03d4d8darkturquoise |
| Secondary | #0f0000black | #0f0000black |
| Secondary foreground | #fc4845tomato | #fc4845tomato |
| Muted | #e5d2d2gainsboro | #2d1a1ablack |
| Muted foreground | #404040darkslategray | #bfbfbfsilver |
| Accent | #0f0000black | #0f0000black |
| Accent foreground | #fc4845tomato | #fc4845tomato |
| Destructive | #95210fbrown | #eb4b33tomato |
| Destructive foreground | #fbdedamistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #000f0fblack | #000f0fblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.99:1 | AAA |
| Text on card | 19.03:1 | AAA |
| Primary button | 10.62:1 | AAA |
| Secondary button | 6.01:1 | AA |
| Muted text | 7.14:1 | AAA |
| Accent | 6.01:1 | AA |
| Destructive | 6.65:1 | AA |
| Text on background | 20.58:1 | AAA |
| Text on card | 20.17:1 | AAA |
| Primary button | 10.62:1 | AAA |
| Secondary button | 6.01:1 | AA |
| Muted text | 8.92:1 | AAA |
| Accent | 6.01:1 | AA |
| Destructive | 3.75:1 | AA Large |
Paste this into your globals.css to use Offensive in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.003 198.314);
--foreground: oklch(0.148 0.021 196.326);
--muted: oklch(0.879 0.021 18.737);
--muted-foreground: oklch(0.371 0 168.69);
--popover: oklch(0.98 0.005 198.289);
--popover-foreground: oklch(0.128 0.018 196.168);
--card: oklch(0.98 0.005 198.289);
--card-foreground: oklch(0.128 0.018 196.168);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.152 0.025 196.013);
--primary-foreground: oklch(0.79 0.134 196.93);
--secondary: oklch(0.109 0.041 29.749);
--secondary-foreground: oklch(0.663 0.217 26.16);
--accent: oklch(0.109 0.041 29.749);
--accent-foreground: oklch(0.663 0.217 26.16);
--destructive: oklch(0.439 0.154 31.628);
--destructive-foreground: oklch(0.924 0.033 28.153);
--ring: oklch(0.152 0.025 196.013);
--chart-1: oklch(0.152 0.025 196.013);
--chart-2: oklch(0.109 0.041 29.749);
--chart-3: oklch(0.109 0.041 29.749);
--chart-4: oklch(0.151 0.058 29.586);
--chart-5: oklch(0.153 0.026 195.974);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.011 196.576);
--foreground: oklch(1 0 180);
--muted: oklch(0.244 0.03 20.575);
--muted-foreground: oklch(0.805 0 169.695);
--popover: oklch(0.125 0.014 196.576);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.125 0.014 196.576);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.152 0.025 196.013);
--primary-foreground: oklch(0.79 0.134 196.93);
--secondary: oklch(0.109 0.041 29.749);
--secondary-foreground: oklch(0.663 0.217 26.16);
--accent: oklch(0.109 0.041 29.749);
--accent-foreground: oklch(0.663 0.217 26.16);
--destructive: oklch(0.635 0.2 31.56);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.152 0.025 196.013);
--chart-1: oklch(0.152 0.025 196.013);
--chart-2: oklch(0.109 0.041 29.749);
--chart-3: oklch(0.109 0.041 29.749);
--chart-4: oklch(0.151 0.058 29.586);
--chart-5: oklch(0.153 0.026 195.974);
}