Aggression is a shadcn/ui theme built around a deep blue primary color (#184362) with deep green accents (#436218). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the deep blue primary (#184362) on a neutral background (#020608).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #020608black |
| Foreground | #03080dblack | #fcfdfdwhite |
| Card | #f8fafcghostwhite | #03080cblack |
| Card foreground | #020608black | #ffffffwhite |
| Popover | #f8fafcghostwhite | #03080cblack |
| Popover foreground | #020608black | #ffffffwhite |
| Primary | #184362darkslategray | #184362darkslategray |
| Primary foreground | #bedaefpowderblue | #bedaefpowderblue |
| Secondary | #621843indigo | #621843indigo |
| Secondary foreground | #efbedapink | #efbedapink |
| Muted | #f2e3eclinen | #1c0d16black |
| Muted foreground | #61565ddimgray | #a99ea4darkgray |
| Accent | #436218darkolivegreen | #436218darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #902f09saddlebrown | #f26831tomato |
| Destructive foreground | #fcdccfbisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #184362darkslategray | #184362darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.67:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 7.13:1 | AAA |
| Secondary button | 7.52:1 | AAA |
| Muted text | 5.67:1 | AA |
| Accent | 7.00:1 | AAA |
| Destructive | 6.26:1 | AA |
| Text on background | 19.99:1 | AAA |
| Text on card | 20.07:1 | AAA |
| Primary button | 7.13:1 | AAA |
| Secondary button | 7.52:1 | AAA |
| Muted text | 7.25:1 | AAA |
| Accent | 7.00:1 | AAA |
| Destructive | 6.77:1 | AA |
Paste this into your globals.css to use Aggression in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 238.391);
--foreground: oklch(0.131 0.016 231.19);
--muted: oklch(0.931 0.02 341.496);
--muted-foreground: oklch(0.467 0.017 341.863);
--popover: oklch(0.984 0.004 238.42);
--popover-foreground: oklch(0.114 0.014 230.092);
--card: oklch(0.984 0.004 238.42);
--card-foreground: oklch(0.114 0.014 230.092);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.37 0.071 243.148);
--primary-foreground: oklch(0.875 0.042 239.076);
--secondary: oklch(0.348 0.115 348.876);
--secondary-foreground: oklch(0.852 0.067 342.757);
--accent: oklch(0.456 0.106 129.564);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.446 0.138 38.47);
--destructive-foreground: oklch(0.917 0.04 42.8);
--ring: oklch(0.37 0.071 243.148);
--chart-1: oklch(0.37 0.071 243.148);
--chart-2: oklch(0.348 0.115 348.876);
--chart-3: oklch(0.456 0.106 129.564);
--chart-4: oklch(0.376 0.126 349.047);
--chart-5: oklch(0.371 0.074 243.512);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.114 0.013 230.807);
--foreground: oklch(0.992 0.001 238.379);
--muted: oklch(0.184 0.029 344.456);
--muted-foreground: oklch(0.71 0.016 341.521);
--popover: oklch(0.131 0.015 231.636);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.131 0.015 231.636);
--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.37 0.071 243.148);
--primary-foreground: oklch(0.875 0.042 239.076);
--secondary: oklch(0.348 0.115 348.876);
--secondary-foreground: oklch(0.852 0.067 342.757);
--accent: oklch(0.456 0.106 129.564);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.68 0.183 40.316);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.37 0.071 243.148);
--chart-1: oklch(0.37 0.071 243.148);
--chart-2: oklch(0.348 0.115 348.876);
--chart-3: oklch(0.456 0.106 129.564);
--chart-4: oklch(0.376 0.126 349.047);
--chart-5: oklch(0.371 0.074 243.512);
}