Aggression for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

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

Light mode
Text on background19.67:1AAA
Text on card19.46:1AAA
Primary button7.13:1AAA
Secondary button7.52:1AAA
Muted text5.67:1AA
Accent7.00:1AAA
Destructive6.26:1AA
Dark mode
Text on background19.99:1AAA
Text on card20.07:1AAA
Primary button7.13:1AAA
Secondary button7.52:1AAA
Muted text7.25:1AAA
Accent7.00:1AAA
Destructive6.77:1AA

CSS variables

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);
}