Slushy for shadcn/ui

Slushy is a shadcn/ui theme built around a deep teal primary color (#0c3725) with deep cyan accents (#0c3237). The light mode uses a neutral background (#f8fcfa). Dark mode keeps the deep teal primary (#0c3725) on a neutral background (#030706).

Color palette

TokenLightDark
Background
#f8fcfamintcream
#030706black
Foreground
#03170fblack
#fcfdfdwhite
Card
#f4faf8mintcream
#040b08black
Card foreground
#02120cblack
#ffffffwhite
Popover
#f8fcfamintcream
#030706black
Popover foreground
#03170fblack
#fcfdfdwhite
Primary
#0c3725darkgreen
#0c3725darkgreen
Primary foreground
#39d597lightseagreen
#39d597lightseagreen
Secondary
#0c3710darkgreen
#0c3710darkgreen
Secondary foreground
#39d549limegreen
#39d549limegreen
Muted
#d7ead9gainsboro
#152817black
Muted foreground
#636363dimgray
#9c9c9cdarkgray
Accent
#0c3237darkslategray
#0c3237darkslategray
Accent foreground
#39c5d5mediumturquoise
#39c5d5mediumturquoise
Destructive
#993b06saddlebrown
#f66613chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0c3725darkgreen
#0c3725darkgreen

Contrast

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

Light mode
Text on background17.90:1AAA
Text on card18.21:1AAA
Primary button7.03:1AAA
Secondary button6.90:1AA
Muted text4.75:1AA
Accent6.60:1AA
Destructive7.03:1AAA
Dark mode
Text on background19.85:1AAA
Text on card19.86:1AAA
Primary button7.03:1AAA
Secondary button6.90:1AA
Muted text5.68:1AA
Accent6.60:1AA
Destructive6.85:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.005 170.484);
  --foreground: oklch(0.182 0.032 165.744);
  --muted: oklch(0.918 0.029 148.229);
  --muted-foreground: oklch(0.501 0 180);
  --popover: oklch(0.987 0.005 170.484);
  --popover-foreground: oklch(0.182 0.032 165.744);
  --card: oklch(0.981 0.007 170.412);
  --card-foreground: oklch(0.165 0.028 167.47);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.301 0.057 162.567);
  --primary-foreground: oklch(0.779 0.156 161.476);
  --secondary: oklch(0.296 0.08 144.728);
  --secondary-foreground: oklch(0.766 0.222 144.329);
  --accent: oklch(0.294 0.043 205.659);
  --accent-foreground: oklch(0.759 0.117 206.063);
  --destructive: oklch(0.477 0.137 43.421);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.301 0.057 162.567);
  --chart-1: oklch(0.301 0.057 162.567);
  --chart-2: oklch(0.296 0.08 144.728);
  --chart-3: oklch(0.294 0.043 205.659);
  --chart-4: oklch(0.338 0.094 144.558);
  --chart-5: oklch(0.304 0.058 162.213);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.012 170.837);
  --foreground: oklch(0.993 0.002 170.571);
  --muted: oklch(0.254 0.039 146.677);
  --muted-foreground: oklch(0.691 0 180);
  --popover: oklch(0.122 0.012 170.837);
  --popover-foreground: oklch(0.993 0.002 170.571);
  --card: oklch(0.14 0.014 170.702);
  --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.301 0.057 162.567);
  --primary-foreground: oklch(0.779 0.156 161.476);
  --secondary: oklch(0.296 0.08 144.728);
  --secondary-foreground: oklch(0.766 0.222 144.329);
  --accent: oklch(0.294 0.043 205.659);
  --accent-foreground: oklch(0.759 0.117 206.063);
  --destructive: oklch(0.684 0.194 43.624);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.301 0.057 162.567);
  --chart-1: oklch(0.301 0.057 162.567);
  --chart-2: oklch(0.296 0.08 144.728);
  --chart-3: oklch(0.294 0.043 205.659);
  --chart-4: oklch(0.338 0.094 144.558);
  --chart-5: oklch(0.304 0.058 162.213);
}