Slushy for shadcn/ui

Slushy is a shadcn/ui theme built around a deep blue primary color (#0d122b) with deep violet accents (#170d2b). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#0d122b) on a blue-tinted background (#050610).

Color palette

TokenLightDark
Background
#ffffffwhite
#050610black
Foreground
#050814black
#ffffffwhite
Card
#fcfcfcsnow
#060814black
Card foreground
#040610black
#ffffffwhite
Popover
#ffffffwhite
#050610black
Popover foreground
#050814black
#ffffffwhite
Primary
#0d122bblack
#0d122bblack
Primary foreground
#8f9bdcmediumpurple
#8f9bdcmediumpurple
Secondary
#0d212bblack
#0d212bblack
Secondary foreground
#8fc2dcskyblue
#8fc2dcskyblue
Muted
#d1dbe1gainsboro
#1e292edarkslategray
Muted foreground
#434546darkslategray
#b9bbbcsilver
Accent
#170d2bblack
#170d2bblack
Accent foreground
#a88fdcmediumpurple
#a88fdcmediumpurple
Destructive
#c9190dfirebrick
#eb1e0fred
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0d122bblack
#0d122bblack

Contrast

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

Light mode
Text on background19.97:1AAA
Text on card19.78:1AAA
Primary button6.91:1AA
Secondary button8.60:1AAA
Muted text6.86:1AA
Accent6.74:1AA
Destructive5.76:1AA
Dark mode
Text on background20.16:1AAA
Text on card19.95:1AAA
Primary button6.91:1AA
Secondary button8.60:1AAA
Muted text7.71:1AAA
Accent6.74:1AA
Destructive4.45:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.138 0.029 271.384);
  --muted: oklch(0.886 0.014 228.959);
  --muted-foreground: oklch(0.39 0.003 228.848);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.138 0.029 271.384);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.127 0.024 270.757);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.194 0.049 272.523);
  --primary-foreground: oklch(0.705 0.095 275.015);
  --secondary: oklch(0.236 0.032 231.971);
  --secondary-foreground: oklch(0.787 0.065 230.236);
  --accent: oklch(0.193 0.057 295.997);
  --accent-foreground: oklch(0.701 0.113 298.786);
  --destructive: oklch(0.534 0.207 29.74);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.194 0.049 272.523);
  --chart-1: oklch(0.194 0.049 272.523);
  --chart-2: oklch(0.236 0.032 231.971);
  --chart-3: oklch(0.193 0.057 295.997);
  --chart-4: oklch(0.271 0.038 232.339);
  --chart-5: oklch(0.193 0.052 272.151);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.128 0.023 271.411);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.273 0.018 229.837);
  --muted-foreground: oklch(0.79 0.002 228.791);
  --popover: oklch(0.128 0.023 271.411);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.139 0.026 272.057);
  --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.194 0.049 272.523);
  --primary-foreground: oklch(0.705 0.095 275.015);
  --secondary: oklch(0.236 0.032 231.971);
  --secondary-foreground: oklch(0.787 0.065 230.236);
  --accent: oklch(0.193 0.057 295.997);
  --accent-foreground: oklch(0.701 0.113 298.786);
  --destructive: oklch(0.599 0.234 29.751);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.194 0.049 272.523);
  --chart-1: oklch(0.194 0.049 272.523);
  --chart-2: oklch(0.236 0.032 231.971);
  --chart-3: oklch(0.193 0.057 295.997);
  --chart-4: oklch(0.271 0.038 232.339);
  --chart-5: oklch(0.193 0.052 272.151);
}