Sticky for shadcn/ui

Sticky is a shadcn/ui theme built around a light green primary color (#c3efd5) with light teal accents (#c3efeb). The light mode uses a neutral background (#fbfefc). Dark mode keeps the light green primary (#c3efd5) on a neutral background (#020302).

Color palette

TokenLightDark
Background
#fbfefcwhite
#020302black
Foreground
#000000black
#fcfdfcwhite
Card
#fbfefcwhite
#020302black
Card foreground
#000000black
#fcfdfcwhite
Popover
#fbfefcwhite
#020302black
Popover foreground
#000000black
#fcfdfcwhite
Primary
#c3efd5powderblue
#c3efd5powderblue
Primary foreground
#05140cblack
#05140cblack
Secondary
#c7efc3lightgrey
#c7efc3lightgrey
Secondary foreground
#071405black
#071405black
Muted
#ebf6eahoneydew
#0a1509black
Muted foreground
#616161dimgray
#9e9e9edarkgray
Accent
#c3efebpaleturquoise
#c3efebpaleturquoise
Accent foreground
#051413black
#051413black
Destructive
#8f2800saddlebrown
#ff530forangered
Destructive foreground
#ffd3c2peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c3efd5powderblue
#c3efd5powderblue

Contrast

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

Light mode
Text on background20.67:1AAA
Text on card20.67:1AAA
Primary button14.90:1AAA
Secondary button14.84:1AAA
Muted text5.55:1AA
Accent15.06:1AAA
Destructive6.20:1AA
Dark mode
Text on background20.22:1AAA
Text on card20.22:1AAA
Primary button14.90:1AAA
Secondary button14.84:1AAA
Muted text6.95:1AA
Accent15.06:1AAA
Destructive3.22: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.994 0.004 160.922);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.961 0.02 143.039);
  --muted-foreground: oklch(0.492 0 180);
  --popover: oklch(0.994 0.004 160.922);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.004 160.922);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.913 0.057 159.457);
  --primary-foreground: oklch(0.174 0.028 157.574);
  --secondary: oklch(0.911 0.072 142.76);
  --secondary-foreground: oklch(0.174 0.036 141.689);
  --accent: oklch(0.919 0.045 190.157);
  --accent-foreground: oklch(0.177 0.021 188.688);
  --destructive: oklch(0.435 0.144 37.515);
  --destructive-foreground: oklch(0.9 0.055 42.701);
  --ring: oklch(0.913 0.057 159.457);
  --chart-1: oklch(0.913 0.057 159.457);
  --chart-2: oklch(0.911 0.072 142.76);
  --chart-3: oklch(0.919 0.045 190.157);
  --chart-4: oklch(0.928 0.057 142.842);
  --chart-5: oklch(0.915 0.06 159.374);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.009 160.967);
  --foreground: oklch(0.993 0.001 160.989);
  --muted: oklch(0.182 0.029 142.361);
  --muted-foreground: oklch(0.7 0 180);
  --popover: oklch(0.096 0.009 160.967);
  --popover-foreground: oklch(0.993 0.001 160.989);
  --card: oklch(0.096 0.009 160.967);
  --card-foreground: oklch(0.993 0.001 160.989);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.913 0.057 159.457);
  --primary-foreground: oklch(0.174 0.028 157.574);
  --secondary: oklch(0.911 0.072 142.76);
  --secondary-foreground: oklch(0.174 0.036 141.689);
  --accent: oklch(0.919 0.045 190.157);
  --accent-foreground: oklch(0.177 0.021 188.688);
  --destructive: oklch(0.674 0.218 37.516);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.913 0.057 159.457);
  --chart-1: oklch(0.913 0.057 159.457);
  --chart-2: oklch(0.911 0.072 142.76);
  --chart-3: oklch(0.919 0.045 190.157);
  --chart-4: oklch(0.928 0.057 142.842);
  --chart-5: oklch(0.915 0.06 159.374);
}