Agitated for shadcn/ui

Agitated is a shadcn/ui theme built around a purple primary color (#c94ac7) with pink accents (#c94a88). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#c94ac7) on a neutral background (#030203).

Color palette

TokenLightDark
Background
#ffffffwhite
#030203black
Foreground
#000000black
#fcf8fcsnow
Card
#ffffffwhite
#030203black
Card foreground
#000000black
#fcf8fcsnow
Popover
#ffffffwhite
#030203black
Popover foreground
#000000black
#fcf8fcsnow
Primary
#c94ac7mediumorchid
#c94ac7mediumorchid
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#8c4ac9darkorchid
#8c4ac9darkorchid
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d9cde5gainsboro
#271a32darkslategray
Muted foreground
#43384cdarkslategray
#bdb3c7silver
Accent
#c94a88palevioletred
#c94a88palevioletred
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d11305firebrick
#ef1606red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c94ac7mediumorchid
#c94ac7mediumorchid

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button3.96:1AA Large
Secondary button5.32:1AA
Muted text7.23:1AAA
Accent4.35:1AA Large
Destructive5.52:1AA
Dark mode
Text on background19.71:1AAA
Text on card19.71:1AAA
Primary button3.96:1AA Large
Secondary button5.32:1AA
Muted text8.13:1AAA
Accent4.35:1AA Large
Destructive4.39:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.865 0.035 308.703);
  --muted-foreground: oklch(0.361 0.036 308.068);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.627 0.214 328.436);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.55 0.191 304.638);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.599 0.172 353.576);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.545 0.217 29.796);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.627 0.214 328.436);
  --chart-1: oklch(0.627 0.214 328.436);
  --chart-2: oklch(0.55 0.191 304.638);
  --chart-3: oklch(0.599 0.172 353.576);
  --chart-4: oklch(0.577 0.18 305.295);
  --chart-5: oklch(0.63 0.223 328.515);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.089 0.012 326.95);
  --foreground: oklch(0.983 0.006 326.104);
  --muted: oklch(0.246 0.047 307.051);
  --muted-foreground: oklch(0.781 0.03 308.723);
  --popover: oklch(0.089 0.012 326.95);
  --popover-foreground: oklch(0.983 0.006 326.104);
  --card: oklch(0.089 0.012 326.95);
  --card-foreground: oklch(0.983 0.006 326.104);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.627 0.214 328.436);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.55 0.191 304.638);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.599 0.172 353.576);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.602 0.24 29.758);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.627 0.214 328.436);
  --chart-1: oklch(0.627 0.214 328.436);
  --chart-2: oklch(0.55 0.191 304.638);
  --chart-3: oklch(0.599 0.172 353.576);
  --chart-4: oklch(0.577 0.18 305.295);
  --chart-5: oklch(0.63 0.223 328.515);
}