Squeaky for shadcn/ui

Squeaky is a shadcn/ui theme built around a deep green primary color (#536228) with deep purple accents (#622853). The light mode uses a neutral background (#fdfefb). Dark mode keeps the deep green primary (#536228) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfefbwhite
#000000black
Foreground
#0a0b04black
#ffffffwhite
Card
#fbfcf7snow
#030303black
Card foreground
#060803black
#ffffffwhite
Popover
#fbfcf7snow
#030303black
Popover foreground
#060803black
#ffffffwhite
Primary
#536228darkolivegreen
#536228darkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#285362darkslategray
#285362darkslategray
Secondary foreground
#d0e5ecgainsboro
#d0e5ecgainsboro
Muted
#eaf3f6whitesmoke
#091215black
Muted foreground
#545454dimgray
#abababdarkgray
Accent
#622853darkslategray
#622853darkslategray
Accent foreground
#ecd0e5gainsboro
#ecd0e5gainsboro
Destructive
#ad440bsaddlebrown
#f37e3fcoral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#536228darkolivegreen
#536228darkolivegreen

Contrast

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

Light mode
Text on background19.49:1AAA
Text on card19.56:1AAA
Primary button6.68:1AA
Secondary button6.40:1AA
Muted text6.70:1AA
Accent7.56:1AAA
Destructive5.85:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button6.68:1AA
Secondary button6.40:1AA
Muted text8.22:1AAA
Accent7.56:1AAA
Destructive7.86:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 117.883);
  --foreground: oklch(0.146 0.019 118.226);
  --muted: oklch(0.957 0.011 219.591);
  --muted-foreground: oklch(0.446 0 180);
  --popover: oklch(0.99 0.007 117.942);
  --popover-foreground: oklch(0.128 0.017 118.003);
  --card: oklch(0.99 0.007 117.942);
  --card-foreground: oklch(0.128 0.017 118.003);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.469 0.084 121.418);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.419 0.054 222.195);
  --secondary-foreground: oklch(0.908 0.024 219.737);
  --accent: oklch(0.375 0.102 338.122);
  --accent-foreground: oklch(0.887 0.041 334.644);
  --destructive: oklch(0.521 0.15 42.628);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.469 0.084 121.418);
  --chart-1: oklch(0.469 0.084 121.418);
  --chart-2: oklch(0.419 0.054 222.195);
  --chart-3: oklch(0.375 0.102 338.122);
  --chart-4: oklch(0.45 0.058 222.27);
  --chart-5: oklch(0.475 0.089 121.636);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.176 0.015 220.68);
  --muted-foreground: oklch(0.741 0 171.254);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.469 0.084 121.418);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.419 0.054 222.195);
  --secondary-foreground: oklch(0.908 0.024 219.737);
  --accent: oklch(0.375 0.102 338.122);
  --accent-foreground: oklch(0.887 0.041 334.644);
  --destructive: oklch(0.715 0.162 46.582);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.469 0.084 121.418);
  --chart-1: oklch(0.469 0.084 121.418);
  --chart-2: oklch(0.419 0.054 222.195);
  --chart-3: oklch(0.375 0.102 338.122);
  --chart-4: oklch(0.45 0.058 222.27);
  --chart-5: oklch(0.475 0.089 121.636);
}