Offensive is a shadcn/ui theme built around a violet primary color (#463271) with green accents (#5d7132). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the violet primary (#463271) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #020203black |
| Foreground | #0a0515black | #f7f6f9whitesmoke |
| Card | #fcfbfewhite | #020203black |
| Card foreground | #0a0515black | #f7f6f9whitesmoke |
| Popover | #fcfbfewhite | #020203black |
| Popover foreground | #0a0515black | #f7f6f9whitesmoke |
| Primary | #463271darkslateblue | #463271darkslateblue |
| Primary foreground | #e8e3f3lavender | #e8e3f3lavender |
| Secondary | #5d7132darkolivegreen | #5d7132darkolivegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ecefe6linen | #161910black |
| Muted foreground | #4a4e41darkslategray | #babeb1silver |
| Accent | #5d7132darkolivegreen | #5d7132darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #911e0ddarkred | #eb3114orangered |
| Destructive foreground | #fbdad5mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #463271darkslateblue | #463271darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.50:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 8.55:1 | AAA |
| Secondary button | 5.39:1 | AA |
| Muted text | 7.37:1 | AAA |
| Accent | 5.39:1 | AA |
| Destructive | 6.68:1 | AA |
| Text on background | 19.28:1 | AAA |
| Text on card | 19.28:1 | AAA |
| Primary button | 8.55:1 | AAA |
| Secondary button | 5.39:1 | AA |
| Muted text | 9.37:1 | AAA |
| Accent | 5.39:1 | AA |
| Destructive | 4.22:1 | AA Large |
Paste this into your globals.css to use Offensive in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 300.712);
--foreground: oklch(0.134 0.037 297.963);
--muted: oklch(0.949 0.013 121.001);
--muted-foreground: oklch(0.415 0.021 121.627);
--popover: oklch(0.99 0.003 300.712);
--popover-foreground: oklch(0.134 0.037 297.963);
--card: oklch(0.99 0.003 300.712);
--card-foreground: oklch(0.134 0.037 297.963);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.373 0.106 295.413);
--primary-foreground: oklch(0.923 0.022 300.375);
--secondary: oklch(0.519 0.092 124.168);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.519 0.092 124.168);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.431 0.153 31.603);
--destructive-foreground: oklch(0.915 0.038 28.2);
--ring: oklch(0.373 0.106 295.413);
--chart-1: oklch(0.373 0.106 295.413);
--chart-2: oklch(0.519 0.092 124.168);
--chart-3: oklch(0.519 0.092 124.168);
--chart-4: oklch(0.553 0.099 124.207);
--chart-5: oklch(0.369 0.113 294.849);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.084 0.011 300.995);
--foreground: oklch(0.974 0.004 300.697);
--muted: oklch(0.208 0.019 122.334);
--muted-foreground: oklch(0.795 0.018 121.149);
--popover: oklch(0.084 0.011 300.995);
--popover-foreground: oklch(0.974 0.004 300.697);
--card: oklch(0.084 0.011 300.995);
--card-foreground: oklch(0.974 0.004 300.697);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.373 0.106 295.413);
--primary-foreground: oklch(0.923 0.022 300.375);
--secondary: oklch(0.519 0.092 124.168);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.519 0.092 124.168);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.609 0.223 31.48);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.373 0.106 295.413);
--chart-1: oklch(0.373 0.106 295.413);
--chart-2: oklch(0.519 0.092 124.168);
--chart-3: oklch(0.519 0.092 124.168);
--chart-4: oklch(0.553 0.099 124.207);
--chart-5: oklch(0.369 0.113 294.849);
}