Growling for shadcn/ui

Growling is a shadcn/ui theme built around a muted violet primary color (#71609f) with muted green accents (#609f71). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted violet primary (#71609f) on a violet-tinted background (#08060f).

Color palette

TokenLightDark
Background
#fcfbfewhite
#08060fblack
Foreground
#000000black
#f9f9fbghostwhite
Card
#fcfbfewhite
#08060fblack
Card foreground
#000000black
#f9f9fbghostwhite
Popover
#fcfbfewhite
#08060fblack
Popover foreground
#000000black
#f9f9fbghostwhite
Primary
#71609fslategray
#71609fslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#9f7160gray
#9f7160gray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eeded8antiquewhite
#271711black
Muted foreground
#6c5851dimgray
#ae9a93rosybrown
Accent
#609f71mediumseagreen
#609f71mediumseagreen
Accent foreground
#000000black
#000000black
Destructive
#831a0cmaroon
#ec4c36tomato
Destructive foreground
#facdc7pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#71609fslategray
#71609fslategray

Contrast

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

Light mode
Text on background20.35:1AAA
Text on card20.35:1AAA
Primary button5.44:1AA
Secondary button4.20:1AA Large
Muted text5.09:1AA
Accent6.71:1AA
Destructive6.92:1AA
Dark mode
Text on background19.17:1AAA
Text on card19.17:1AAA
Primary button5.44:1AA
Secondary button4.20:1AA Large
Muted text6.44:1AA
Accent6.71:1AA
Destructive3.71:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.004 298.496);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.911 0.019 41.155);
  --muted-foreground: oklch(0.478 0.028 40.973);
  --popover: oklch(0.989 0.004 298.496);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.989 0.004 298.496);
  --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.531 0.099 295.075);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.591 0.065 40.823);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.648 0.096 151.484);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.398 0.142 31.041);
  --destructive-foreground: oklch(0.885 0.052 26.939);
  --ring: oklch(0.531 0.099 295.075);
  --chart-1: oklch(0.531 0.099 295.075);
  --chart-2: oklch(0.591 0.065 40.823);
  --chart-3: oklch(0.648 0.096 151.484);
  --chart-4: oklch(0.616 0.06 40.854);
  --chart-5: oklch(0.524 0.111 294.545);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.13 0.022 297.469);
  --foreground: oklch(0.983 0.002 298.522);
  --muted: oklch(0.224 0.028 40.785);
  --muted-foreground: oklch(0.703 0.025 41.071);
  --popover: oklch(0.13 0.022 297.469);
  --popover-foreground: oklch(0.983 0.002 298.522);
  --card: oklch(0.13 0.022 297.469);
  --card-foreground: oklch(0.983 0.002 298.522);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.531 0.099 295.075);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.591 0.065 40.823);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.648 0.096 151.484);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.638 0.201 30.728);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.531 0.099 295.075);
  --chart-1: oklch(0.531 0.099 295.075);
  --chart-2: oklch(0.591 0.065 40.823);
  --chart-3: oklch(0.648 0.096 151.484);
  --chart-4: oklch(0.616 0.06 40.854);
  --chart-5: oklch(0.524 0.111 294.545);
}