Agitated for shadcn/ui

Agitated is a shadcn/ui theme built around a deep yellow primary color (#1a1b04) with deep purple accents (#1b041a). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep yellow primary (#1a1b04) on a yellow-tinted background (#0f1005).

Color palette

TokenLightDark
Background
#ffffffwhite
#0f1005black
Foreground
#080802black
#fbfbf8snow
Card
#fcfcfcsnow
#131406black
Card foreground
#040401black
#fdfdfcwhite
Popover
#ffffffwhite
#0f1005black
Popover foreground
#080802black
#fbfbf8snow
Primary
#1a1b04black
#1a1b04black
Primary foreground
#c7cd1dgoldenrod
#c7cd1dgoldenrod
Secondary
#041a1bblack
#041a1bblack
Secondary foreground
#1dc7cddarkturquoise
#1dc7cddarkturquoise
Muted
#e8ededlavender
#121717black
Muted foreground
#4d6566dimgray
#99b1b2darkgray
Accent
#1b041ablack
#1b041ablack
Accent foreground
#e967e5orchid
#e967e5orchid
Destructive
#c63e15firebrick
#e95b2fchocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1a1b04black
#1a1b04black

Contrast

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

Light mode
Text on background20.07:1AAA
Text on card20.08:1AAA
Primary button10.14:1AAA
Secondary button8.64:1AAA
Muted text5.28:1AA
Accent6.99:1AA
Destructive5.09:1AA
Dark mode
Text on background18.49:1AAA
Text on card18.28:1AAA
Primary button10.14:1AAA
Secondary button8.64:1AAA
Muted text8.00:1AAA
Accent6.99:1AA
Destructive5.99:1AA

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.132 0.019 109.971);
  --muted: oklch(0.943 0.006 199.52);
  --muted-foreground: oklch(0.487 0.029 198.882);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.132 0.019 109.971);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.105 0.015 109.971);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.214 0.04 111.032);
  --primary-foreground: oklch(0.818 0.175 111.822);
  --secondary: oklch(0.2 0.029 198.143);
  --secondary-foreground: oklch(0.756 0.125 198.72);
  --accent: oklch(0.165 0.057 329.079);
  --accent-foreground: oklch(0.717 0.217 328.845);
  --destructive: oklch(0.558 0.18 35.955);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.214 0.04 111.032);
  --chart-1: oklch(0.214 0.04 111.032);
  --chart-2: oklch(0.2 0.029 198.143);
  --chart-3: oklch(0.165 0.057 329.079);
  --chart-4: oklch(0.25 0.037 198.348);
  --chart-5: oklch(0.216 0.041 111.102);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.167 0.023 110.151);
  --foreground: oklch(0.988 0.004 108.015);
  --muted: oklch(0.199 0.008 199.068);
  --muted-foreground: oklch(0.744 0.027 199.143);
  --popover: oklch(0.167 0.023 110.151);
  --popover-foreground: oklch(0.988 0.004 108.015);
  --card: oklch(0.185 0.026 110.324);
  --card-foreground: oklch(0.994 0.002 107.977);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.214 0.04 111.032);
  --primary-foreground: oklch(0.818 0.175 111.822);
  --secondary: oklch(0.2 0.029 198.143);
  --secondary-foreground: oklch(0.756 0.125 198.72);
  --accent: oklch(0.165 0.057 329.079);
  --accent-foreground: oklch(0.717 0.217 328.845);
  --destructive: oklch(0.65 0.186 36.978);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.214 0.04 111.032);
  --chart-1: oklch(0.214 0.04 111.032);
  --chart-2: oklch(0.2 0.029 198.143);
  --chart-3: oklch(0.165 0.057 329.079);
  --chart-4: oklch(0.25 0.037 198.348);
  --chart-5: oklch(0.216 0.041 111.102);
}