Offensive is a shadcn/ui theme built around a deep green primary color (#17340f) with muted light green accents (#ced7cb). The light mode uses a neutral background (#fcfdfb). Dark mode keeps the deep green primary (#17340f) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfbsnow | #000000black |
| Foreground | #061203black | #ffffffwhite |
| Card | #fcfdfbsnow | #000000black |
| Card foreground | #061203black | #ffffffwhite |
| Popover | #fcfdfbsnow | #000000black |
| Popover foreground | #061203black | #ffffffwhite |
| Primary | #17340fdarkgreen | #17340fdarkgreen |
| Primary foreground | #61ca44limegreen | #61ca44limegreen |
| Secondary | #e2e4e2gainsboro | #1f261dblack |
| Secondary foreground | #484e46darkslategray | #b5c4b1silver |
| Muted | #e7e9e7lavender | #161816black |
| Muted foreground | #525252darkslategray | #adadaddarkgray |
| Accent | #ced7cblightgrey | #2b3a27darkslategray |
| Accent foreground | #343f31darkslategray | #c4d4bfsilver |
| Destructive | #8c0f08darkred | #d9170dfirebrick |
| Destructive foreground | #fccccapink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #17340fdarkgreen | #17340fdarkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.84:1 | AAA |
| Text on card | 18.84:1 | AAA |
| Primary button | 6.56:1 | AA |
| Secondary button | 6.71:1 | AA |
| Muted text | 6.41:1 | AA |
| Accent | 7.47:1 | AAA |
| Destructive | 6.70:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.56:1 | AA |
| Secondary button | 8.52:1 | AAA |
| Muted text | 7.94:1 | AAA |
| Accent | 7.80:1 | AAA |
| Destructive | 5.15:1 | AA |
Paste this into your globals.css to use Offensive in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 138.892);
--foreground: oklch(0.164 0.039 137.304);
--muted: oklch(0.933 0.004 138.892);
--muted-foreground: oklch(0.437 0 180);
--popover: oklch(0.994 0.003 138.892);
--popover-foreground: oklch(0.164 0.039 137.304);
--card: oklch(0.994 0.003 138.892);
--card-foreground: oklch(0.164 0.039 137.304);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.291 0.071 139.413);
--primary-foreground: oklch(0.75 0.197 139.584);
--secondary: oklch(0.917 0.004 138.892);
--secondary-foreground: oklch(0.415 0.014 138.905);
--accent: oklch(0.869 0.019 138.899);
--accent-foreground: oklch(0.354 0.029 138.935);
--destructive: oklch(0.408 0.158 29.356);
--destructive-foreground: oklch(0.887 0.054 21.745);
--ring: oklch(0.291 0.071 139.413);
--chart-1: oklch(0.291 0.071 139.413);
--chart-2: oklch(0.917 0.004 138.892);
--chart-3: oklch(0.869 0.019 138.899);
--chart-4: oklch(0.94 0.003 138.892);
--chart-5: oklch(0.294 0.074 139.474);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.207 0.005 138.901);
--muted-foreground: oklch(0.749 0 158.199);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.291 0.071 139.413);
--primary-foreground: oklch(0.75 0.197 139.584);
--secondary: oklch(0.257 0.02 138.931);
--secondary-foreground: oklch(0.803 0.031 138.907);
--accent: oklch(0.328 0.037 138.967);
--accent-foreground: oklch(0.851 0.033 138.907);
--destructive: oklch(0.562 0.222 29.458);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.291 0.071 139.413);
--chart-1: oklch(0.291 0.071 139.413);
--chart-2: oklch(0.257 0.02 138.931);
--chart-3: oklch(0.328 0.037 138.967);
--chart-4: oklch(0.291 0.024 138.935);
--chart-5: oklch(0.294 0.074 139.474);
}