Aggressive for shadcn/ui

Aggressive is a shadcn/ui theme built around a blue primary color (#1e4d8a) with indigo accents (#251e8a). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#1e4d8a) on a blue-tinted background (#03070c).

Color palette

TokenLightDark
Background
#ffffffwhite
#03070cblack
Foreground
#050a0fblack
#f5f7f9whitesmoke
Card
#fcfcfcsnow
#040910black
Card foreground
#04070bblack
#f8fafbghostwhite
Popover
#fcfcfcsnow
#040910black
Popover foreground
#04070bblack
#f8fafbghostwhite
Primary
#1e4d8adarkslateblue
#1e4d8adarkslateblue
Primary foreground
#e2ecf9lavender
#e2ecf9lavender
Secondary
#1e838adarkcyan
#1e838adarkcyan
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e4ebeclavender
#131a1bblack
Muted foreground
#3d4748darkslategray
#b7c1c2silver
Accent
#251e8amidnightblue
#251e8amidnightblue
Accent foreground
#e3e2f9lavender
#e3e2f9lavender
Destructive
#961203darkred
#fa1e05red
Destructive foreground
#fed2cdpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1e4d8adarkslateblue
#1e4d8adarkslateblue

Contrast

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

Light mode
Text on background19.87:1AAA
Text on card19.75:1AAA
Primary button7.08:1AAA
Secondary button4.50:1AA
Muted text7.95:1AAA
Accent10.09:1AAA
Destructive6.42:1AA
Dark mode
Text on background18.80:1AAA
Text on card19.03:1AAA
Primary button7.08:1AAA
Secondary button4.50:1AA
Muted text9.56:1AAA
Accent10.09:1AAA
Destructive4.00: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.14 0.016 250.724);
  --muted: oklch(0.936 0.008 202.125);
  --muted-foreground: oklch(0.389 0.013 201.888);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.127 0.013 248.033);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.127 0.013 248.033);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.422 0.113 256.454);
  --primary-foreground: oklch(0.938 0.02 255.062);
  --secondary: oklch(0.558 0.087 202.283);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.334 0.168 275.152);
  --accent-foreground: oklch(0.92 0.031 288.839);
  --destructive: oklch(0.43 0.166 30.657);
  --destructive-foreground: oklch(0.9 0.05 25.544);
  --ring: oklch(0.422 0.113 256.454);
  --chart-1: oklch(0.422 0.113 256.454);
  --chart-2: oklch(0.558 0.087 202.283);
  --chart-3: oklch(0.334 0.168 275.152);
  --chart-4: oklch(0.595 0.093 202.311);
  --chart-5: oklch(0.422 0.118 256.618);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.015 247.017);
  --foreground: oklch(0.976 0.004 254.975);
  --muted: oklch(0.212 0.011 201.749);
  --muted-foreground: oklch(0.804 0.011 202.071);
  --popover: oklch(0.139 0.018 249.845);
  --popover-foreground: oklch(0.984 0.003 254.968);
  --card: oklch(0.139 0.018 249.845);
  --card-foreground: oklch(0.984 0.003 254.968);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.422 0.113 256.454);
  --primary-foreground: oklch(0.938 0.02 255.062);
  --secondary: oklch(0.558 0.087 202.283);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.334 0.168 275.152);
  --accent-foreground: oklch(0.92 0.031 288.839);
  --destructive: oklch(0.626 0.247 30.281);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.422 0.113 256.454);
  --chart-1: oklch(0.422 0.113 256.454);
  --chart-2: oklch(0.558 0.087 202.283);
  --chart-3: oklch(0.334 0.168 275.152);
  --chart-4: oklch(0.595 0.093 202.311);
  --chart-5: oklch(0.422 0.118 256.618);
}