Scary for shadcn/ui

Scary is a shadcn/ui theme built around a muted light green primary color (#dadcd1) with muted light purple accents (#dcd1da). The light mode uses a neutral background (#fcfdf7). Dark mode keeps the muted light green primary (#dadcd1) on a neutral background (#030401).

Color palette

TokenLightDark
Background
#fcfdf7snow
#030401black
Foreground
#080901black
#fdfdfcwhite
Card
#fcfdf7snow
#030401black
Card foreground
#080901black
#fdfdfcwhite
Popover
#fcfdf7snow
#030401black
Popover foreground
#080901black
#fdfdfcwhite
Primary
#dadcd1gainsboro
#dadcd1gainsboro
Primary foreground
#434535darkslategray
#434535darkslategray
Secondary
#d1dadcgainsboro
#d1dadcgainsboro
Secondary foreground
#354345darkslategray
#354345darkslategray
Muted
#eaf4f6whitesmoke
#091415black
Muted foreground
#636363dimgray
#9c9c9cdarkgray
Accent
#dcd1dagainsboro
#dcd1dagainsboro
Accent foreground
#453543darkslategray
#453543darkslategray
Destructive
#c12506firebrick
#f84420orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dadcd1gainsboro
#dadcd1gainsboro

Contrast

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

Light mode
Text on background19.55:1AAA
Text on card19.55:1AAA
Primary button7.04:1AAA
Secondary button7.25:1AAA
Muted text5.37:1AA
Accent7.67:1AAA
Destructive5.94:1AA
Dark mode
Text on background20.21:1AAA
Text on card20.21:1AAA
Primary button7.04:1AAA
Secondary button7.25:1AAA
Muted text6.81:1AA
Accent7.67:1AAA
Destructive3.58:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.008 111.932);
  --foreground: oklch(0.135 0.024 113.321);
  --muted: oklch(0.96 0.011 206.373);
  --muted-foreground: oklch(0.501 0 180);
  --popover: oklch(0.992 0.008 111.932);
  --popover-foreground: oklch(0.135 0.024 113.321);
  --card: oklch(0.992 0.008 111.932);
  --card-foreground: oklch(0.135 0.024 113.321);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.889 0.014 112.082);
  --primary-foreground: oklch(0.384 0.026 113.035);
  --secondary: oklch(0.882 0.01 206.374);
  --secondary-foreground: oklch(0.372 0.018 206.257);
  --accent: oklch(0.872 0.017 329.361);
  --accent-foreground: oklch(0.353 0.032 330.15);
  --destructive: oklch(0.525 0.194 32.194);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.889 0.014 112.082);
  --chart-1: oklch(0.889 0.014 112.082);
  --chart-2: oklch(0.882 0.01 206.374);
  --chart-3: oklch(0.872 0.017 329.361);
  --chart-4: oklch(0.905 0.008 206.387);
  --chart-5: oklch(0.892 0.018 112.149);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.101 0.011 112.758);
  --foreground: oklch(0.994 0.002 111.824);
  --muted: oklch(0.181 0.016 206.341);
  --muted-foreground: oklch(0.691 0 180);
  --popover: oklch(0.101 0.011 112.758);
  --popover-foreground: oklch(0.994 0.002 111.824);
  --card: oklch(0.101 0.011 112.758);
  --card-foreground: oklch(0.994 0.002 111.824);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.889 0.014 112.082);
  --primary-foreground: oklch(0.384 0.026 113.035);
  --secondary: oklch(0.882 0.01 206.374);
  --secondary-foreground: oklch(0.372 0.018 206.257);
  --accent: oklch(0.872 0.017 329.361);
  --accent-foreground: oklch(0.353 0.032 330.15);
  --destructive: oklch(0.649 0.221 32.941);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.889 0.014 112.082);
  --chart-1: oklch(0.889 0.014 112.082);
  --chart-2: oklch(0.882 0.01 206.374);
  --chart-3: oklch(0.872 0.017 329.361);
  --chart-4: oklch(0.905 0.008 206.387);
  --chart-5: oklch(0.892 0.018 112.149);
}