Slippers for shadcn/ui

Slippers is a shadcn/ui theme built around a deep green primary color (#3c5328) with deep pink accents (#53283c). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#3c5328) on a neutral background (#050802).

Color palette

TokenLightDark
Background
#ffffffwhite
#050802black
Foreground
#070c04black
#fcfdfcwhite
Card
#fcfcfcsnow
#070c04black
Card foreground
#050802black
#ffffffwhite
Popover
#ffffffwhite
#050802black
Popover foreground
#070c04black
#fcfdfcwhite
Primary
#3c5328darkolivegreen
#3c5328darkolivegreen
Primary foreground
#d5e4c8lightgrey
#d5e4c8lightgrey
Secondary
#283c53darkslategray
#283c53darkslategray
Secondary foreground
#c8d5e4lightgrey
#c8d5e4lightgrey
Muted
#e6e8ealavender
#151719black
Muted foreground
#5d656fdimgray
#9098a2lightslategray
Accent
#53283cdarkslategray
#53283cdarkslategray
Accent foreground
#e4c8d5thistle
#e4c8d5thistle
Destructive
#c71100firebrick
#ff1500red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3c5328darkolivegreen
#3c5328darkolivegreen

Contrast

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

Light mode
Text on background19.74:1AAA
Text on card19.71:1AAA
Primary button6.44:1AA
Secondary button7.59:1AAA
Muted text4.80:1AA
Accent7.81:1AAA
Destructive5.99:1AA
Dark mode
Text on background19.77:1AAA
Text on card19.76:1AAA
Primary button6.44:1AA
Secondary button7.59:1AAA
Muted text6.16:1AA
Accent7.81:1AAA
Destructive3.91:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.144 0.022 128.757);
  --muted: oklch(0.93 0.004 251.482);
  --muted-foreground: oklch(0.504 0.019 251.73);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.144 0.022 128.757);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.126 0.019 128.595);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.411 0.072 131.903);
  --primary-foreground: oklch(0.901 0.042 130.255);
  --secondary: oklch(0.349 0.048 252.442);
  --secondary-foreground: oklch(0.868 0.026 251.675);
  --accent: oklch(0.341 0.069 352.036);
  --accent-foreground: oklch(0.86 0.037 348.019);
  --destructive: oklch(0.525 0.209 30.191);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.411 0.072 131.903);
  --chart-1: oklch(0.411 0.072 131.903);
  --chart-2: oklch(0.349 0.048 252.442);
  --chart-3: oklch(0.341 0.069 352.036);
  --chart-4: oklch(0.377 0.053 252.468);
  --chart-5: oklch(0.415 0.077 132.09);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.019 128.595);
  --foreground: oklch(0.993 0.001 129.796);
  --muted: oklch(0.203 0.005 251.652);
  --muted-foreground: oklch(0.677 0.018 251.649);
  --popover: oklch(0.126 0.019 128.595);
  --popover-foreground: oklch(0.993 0.001 129.796);
  --card: oklch(0.144 0.022 128.757);
  --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.411 0.072 131.903);
  --primary-foreground: oklch(0.901 0.042 130.255);
  --secondary: oklch(0.349 0.048 252.442);
  --secondary-foreground: oklch(0.868 0.026 251.675);
  --accent: oklch(0.341 0.069 352.036);
  --accent-foreground: oklch(0.86 0.037 348.019);
  --destructive: oklch(0.632 0.254 30.001);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.411 0.072 131.903);
  --chart-1: oklch(0.411 0.072 131.903);
  --chart-2: oklch(0.349 0.048 252.442);
  --chart-3: oklch(0.341 0.069 352.036);
  --chart-4: oklch(0.377 0.053 252.468);
  --chart-5: oklch(0.415 0.077 132.09);
}