Slippery for shadcn/ui

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

Color palette

TokenLightDark
Background
#fbfcf8snow
#000000black
Foreground
#070802black
#fdfdfcwhite
Card
#fbfcf8snow
#000000black
Card foreground
#070802black
#fdfdfcwhite
Popover
#fbfcf8snow
#000000black
Popover foreground
#070802black
#fdfdfcwhite
Primary
#b6c369darkkhaki
#b6c369darkkhaki
Primary foreground
#000000black
#000000black
Secondary
#c3a469darkkhaki
#c3a469darkkhaki
Secondary foreground
#000000black
#000000black
Muted
#dfdcd8gainsboro
#272520black
Muted foreground
#5e5b55dimgray
#aaa7a1darkgray
Accent
#89c369darkseagreen
#89c369darkseagreen
Accent foreground
#000000black
#000000black
Destructive
#772a0dsaddlebrown
#d84b18chocolate
Destructive foreground
#f8cebfpeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b6c369darkkhaki
#b6c369darkkhaki

Contrast

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

Light mode
Text on background19.45:1AAA
Text on card19.45:1AAA
Primary button11.03:1AAA
Secondary button8.84:1AAA
Muted text4.96:1AA
Accent10.11:1AAA
Destructive6.87:1AA
Dark mode
Text on background20.63:1AAA
Text on card20.63:1AAA
Primary button11.03:1AAA
Secondary button8.84:1AAA
Muted text6.38:1AA
Accent10.11:1AAA
Destructive4.25:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.004 113.388);
  --foreground: oklch(0.129 0.018 114.218);
  --muted: oklch(0.896 0.007 83.062);
  --muted-foreground: oklch(0.471 0.01 83.063);
  --popover: oklch(0.988 0.004 113.388);
  --popover-foreground: oklch(0.129 0.018 114.218);
  --card: oklch(0.988 0.004 113.388);
  --card-foreground: oklch(0.129 0.018 114.218);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.788 0.116 116.138);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.733 0.085 82.207);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.757 0.135 135.505);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.395 0.116 38.553);
  --destructive-foreground: oklch(0.883 0.052 40.972);
  --ring: oklch(0.788 0.116 116.138);
  --chart-1: oklch(0.788 0.116 116.138);
  --chart-2: oklch(0.733 0.085 82.207);
  --chart-3: oklch(0.757 0.135 135.505);
  --chart-4: oklch(0.753 0.079 82.425);
  --chart-5: oklch(0.796 0.123 116.292);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.994 0.002 113.349);
  --muted: oklch(0.265 0.009 83.044);
  --muted-foreground: oklch(0.73 0.009 83.064);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.994 0.002 113.349);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.994 0.002 113.349);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.788 0.116 116.138);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.733 0.085 82.207);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.757 0.135 135.505);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.602 0.186 37.854);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.788 0.116 116.138);
  --chart-1: oklch(0.788 0.116 116.138);
  --chart-2: oklch(0.733 0.085 82.207);
  --chart-3: oklch(0.757 0.135 135.505);
  --chart-4: oklch(0.753 0.079 82.425);
  --chart-5: oklch(0.796 0.123 116.292);
}