Aggressive for shadcn/ui

Aggressive is a shadcn/ui theme built around a green primary color (#5bc13e) with muted light green accents (#cad6c7). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#5bc13e) on a neutral background (#040703).

Color palette

TokenLightDark
Background
#ffffffwhite
#040703black
Foreground
#040803black
#f6faf5whitesmoke
Card
#ffffffwhite
#040703black
Card foreground
#040803black
#f6faf5whitesmoke
Popover
#ffffffwhite
#040703black
Popover foreground
#040803black
#f6faf5whitesmoke
Primary
#5bc13elimegreen
#5bc13elimegreen
Primary foreground
#12270cblack
#12270cblack
Secondary
#cad6c7lightgrey
#20231fblack
Secondary foreground
#313e2edarkslategray
#b8beb7silver
Muted
#eff1eewhitesmoke
#0e110eblack
Muted foreground
#515251darkslategray
#adaeaddarkgray
Accent
#cad6c7lightgrey
#20231fblack
Accent foreground
#313e2edarkslategray
#b8beb7silver
Destructive
#9d280bfirebrick
#f0542dtomato
Destructive foreground
#fde4demistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5bc13elimegreen
#5bc13elimegreen

Contrast

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

Light mode
Text on background20.16:1AAA
Text on card20.16:1AAA
Primary button6.88:1AA
Secondary button7.50:1AAA
Muted text6.91:1AA
Accent7.50:1AAA
Destructive6.29:1AA
Dark mode
Text on background19.17:1AAA
Text on card19.17:1AAA
Primary button6.88:1AA
Secondary button8.39:1AAA
Muted text8.54:1AAA
Accent8.39:1AAA
Destructive3.48:1AA Large

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.123 0.019 137.355);
  --muted: oklch(0.956 0.005 138.892);
  --muted-foreground: oklch(0.438 0.003 138.893);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.123 0.019 137.355);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.123 0.019 137.355);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.722 0.192 139.615);
  --primary-foreground: oklch(0.246 0.053 139.248);
  --secondary: oklch(0.863 0.023 138.901);
  --secondary-foreground: oklch(0.346 0.032 138.945);
  --accent: oklch(0.863 0.023 138.901);
  --accent-foreground: oklch(0.346 0.032 138.945);
  --destructive: oklch(0.462 0.158 34.071);
  --destructive-foreground: oklch(0.937 0.029 34.302);
  --ring: oklch(0.722 0.192 139.615);
  --chart-1: oklch(0.722 0.192 139.615);
  --chart-2: oklch(0.863 0.023 138.901);
  --chart-3: oklch(0.863 0.023 138.901);
  --chart-4: oklch(0.885 0.019 138.899);
  --chart-5: oklch(0.731 0.2 139.706);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.018 137.445);
  --foreground: oklch(0.98 0.007 138.893);
  --muted: oklch(0.173 0.007 138.909);
  --muted-foreground: oklch(0.75 0.003 138.892);
  --popover: oklch(0.123 0.018 137.445);
  --popover-foreground: oklch(0.98 0.007 138.893);
  --card: oklch(0.123 0.018 137.445);
  --card-foreground: oklch(0.98 0.007 138.893);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.722 0.192 139.615);
  --primary-foreground: oklch(0.246 0.053 139.248);
  --secondary: oklch(0.251 0.007 138.902);
  --secondary-foreground: oklch(0.794 0.011 138.896);
  --accent: oklch(0.251 0.007 138.902);
  --accent-foreground: oklch(0.794 0.011 138.896);
  --destructive: oklch(0.654 0.199 34.905);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.722 0.192 139.615);
  --chart-1: oklch(0.722 0.192 139.615);
  --chart-2: oklch(0.251 0.007 138.902);
  --chart-3: oklch(0.251 0.007 138.902);
  --chart-4: oklch(0.284 0.009 138.903);
  --chart-5: oklch(0.731 0.2 139.706);
}