Sneaky for shadcn/ui

Sneaky is a shadcn/ui theme built around a neutral gray primary color (#b0b3ad) with neutral gray accents (#adb3ad). The light mode uses a neutral background (#fafdf6). Dark mode keeps the neutral gray primary (#b0b3ad) on a neutral background (#030401).

Color palette

TokenLightDark
Background
#fafdf6mintcream
#030401black
Foreground
#050802black
#fdfdfcwhite
Card
#fafdf6mintcream
#030401black
Card foreground
#050802black
#fdfdfcwhite
Popover
#fafdf6mintcream
#030401black
Popover foreground
#050802black
#fdfdfcwhite
Primary
#b0b3addarkgray
#b0b3addarkgray
Primary foreground
#171816black
#171816black
Secondary
#b3b3addarkgray
#b3b3addarkgray
Secondary foreground
#181816black
#181816black
Muted
#eeede3beige
#1c1c11black
Muted foreground
#6c6a56dimgray
#a9a893darkgray
Accent
#adb3addarkgray
#adb3addarkgray
Accent foreground
#161816black
#161816black
Destructive
#5e1408maroon
#ec4127orangered
Destructive foreground
#f7ada1lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b0b3addarkgray
#b0b3addarkgray

Contrast

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

Light mode
Text on background19.67:1AAA
Text on card19.67:1AAA
Primary button8.40:1AAA
Secondary button8.42:1AAA
Muted text4.65:1AA
Accent8.36:1AAA
Destructive7.26:1AAA
Dark mode
Text on background20.20:1AAA
Text on card20.20:1AAA
Primary button8.40:1AAA
Secondary button8.42:1AAA
Muted text7.11:1AAA
Accent8.36:1AAA
Destructive3.91:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.01 126.552);
  --foreground: oklch(0.128 0.021 125.412);
  --muted: oklch(0.944 0.014 104.222);
  --muted-foreground: oklch(0.521 0.031 104.923);
  --popover: oklch(0.991 0.01 126.552);
  --popover-foreground: oklch(0.128 0.021 125.412);
  --card: oklch(0.991 0.01 126.552);
  --card-foreground: oklch(0.128 0.021 125.412);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.763 0.009 126.587);
  --primary-foreground: oklch(0.207 0.004 126.664);
  --secondary: oklch(0.765 0.008 104.159);
  --secondary-foreground: oklch(0.207 0.003 104.248);
  --accent: oklch(0.76 0.011 144.044);
  --accent-foreground: oklch(0.206 0.004 144.002);
  --destructive: oklch(0.319 0.108 31.705);
  --destructive-foreground: oklch(0.814 0.09 28.888);
  --ring: oklch(0.763 0.009 126.587);
  --chart-1: oklch(0.763 0.009 126.587);
  --chart-2: oklch(0.765 0.008 104.159);
  --chart-3: oklch(0.76 0.011 144.044);
  --chart-4: oklch(0.788 0.008 104.135);
  --chart-5: oklch(0.767 0.016 126.705);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.101 0.015 125.527);
  --foreground: oklch(0.994 0.002 126.453);
  --muted: oklch(0.223 0.019 105.319);
  --muted-foreground: oklch(0.726 0.028 104.621);
  --popover: oklch(0.101 0.015 125.527);
  --popover-foreground: oklch(0.994 0.002 126.453);
  --card: oklch(0.101 0.015 125.527);
  --card-foreground: oklch(0.994 0.002 126.453);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.763 0.009 126.587);
  --primary-foreground: oklch(0.207 0.004 126.664);
  --secondary: oklch(0.765 0.008 104.159);
  --secondary-foreground: oklch(0.207 0.003 104.248);
  --accent: oklch(0.76 0.011 144.044);
  --accent-foreground: oklch(0.206 0.004 144.002);
  --destructive: oklch(0.627 0.211 31.659);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.763 0.009 126.587);
  --chart-1: oklch(0.763 0.009 126.587);
  --chart-2: oklch(0.765 0.008 104.159);
  --chart-3: oklch(0.76 0.011 144.044);
  --chart-4: oklch(0.788 0.008 104.135);
  --chart-5: oklch(0.767 0.016 126.705);
}