Shrill for shadcn/ui

Shrill is a shadcn/ui theme built around a vivid green primary color (#9af218) with vivid violet accents (#6f18f2). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the vivid green primary (#9af218) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#fbfdf7snow
#030302black
Foreground
#090e02black
#fafbf9snow
Card
#f8fcf2floralwhite
#050703black
Card foreground
#060901black
#fdfdfcwhite
Popover
#fbfdf7snow
#030302black
Popover foreground
#090e02black
#fafbf9snow
Primary
#9af218greenyellow
#9af218greenyellow
Primary foreground
#243a03darkgreen
#243a03darkgreen
Secondary
#6f18f2blueviolet
#6f18f2blueviolet
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e8e6ealavender
#171519black
Muted foreground
#3e3946darkslategray
#beb9c6silver
Accent
#6f18f2blueviolet
#6f18f2blueviolet
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#bf4912chocolate
#ed733btomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9af218greenyellow
#9af218greenyellow

Contrast

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

Light mode
Text on background19.06:1AAA
Text on card19.34:1AAA
Primary button8.94:1AAA
Secondary button6.82:1AA
Muted text9.03:1AAA
Accent6.82:1AA
Destructive5.02:1AA
Dark mode
Text on background19.84:1AAA
Text on card19.86:1AAA
Primary button8.94:1AAA
Secondary button6.82:1AA
Muted text9.44:1AAA
Accent6.82:1AA
Destructive7.12:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.009 124.477);
  --foreground: oklch(0.152 0.03 124.068);
  --muted: oklch(0.928 0.005 304.275);
  --muted-foreground: oklch(0.356 0.023 303.43);
  --popover: oklch(0.991 0.009 124.477);
  --popover-foreground: oklch(0.152 0.03 124.068);
  --card: oklch(0.986 0.014 124.545);
  --card-foreground: oklch(0.132 0.026 123.435);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.871 0.234 131.255);
  --primary-foreground: oklch(0.318 0.082 129.836);
  --secondary: oklch(0.506 0.274 289.861);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.506 0.274 289.861);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.559 0.164 40.831);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.871 0.234 131.255);
  --chart-1: oklch(0.871 0.234 131.255);
  --chart-2: oklch(0.506 0.274 289.861);
  --chart-3: oklch(0.506 0.274 289.861);
  --chart-4: oklch(0.525 0.268 292.153);
  --chart-5: oklch(0.88 0.239 131.477);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.01 123.872);
  --foreground: oklch(0.987 0.003 124.39);
  --muted: oklch(0.2 0.007 303.872);
  --muted-foreground: oklch(0.793 0.019 304.009);
  --popover: oklch(0.098 0.01 123.872);
  --popover-foreground: oklch(0.987 0.003 124.39);
  --card: oklch(0.124 0.012 123.872);
  --card-foreground: oklch(0.993 0.002 124.367);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.871 0.234 131.255);
  --primary-foreground: oklch(0.318 0.082 129.836);
  --secondary: oklch(0.506 0.274 289.861);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.506 0.274 289.861);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.69 0.166 43.552);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.871 0.234 131.255);
  --chart-1: oklch(0.871 0.234 131.255);
  --chart-2: oklch(0.506 0.274 289.861);
  --chart-3: oklch(0.506 0.274 289.861);
  --chart-4: oklch(0.525 0.268 292.153);
  --chart-5: oklch(0.88 0.239 131.477);
}