Slime for shadcn/ui

Slime is a shadcn/ui theme built around a neutral gray primary color (#89908d) with muted deep cyan accents (#414c4e). The light mode uses a cyan-tinted background (#1e2324). Dark mode keeps the neutral gray primary (#89908d) on a cyan-tinted background (#1e2324).

Color palette

TokenLightDark
Background
#1e2324black
#1e2324black
Foreground
#e0e0e0gainsboro
#e0e0e0gainsboro
Card
#1a1e1fblack
#1a1e1fblack
Card foreground
#edededwhitesmoke
#edededwhitesmoke
Popover
#171b1cblack
#171b1cblack
Popover foreground
#fafafasnow
#fafafasnow
Primary
#89908dgray
#89908dgray
Primary foreground
#000000black
#000000black
Secondary
#404040darkslategray
#404040darkslategray
Secondary foreground
#d9d9d9gainsboro
#d9d9d9gainsboro
Muted
#262f31darkslategray
#262f31darkslategray
Muted foreground
#a1b2b5darkgray
#a1b2b5darkgray
Accent
#414c4edarkslategray
#414c4edarkslategray
Accent foreground
#dee2e3gainsboro
#dee2e3gainsboro
Destructive
#fe3e25orangered
#fe3e25orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#2e2e2edarkslategray
#2e2e2edarkslategray
Input
#363636darkslategray
#363636darkslategray
Ring
#89908dgray
#89908dgray

Contrast

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

Light mode
Text on background12.02:1AAA
Text on card14.40:1AAA
Primary button6.41:1AA
Secondary button7.37:1AAA
Muted text6.24:1AA
Accent6.82:1AA
Destructive3.54:1AA Large
Dark mode
Text on background12.02:1AAA
Text on card14.40:1AAA
Primary button6.41:1AA
Secondary button7.37:1AAA
Muted text6.24:1AA
Accent6.82:1AA
Destructive3.54:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.252 0.007 211.06);
  --foreground: oklch(0.908 0 180);
  --muted: oklch(0.297 0.012 211.101);
  --muted-foreground: oklch(0.75 0.019 211.052);
  --popover: oklch(0.219 0.006 211.055);
  --popover-foreground: oklch(0.985 0 180);
  --card: oklch(0.23 0.006 211.057);
  --card-foreground: oklch(0.947 0 180);
  --border: oklch(0.301 0 189.462);
  --input: oklch(0.331 0 180);
  --primary: oklch(0.646 0.009 172.174);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.407 0.014 211.075);
  --accent-foreground: oklch(0.91 0.005 211.039);
  --destructive: oklch(0.654 0.23 31.037);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.646 0.009 172.174);
  --chart-1: oklch(0.646 0.009 172.174);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.407 0.014 211.075);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.651 0.018 171.775);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.252 0.007 211.06);
  --foreground: oklch(0.908 0 180);
  --muted: oklch(0.297 0.012 211.101);
  --muted-foreground: oklch(0.75 0.019 211.052);
  --popover: oklch(0.219 0.006 211.055);
  --popover-foreground: oklch(0.985 0 180);
  --card: oklch(0.23 0.006 211.057);
  --card-foreground: oklch(0.947 0 180);
  --border: oklch(0.301 0 189.462);
  --input: oklch(0.331 0 180);
  --primary: oklch(0.646 0.009 172.174);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.407 0.014 211.075);
  --accent-foreground: oklch(0.91 0.005 211.039);
  --destructive: oklch(0.654 0.23 31.037);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.646 0.009 172.174);
  --chart-1: oklch(0.646 0.009 172.174);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.407 0.014 211.075);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.651 0.018 171.775);
}