Sticky for shadcn/ui

Sticky is a shadcn/ui theme built around a pink primary color (#d78ebe) with green accents (#8ed7a7). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the pink primary (#d78ebe) on a pink-tinted background (#0e060b).

Color palette

TokenLightDark
Background
#fdfbfdsnow
#0e060bblack
Foreground
#0e0209black
#faf5f8whitesmoke
Card
#fdfbfdsnow
#0e060bblack
Card foreground
#0e0209black
#faf5f8whitesmoke
Popover
#fdfbfdsnow
#0e060bblack
Popover foreground
#0e0209black
#faf5f8whitesmoke
Primary
#d78ebeplum
#d78ebeplum
Primary foreground
#260d1dblack
#260d1dblack
Secondary
#8ed7a7lightgreen
#8ed7a7lightgreen
Secondary foreground
#0d2616black
#0d2616black
Muted
#d2e4d9gainsboro
#1b2d21darkslategray
Muted foreground
#535f57dimgray
#a0aca4darkgray
Accent
#8ed7a7lightgreen
#8ed7a7lightgreen
Accent foreground
#0d2616black
#0d2616black
Destructive
#94230asaddlebrown
#ee3911orangered
Destructive foreground
#fcdbd4mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d78ebeplum
#d78ebeplum

Contrast

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

Light mode
Text on background19.84:1AAA
Text on card19.84:1AAA
Primary button7.33:1AAA
Secondary button9.53:1AAA
Muted text5.05:1AA
Accent9.53:1AAA
Destructive6.47:1AA
Dark mode
Text on background18.53:1AAA
Text on card18.53:1AAA
Primary button7.33:1AAA
Secondary button9.53:1AAA
Muted text6.21:1AA
Accent9.53:1AAA
Destructive4.00:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 338.042);
  --foreground: oklch(0.118 0.038 339.306);
  --muted: oklch(0.903 0.025 157.401);
  --muted-foreground: oklch(0.474 0.02 157.06);
  --popover: oklch(0.991 0.003 338.042);
  --popover-foreground: oklch(0.118 0.038 339.306);
  --card: oklch(0.991 0.003 338.042);
  --card-foreground: oklch(0.118 0.038 339.306);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.735 0.108 340.822);
  --primary-foreground: oklch(0.206 0.048 342.523);
  --secondary: oklch(0.819 0.1 155.062);
  --secondary-foreground: oklch(0.242 0.043 153.275);
  --accent: oklch(0.819 0.1 155.062);
  --accent-foreground: oklch(0.242 0.043 153.275);
  --destructive: oklch(0.44 0.152 33.409);
  --destructive-foreground: oklch(0.918 0.038 32.727);
  --ring: oklch(0.735 0.108 340.822);
  --chart-1: oklch(0.735 0.108 340.822);
  --chart-2: oklch(0.819 0.1 155.062);
  --chart-3: oklch(0.819 0.1 155.062);
  --chart-4: oklch(0.836 0.09 155.454);
  --chart-5: oklch(0.734 0.114 340.995);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.019 339.565);
  --foreground: oklch(0.975 0.006 338.114);
  --muted: oklch(0.276 0.032 155.234);
  --muted-foreground: oklch(0.732 0.018 157.455);
  --popover: oklch(0.139 0.019 339.565);
  --popover-foreground: oklch(0.975 0.006 338.114);
  --card: oklch(0.139 0.019 339.565);
  --card-foreground: oklch(0.975 0.006 338.114);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.735 0.108 340.822);
  --primary-foreground: oklch(0.206 0.048 342.523);
  --secondary: oklch(0.819 0.1 155.062);
  --secondary-foreground: oklch(0.242 0.043 153.275);
  --accent: oklch(0.819 0.1 155.062);
  --accent-foreground: oklch(0.242 0.043 153.275);
  --destructive: oklch(0.622 0.222 33.059);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.735 0.108 340.822);
  --chart-1: oklch(0.735 0.108 340.822);
  --chart-2: oklch(0.819 0.1 155.062);
  --chart-3: oklch(0.819 0.1 155.062);
  --chart-4: oklch(0.836 0.09 155.454);
  --chart-5: oklch(0.734 0.114 340.995);
}