Ptarmigan for shadcn/ui

Ptarmigan is a shadcn/ui theme built around a vivid deep yellow primary color (#707209) with vivid deep indigo accents (#0a0972). The light mode uses a neutral background (#fefefb). Dark mode keeps the vivid deep yellow primary (#707209) on a neutral background (#080803).

Color palette

TokenLightDark
Background
#fefefbwhite
#080803black
Foreground
#080802black
#f8f8f7whitesmoke
Card
#fefefbwhite
#080803black
Card foreground
#080802black
#f8f8f7whitesmoke
Popover
#fefefbwhite
#080803black
Popover foreground
#080802black
#f8f8f7whitesmoke
Primary
#707209olive
#707209olive
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#0a0972navy
#0a0972navy
Secondary foreground
#b4b3f9lightsteelblue
#b4b3f9lightsteelblue
Muted
#e3e3f3lavender
#0d0c1cblack
Muted foreground
#373749darkslategray
#b7b6c8silver
Accent
#0a0972navy
#0a0972navy
Accent foreground
#b4b3f9lightsteelblue
#b4b3f9lightsteelblue
Destructive
#680c08maroon
#ef443etomato
Destructive foreground
#f8adaalightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#707209olive
#707209olive

Contrast

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

Light mode
Text on background19.87:1AAA
Text on card19.87:1AAA
Primary button5.13:1AA
Secondary button8.32:1AAA
Muted text9.14:1AAA
Accent8.32:1AAA
Destructive7.04:1AAA
Dark mode
Text on background18.93:1AAA
Text on card18.93:1AAA
Primary button5.13:1AA
Secondary button8.32:1AAA
Muted text9.68:1AAA
Accent8.32:1AAA
Destructive3.77:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.996 0.004 107.246);
  --foreground: oklch(0.13 0.017 109.131);
  --muted: oklch(0.92 0.021 286.736);
  --muted-foreground: oklch(0.344 0.031 285.411);
  --popover: oklch(0.996 0.004 107.246);
  --popover-foreground: oklch(0.13 0.017 109.131);
  --card: oklch(0.996 0.004 107.246);
  --card-foreground: oklch(0.13 0.017 109.131);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.532 0.114 110.799);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.262 0.164 267.782);
  --secondary-foreground: oklch(0.794 0.099 284.674);
  --accent: oklch(0.262 0.164 267.782);
  --accent-foreground: oklch(0.794 0.099 284.674);
  --destructive: oklch(0.333 0.125 28.602);
  --destructive-foreground: oklch(0.818 0.089 21.393);
  --ring: oklch(0.532 0.114 110.799);
  --chart-1: oklch(0.532 0.114 110.799);
  --chart-2: oklch(0.262 0.164 267.782);
  --chart-3: oklch(0.262 0.164 267.782);
  --chart-4: oklch(0.284 0.179 267.388);
  --chart-5: oklch(0.539 0.116 110.831);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.129 0.016 109.043);
  --foreground: oklch(0.979 0.002 107.211);
  --muted: oklch(0.166 0.033 282.97);
  --muted-foreground: oklch(0.783 0.025 286.57);
  --popover: oklch(0.129 0.016 109.043);
  --popover-foreground: oklch(0.979 0.002 107.211);
  --card: oklch(0.129 0.016 109.043);
  --card-foreground: oklch(0.979 0.002 107.211);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.532 0.114 110.799);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.262 0.164 267.782);
  --secondary-foreground: oklch(0.794 0.099 284.674);
  --accent: oklch(0.262 0.164 267.782);
  --accent-foreground: oklch(0.794 0.099 284.674);
  --destructive: oklch(0.636 0.209 27.014);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.532 0.114 110.799);
  --chart-1: oklch(0.532 0.114 110.799);
  --chart-2: oklch(0.262 0.164 267.782);
  --chart-3: oklch(0.262 0.164 267.782);
  --chart-4: oklch(0.284 0.179 267.388);
  --chart-5: oklch(0.539 0.116 110.831);
}