Aggressive for shadcn/ui

Aggressive is a shadcn/ui theme built around a muted light purple primary color (#d3bbce) with neutral gray accents (#d9d9d9). The light mode uses a neutral background (#fefbfd). Dark mode keeps the muted light purple primary (#d3bbce) on a purple-tinted background (#0d070c).

Color palette

TokenLightDark
Background
#fefbfdsnow
#0d070cblack
Foreground
#090207black
#fdfcfdwhite
Card
#fefbfdsnow
#0d070cblack
Card foreground
#090207black
#fdfcfdwhite
Popover
#fefbfdsnow
#0d070cblack
Popover foreground
#090207black
#fdfcfdwhite
Primary
#d3bbcethistle
#d3bbcethistle
Primary foreground
#382434darkslategray
#382434darkslategray
Secondary
#d9d9d9gainsboro
#392836darkslategray
Secondary foreground
#404040darkslategray
#d3c0cfthistle
Muted
#f6eaealinen
#150913black
Muted foreground
#6b5b5bdimgray
#a494a1darkgray
Accent
#d9d9d9gainsboro
#392836darkslategray
Accent foreground
#404040darkslategray
#d3c0cfthistle
Destructive
#b3140ffirebrick
#ec1f18crimson
Destructive foreground
#fef6f6snow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d3bbcethistle
#d3bbcethistle

Contrast

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

Light mode
Text on background19.95:1AAA
Text on card19.95:1AAA
Primary button8.00:1AAA
Secondary button7.32:1AAA
Muted text5.45:1AA
Accent7.32:1AAA
Destructive6.51:1AA
Dark mode
Text on background19.47:1AAA
Text on card19.47:1AAA
Primary button8.00:1AAA
Secondary button7.97:1AAA
Muted text6.76:1AA
Accent7.97:1AAA
Destructive4.38:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.005 331.475);
  --foreground: oklch(0.106 0.03 332.635);
  --muted: oklch(0.946 0.013 17.38);
  --muted-foreground: oklch(0.488 0.021 17.885);
  --popover: oklch(0.991 0.005 331.475);
  --popover-foreground: oklch(0.106 0.03 332.635);
  --card: oklch(0.991 0.005 331.475);
  --card-foreground: oklch(0.106 0.03 332.635);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.818 0.037 332.038);
  --primary-foreground: oklch(0.291 0.039 333.197);
  --secondary: oklch(0.885 0 180);
  --secondary-foreground: oklch(0.371 0 168.69);
  --accent: oklch(0.885 0 180);
  --accent-foreground: oklch(0.371 0 168.69);
  --destructive: oklch(0.489 0.191 28.99);
  --destructive-foreground: oklch(0.979 0.009 19.735);
  --ring: oklch(0.818 0.037 332.038);
  --chart-1: oklch(0.818 0.037 332.038);
  --chart-2: oklch(0.885 0 180);
  --chart-3: oklch(0.885 0 180);
  --chart-4: oklch(0.908 0 180);
  --chart-5: oklch(0.817 0.043 332.127);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.016 332.62);
  --foreground: oklch(0.992 0.001 331.428);
  --muted: oklch(0.164 0.027 333.587);
  --muted-foreground: oklch(0.683 0.026 331.943);
  --popover: oklch(0.141 0.016 332.62);
  --popover-foreground: oklch(0.992 0.001 331.428);
  --card: oklch(0.141 0.016 332.62);
  --card-foreground: oklch(0.992 0.001 331.428);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.818 0.037 332.038);
  --primary-foreground: oklch(0.291 0.039 333.197);
  --secondary: oklch(0.302 0.033 332.886);
  --secondary-foreground: oklch(0.828 0.029 331.89);
  --accent: oklch(0.302 0.033 332.886);
  --accent-foreground: oklch(0.828 0.029 331.89);
  --destructive: oklch(0.602 0.234 28.962);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.818 0.037 332.038);
  --chart-1: oklch(0.818 0.037 332.038);
  --chart-2: oklch(0.302 0.033 332.886);
  --chart-3: oklch(0.302 0.033 332.886);
  --chart-4: oklch(0.332 0.038 332.931);
  --chart-5: oklch(0.817 0.043 332.127);
}