Snuggle for shadcn/ui

Snuggle is a shadcn/ui theme built around a light cyan primary color (#e2f1f4) with light blue accents (#e2e8f4). The light mode uses a neutral background (#f7fcfc). Dark mode keeps the light cyan primary (#e2f1f4) on a cyan-tinted background (#040a0b).

Color palette

TokenLightDark
Background
#f7fcfcmintcream
#040a0bblack
Foreground
#050e10black
#f6f8f8whitesmoke
Card
#f7fcfcmintcream
#040a0bblack
Card foreground
#050e10black
#f6f8f8whitesmoke
Popover
#f7fcfcmintcream
#040a0bblack
Popover foreground
#050e10black
#f6f8f8whitesmoke
Primary
#e2f1f4lavender
#e2f1f4lavender
Primary foreground
#11282cdarkslategray
#11282cdarkslategray
Secondary
#e2f4edhoneydew
#e2f4edhoneydew
Secondary foreground
#112c23black
#112c23black
Muted
#eff5f3whitesmoke
#0a100eblack
Muted foreground
#4d5653darkslategray
#a9b2afdarkgray
Accent
#e2e8f4lavender
#e2e8f4lavender
Accent foreground
#2e4776darkslateblue
#2e4776darkslateblue
Destructive
#d25314chocolate
#ea5f1achocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e2f1f4lavender
#e2f1f4lavender

Contrast

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

Light mode
Text on background18.81:1AAA
Text on card18.81:1AAA
Primary button13.26:1AAA
Secondary button13.02:1AAA
Muted text6.87:1AA
Accent7.48:1AAA
Destructive4.21:1AA Large
Dark mode
Text on background18.68:1AAA
Text on card18.68:1AAA
Primary button13.26:1AAA
Secondary button13.02:1AAA
Muted text8.86:1AAA
Accent7.48:1AAA
Destructive6.15:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.005 209.456);
  --foreground: oklch(0.154 0.015 208.481);
  --muted: oklch(0.966 0.007 173.369);
  --muted-foreground: oklch(0.445 0.014 172.66);
  --popover: oklch(0.987 0.005 209.456);
  --popover-foreground: oklch(0.154 0.015 208.481);
  --card: oklch(0.987 0.005 209.456);
  --card-foreground: oklch(0.154 0.015 208.481);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.947 0.017 209.433);
  --primary-foreground: oklch(0.26 0.03 210.256);
  --secondary: oklch(0.951 0.021 172.928);
  --secondary-foreground: oklch(0.269 0.038 168.275);
  --accent: oklch(0.929 0.017 263.013);
  --accent-foreground: oklch(0.401 0.085 261.861);
  --destructive: oklch(0.602 0.174 41.87);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.947 0.017 209.433);
  --chart-1: oklch(0.947 0.017 209.433);
  --chart-2: oklch(0.951 0.021 172.928);
  --chart-3: oklch(0.929 0.017 263.013);
  --chart-4: oklch(0.969 0.013 173.182);
  --chart-5: oklch(0.948 0.018 209.432);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.012 206.972);
  --foreground: oklch(0.978 0.002 209.463);
  --muted: oklch(0.164 0.01 171.624);
  --muted-foreground: oklch(0.756 0.012 173.106);
  --popover: oklch(0.138 0.012 206.972);
  --popover-foreground: oklch(0.978 0.002 209.463);
  --card: oklch(0.138 0.012 206.972);
  --card-foreground: oklch(0.978 0.002 209.463);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.947 0.017 209.433);
  --primary-foreground: oklch(0.26 0.03 210.256);
  --secondary: oklch(0.951 0.021 172.928);
  --secondary-foreground: oklch(0.269 0.038 168.275);
  --accent: oklch(0.929 0.017 263.013);
  --accent-foreground: oklch(0.401 0.085 261.861);
  --destructive: oklch(0.656 0.186 42.238);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.947 0.017 209.433);
  --chart-1: oklch(0.947 0.017 209.433);
  --chart-2: oklch(0.951 0.021 172.928);
  --chart-3: oklch(0.929 0.017 263.013);
  --chart-4: oklch(0.969 0.013 173.182);
  --chart-5: oklch(0.948 0.018 209.432);
}