Squirrel for shadcn/ui

Squirrel is a shadcn/ui theme built around a near-white primary color (#f0efef) with near-white accents (#f0f0ef). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the near-white primary (#f0efef) on a neutral background (#040202).

Color palette

TokenLightDark
Background
#fcf8f8snow
#040202black
Foreground
#140506black
#ffffffwhite
Card
#fcf8f8snow
#040202black
Card foreground
#140506black
#ffffffwhite
Popover
#fcf8f8snow
#040202black
Popover foreground
#140506black
#ffffffwhite
Primary
#f0efefwhitesmoke
#f0efefwhitesmoke
Primary foreground
#5a5353dimgray
#5a5353dimgray
Secondary
#f0eff0whitesmoke
#f0eff0whitesmoke
Secondary foreground
#5a5357dimgray
#5a5357dimgray
Muted
#f4e7eelinen
#180b12black
Muted foreground
#666666dimgray
#999999darkgray
Accent
#f0f0efwhitesmoke
#f0f0efwhitesmoke
Accent foreground
#5a5653dimgray
#5a5653dimgray
Destructive
#b0220cfirebrick
#d72a0ffirebrick
Destructive foreground
#fef2f1seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f0efefwhitesmoke
#f0efefwhitesmoke

Contrast

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

Light mode
Text on background18.88:1AAA
Text on card18.88:1AAA
Primary button6.55:1AA
Secondary button6.52:1AA
Muted text4.77:1AA
Accent6.36:1AA
Destructive6.20:1AA
Dark mode
Text on background20.75:1AAA
Text on card20.75:1AAA
Primary button6.55:1AA
Secondary button6.52:1AA
Muted text6.71:1AA
Accent6.36:1AA
Destructive4.99:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 14.873);
  --foreground: oklch(0.145 0.028 18.469);
  --muted: oklch(0.939 0.017 343.881);
  --muted-foreground: oklch(0.51 0 171.87);
  --popover: oklch(0.982 0.004 14.873);
  --popover-foreground: oklch(0.145 0.028 18.469);
  --card: oklch(0.982 0.004 14.873);
  --card-foreground: oklch(0.145 0.028 18.469);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.953 0.001 14.816);
  --primary-foreground: oklch(0.45 0.009 15.173);
  --secondary: oklch(0.954 0.002 343.486);
  --secondary-foreground: oklch(0.451 0.011 344.032);
  --accent: oklch(0.954 0.001 64.076);
  --accent-foreground: oklch(0.457 0.007 63.892);
  --destructive: oklch(0.492 0.18 31.478);
  --destructive-foreground: oklch(0.971 0.013 28.002);
  --ring: oklch(0.953 0.001 14.816);
  --chart-1: oklch(0.953 0.001 14.816);
  --chart-2: oklch(0.954 0.002 343.486);
  --chart-3: oklch(0.954 0.001 64.076);
  --chart-4: oklch(0.977 0.001 343.464);
  --chart-5: oklch(0.953 0.002 14.835);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.01 16.5);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.173 0.025 346.869);
  --muted-foreground: oklch(0.683 0 180);
  --popover: oklch(0.085 0.01 16.5);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.085 0.01 16.5);
  --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.953 0.001 14.816);
  --primary-foreground: oklch(0.45 0.009 15.173);
  --secondary: oklch(0.954 0.002 343.486);
  --secondary-foreground: oklch(0.451 0.011 344.032);
  --accent: oklch(0.954 0.001 64.076);
  --accent-foreground: oklch(0.457 0.007 63.892);
  --destructive: oklch(0.568 0.21 31.409);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.953 0.001 14.816);
  --chart-1: oklch(0.953 0.001 14.816);
  --chart-2: oklch(0.954 0.002 343.486);
  --chart-3: oklch(0.954 0.001 64.076);
  --chart-4: oklch(0.977 0.001 343.464);
  --chart-5: oklch(0.953 0.002 14.835);
}