Sticker for shadcn/ui

Sticker is a shadcn/ui theme built around a green primary color (#8ccf44) with neutral gray accents (#d4cece). The light mode uses a neutral background (#fcfefb). Dark mode keeps the green primary (#8ccf44) on a neutral background (#030401).

Color palette

TokenLightDark
Background
#fcfefbwhite
#030401black
Foreground
#050902black
#f7f8f6whitesmoke
Card
#fafdf7mintcream
#050802black
Card foreground
#030401black
#fafbf9snow
Popover
#fafdf7mintcream
#050802black
Popover foreground
#030401black
#fafbf9snow
Primary
#8ccf44yellowgreen
#8ccf44yellowgreen
Primary foreground
#24390fdarkgreen
#24390fdarkgreen
Secondary
#e8e8e8lavender
#212121black
Secondary foreground
#4f4f4fdarkslategray
#babbb9silver
Muted
#f2ededlinen
#0f120dblack
Muted foreground
#4c4242darkslategray
#b8bdb3silver
Accent
#d4cecelightgrey
#383d33darkslategray
Accent foreground
#3c3434darkslategray
#d1d5cdlightgrey
Destructive
#bc370bfirebrick
#f46c3etomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8ccf44yellowgreen
#8ccf44yellowgreen

Contrast

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

Light mode
Text on background19.78:1AAA
Text on card19.97:1AAA
Primary button6.66:1AA
Secondary button6.68:1AA
Muted text8.38:1AAA
Accent7.79:1AAA
Destructive5.68:1AA
Dark mode
Text on background19.30:1AAA
Text on card19.41:1AAA
Primary button6.66:1AA
Secondary button8.31:1AAA
Muted text9.87:1AAA
Accent7.47:1AAA
Destructive7.03:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.004 127.834);
  --foreground: oklch(0.129 0.024 126.491);
  --muted: oklch(0.951 0.005 17.244);
  --muted-foreground: oklch(0.391 0.014 17.755);
  --popover: oklch(0.989 0.008 127.879);
  --popover-foreground: oklch(0.103 0.019 126.491);
  --card: oklch(0.989 0.008 127.879);
  --card-foreground: oklch(0.103 0.019 126.491);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.782 0.182 131.634);
  --primary-foreground: oklch(0.316 0.07 131.353);
  --secondary: oklch(0.931 0 180);
  --secondary-foreground: oklch(0.428 0 180);
  --accent: oklch(0.856 0.007 17.296);
  --accent-foreground: oklch(0.334 0.011 17.727);
  --destructive: oklch(0.532 0.176 36.07);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.782 0.182 131.634);
  --chart-1: oklch(0.782 0.182 131.634);
  --chart-2: oklch(0.931 0 180);
  --chart-3: oklch(0.856 0.007 17.296);
  --chart-4: oklch(0.954 0 180);
  --chart-5: oklch(0.79 0.188 131.836);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.101 0.015 126.72);
  --foreground: oklch(0.979 0.003 127.825);
  --muted: oklch(0.176 0.01 128.464);
  --muted-foreground: oklch(0.79 0.015 128.011);
  --popover: oklch(0.127 0.019 126.72);
  --popover-foreground: oklch(0.986 0.002 127.813);
  --card: oklch(0.127 0.019 126.72);
  --card-foreground: oklch(0.986 0.002 127.813);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.782 0.182 131.634);
  --primary-foreground: oklch(0.316 0.07 131.353);
  --secondary: oklch(0.249 0.001 127.851);
  --secondary-foreground: oklch(0.791 0.002 127.82);
  --accent: oklch(0.353 0.018 128.411);
  --accent-foreground: oklch(0.868 0.012 127.952);
  --destructive: oklch(0.69 0.178 38.478);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.782 0.182 131.634);
  --chart-1: oklch(0.782 0.182 131.634);
  --chart-2: oklch(0.249 0.001 127.851);
  --chart-3: oklch(0.353 0.018 128.411);
  --chart-4: oklch(0.281 0.002 127.855);
  --chart-5: oklch(0.79 0.188 131.836);
}