Whisker for shadcn/ui

Whisker is a shadcn/ui theme built around a light green primary color (#f9faf5) with light green accents (#f6faf5). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the light green primary (#f9faf5) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfcf8snow
#000000black
Foreground
#0b0d02black
#ffffffwhite
Card
#f9faf5whitesmoke
#030303black
Card foreground
#070901black
#ffffffwhite
Popover
#f9faf5whitesmoke
#030303black
Popover foreground
#070901black
#ffffffwhite
Primary
#f9faf5whitesmoke
#f9faf5whitesmoke
Primary foreground
#34391edarkslategray
#34391edarkslategray
Secondary
#faf8f5whitesmoke
#faf8f5whitesmoke
Secondary foreground
#39301edarkslategray
#39301edarkslategray
Muted
#eae9e6linen
#191815black
Muted foreground
#575042darkolivegreen
#bdb6a8darkgray
Accent
#f6faf5whitesmoke
#f6faf5whitesmoke
Accent foreground
#26391edarkslategray
#26391edarkslategray
Destructive
#61170amaroon
#e93e20orangered
Destructive foreground
#f6b3a7lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f9faf5whitesmoke
#f9faf5whitesmoke

Contrast

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

Light mode
Text on background18.97:1AAA
Text on card19.11:1AAA
Primary button11.41:1AAA
Secondary button12.27:1AAA
Muted text6.55:1AA
Accent11.79:1AAA
Destructive7.27:1AAA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button11.41:1AAA
Secondary button12.27:1AAA
Muted text8.84:1AAA
Accent11.79:1AAA
Destructive4.05:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.005 114.917);
  --foreground: oklch(0.154 0.028 116.349);
  --muted: oklch(0.933 0.003 86.02);
  --muted-foreground: oklch(0.435 0.025 86.074);
  --popover: oklch(0.983 0.008 114.965);
  --popover-foreground: oklch(0.133 0.024 115.668);
  --card: oklch(0.983 0.008 114.965);
  --card-foreground: oklch(0.133 0.024 115.668);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.982 0.006 114.942);
  --primary-foreground: oklch(0.331 0.044 117.362);
  --secondary: oklch(0.98 0.005 86.025);
  --secondary-foreground: oklch(0.314 0.033 85.724);
  --accent: oklch(0.981 0.007 135.459);
  --accent-foreground: oklch(0.32 0.051 136.297);
  --destructive: oklch(0.33 0.109 32.366);
  --destructive-foreground: oklch(0.826 0.081 30.14);
  --ring: oklch(0.982 0.006 114.942);
  --chart-1: oklch(0.982 0.006 114.942);
  --chart-2: oklch(0.98 0.005 86.025);
  --chart-3: oklch(0.981 0.007 135.459);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.983 0.007 114.954);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.207 0.005 86.076);
  --muted-foreground: oklch(0.779 0.022 86.087);
  --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.982 0.006 114.942);
  --primary-foreground: oklch(0.331 0.044 117.362);
  --secondary: oklch(0.98 0.005 86.025);
  --secondary-foreground: oklch(0.314 0.033 85.724);
  --accent: oklch(0.981 0.007 135.459);
  --accent-foreground: oklch(0.32 0.051 136.297);
  --destructive: oklch(0.618 0.211 32.302);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.982 0.006 114.942);
  --chart-1: oklch(0.982 0.006 114.942);
  --chart-2: oklch(0.98 0.005 86.025);
  --chart-3: oklch(0.981 0.007 135.459);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.983 0.007 114.954);
}