Aggressive for shadcn/ui

Aggressive is a shadcn/ui theme built around a muted deep purple primary color (#4c2f43) with muted deep green accents (#2f4c38). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep purple primary (#4c2f43) on a purple-tinted background (#0b0409).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0409black
Foreground
#10040cblack
#fbf9fasnow
Card
#ffffffwhite
#0b0409black
Card foreground
#10040cblack
#fbf9fasnow
Popover
#ffffffwhite
#0b0409black
Popover foreground
#10040cblack
#fbf9fasnow
Primary
#4c2f43darkslategray
#4c2f43darkslategray
Primary foreground
#e0ccdathistle
#e0ccdathistle
Secondary
#2f4c38darkslategray
#2f4c38darkslategray
Secondary foreground
#cce0d3lightgrey
#cce0d3lightgrey
Muted
#d6e6dbgainsboro
#19291eblack
Muted foreground
#505351darkslategray
#acafaddarkgray
Accent
#2f4c38darkslategray
#2f4c38darkslategray
Accent foreground
#cce0d3lightgrey
#cce0d3lightgrey
Destructive
#702000maroon
#ff5714orangered
Destructive foreground
#ffbda3lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4c2f43darkslategray
#4c2f43darkslategray

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.10:1AAA
Text on card20.10:1AAA
Primary button7.74:1AAA
Secondary button6.87:1AA
Muted text6.00:1AA
Accent6.87:1AA
Destructive6.88:1AA
Dark mode
Text on background19.34:1AAA
Text on card19.34:1AAA
Primary button7.74:1AAA
Secondary button6.87:1AA
Muted text6.86:1AA
Accent6.87:1AA
Destructive6.62:1AA

CSS variables

Paste this into your globals.css to use Aggressive in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.136 0.03 338.833);
  --muted: oklch(0.91 0.023 156.047);
  --muted-foreground: oklch(0.439 0.006 156.311);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.136 0.03 338.833);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.136 0.03 338.833);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.347 0.053 339.323);
  --primary-foreground: oklch(0.866 0.028 337.181);
  --secondary: oklch(0.386 0.049 153.7);
  --secondary-foreground: oklch(0.888 0.028 155.933);
  --accent: oklch(0.386 0.049 153.7);
  --accent-foreground: oklch(0.888 0.028 155.933);
  --destructive: oklch(0.368 0.119 38.472);
  --destructive-foreground: oklch(0.853 0.084 42.52);
  --ring: oklch(0.347 0.053 339.323);
  --chart-1: oklch(0.347 0.053 339.323);
  --chart-2: oklch(0.386 0.049 153.7);
  --chart-3: oklch(0.386 0.049 153.7);
  --chart-4: oklch(0.418 0.054 153.64);
  --chart-5: oklch(0.346 0.059 339.656);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.022 337.149);
  --foreground: oklch(0.983 0.003 336.627);
  --muted: oklch(0.264 0.031 153.985);
  --muted-foreground: oklch(0.751 0.005 156.433);
  --popover: oklch(0.124 0.022 337.149);
  --popover-foreground: oklch(0.983 0.003 336.627);
  --card: oklch(0.124 0.022 337.149);
  --card-foreground: oklch(0.983 0.003 336.627);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.347 0.053 339.323);
  --primary-foreground: oklch(0.866 0.028 337.181);
  --secondary: oklch(0.386 0.049 153.7);
  --secondary-foreground: oklch(0.888 0.028 155.933);
  --accent: oklch(0.386 0.049 153.7);
  --accent-foreground: oklch(0.888 0.028 155.933);
  --destructive: oklch(0.678 0.215 38.006);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.347 0.053 339.323);
  --chart-1: oklch(0.347 0.053 339.323);
  --chart-2: oklch(0.386 0.049 153.7);
  --chart-3: oklch(0.386 0.049 153.7);
  --chart-4: oklch(0.418 0.054 153.64);
  --chart-5: oklch(0.346 0.059 339.656);
}