Shrill for shadcn/ui

Shrill is a shadcn/ui theme built around a deep blue primary color (#0e152f) with deep green accents (#152f0e). The light mode uses a neutral background (#f7f8fd). Dark mode keeps the deep blue primary (#0e152f) on a neutral background (#030407).

Color palette

TokenLightDark
Background
#f7f8fdghostwhite
#030407black
Foreground
#040711black
#f5f6fawhitesmoke
Card
#f3f5fcaliceblue
#05060ablack
Card foreground
#03050dblack
#f8f9fcghostwhite
Popover
#f7f8fdghostwhite
#030407black
Popover foreground
#040711black
#f5f6fawhitesmoke
Primary
#0e152fblack
#0e152fblack
Primary foreground
#91a2delightsteelblue
#91a2delightsteelblue
Secondary
#2f0e15black
#2f0e15black
Secondary foreground
#de91a2palevioletred
#de91a2palevioletred
Muted
#ebd5dagainsboro
#2a1418black
Muted foreground
#4b3a3ddarkslategray
#c5b4b8silver
Accent
#152f0eblack
#152f0eblack
Accent foreground
#5fc743limegreen
#5fc743limegreen
Destructive
#952b0esaddlebrown
#ee6944tomato
Destructive foreground
#fce1damistyrose
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0e152fblack
#0e152fblack

Contrast

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

Light mode
Text on background19.00:1AAA
Text on card18.67:1AAA
Primary button7.20:1AAA
Secondary button7.25:1AAA
Muted text7.66:1AAA
Accent6.72:1AA
Destructive6.41:1AA
Dark mode
Text on background18.97:1AAA
Text on card19.23:1AAA
Primary button7.20:1AAA
Secondary button7.25:1AAA
Muted text8.77:1AAA
Accent6.72:1AA
Destructive6.72:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.006 273.795);
  --foreground: oklch(0.128 0.025 266.452);
  --muted: oklch(0.894 0.025 2.832);
  --muted-foreground: oklch(0.367 0.025 3.891);
  --popover: oklch(0.98 0.006 273.795);
  --popover-foreground: oklch(0.128 0.025 266.452);
  --card: oklch(0.97 0.009 273.757);
  --card-foreground: oklch(0.115 0.021 265.515);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.206 0.052 269.713);
  --primary-foreground: oklch(0.721 0.09 272.079);
  --secondary: oklch(0.221 0.055 9.294);
  --secondary-foreground: oklch(0.739 0.095 5.526);
  --accent: oklch(0.276 0.065 139.35);
  --accent-foreground: oklch(0.74 0.195 139.587);
  --destructive: oklch(0.451 0.147 35.192);
  --destructive-foreground: oklch(0.929 0.031 35.945);
  --ring: oklch(0.206 0.052 269.713);
  --chart-1: oklch(0.206 0.052 269.713);
  --chart-2: oklch(0.221 0.055 9.294);
  --chart-3: oklch(0.276 0.065 139.35);
  --chart-4: oklch(0.251 0.066 9.886);
  --chart-5: oklch(0.205 0.055 269.408);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.01 269.621);
  --foreground: oklch(0.973 0.006 273.795);
  --muted: oklch(0.223 0.037 6.565);
  --muted-foreground: oklch(0.786 0.02 2.77);
  --popover: oklch(0.108 0.01 269.621);
  --popover-foreground: oklch(0.973 0.006 273.795);
  --card: oklch(0.123 0.012 269.63);
  --card-foreground: oklch(0.982 0.004 273.819);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.206 0.052 269.713);
  --primary-foreground: oklch(0.721 0.09 272.079);
  --secondary: oklch(0.221 0.055 9.294);
  --secondary-foreground: oklch(0.739 0.095 5.526);
  --accent: oklch(0.276 0.065 139.35);
  --accent-foreground: oklch(0.74 0.195 139.587);
  --destructive: oklch(0.678 0.172 36.316);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.206 0.052 269.713);
  --chart-1: oklch(0.206 0.052 269.713);
  --chart-2: oklch(0.221 0.055 9.294);
  --chart-3: oklch(0.276 0.065 139.35);
  --chart-4: oklch(0.251 0.066 9.886);
  --chart-5: oklch(0.205 0.055 269.408);
}