Scary for shadcn/ui

Scary is a shadcn/ui theme built around a muted light violet primary color (#eeecf4) with near-white accents (#eaeaeb). The light mode uses a neutral background (#f9f6fd). Dark mode keeps the muted light violet primary (#eeecf4) on a violet-tinted background (#07050a).

Color palette

TokenLightDark
Background
#f9f6fdghostwhite
#07050ablack
Foreground
#06030cblack
#f9f8fcghostwhite
Card
#f5f2fdghostwhite
#09070dblack
Card foreground
#040208black
#fcfcfdwhite
Popover
#f9f6fdghostwhite
#07050ablack
Popover foreground
#06030cblack
#f9f8fcghostwhite
Primary
#eeecf4whitesmoke
#eeecf4whitesmoke
Primary foreground
#4e3f6edarkslateblue
#4e3f6edarkslateblue
Secondary
#eaeaeblavender
#2e2a37darkslategray
Secondary foreground
#514f54darkslategray
#c7c2d1silver
Muted
#ddd8e9gainsboro
#1c1627black
Muted foreground
#504860darkslategray
#a79fb7darkgray
Accent
#eaeaeblavender
#2e2a37darkslategray
Accent foreground
#514f54darkslategray
#c7c2d1silver
Destructive
#810e03maroon
#f92d1aorangered
Destructive foreground
#fdbfb9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eeecf4whitesmoke
#eeecf4whitesmoke

Contrast

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

Light mode
Text on background19.16:1AAA
Text on card18.68:1AAA
Primary button7.91:1AAA
Secondary button6.73:1AA
Muted text6.19:1AA
Accent6.73:1AA
Destructive6.66:1AA
Dark mode
Text on background19.17:1AAA
Text on card19.54:1AAA
Primary button7.91:1AAA
Secondary button8.05:1AAA
Muted text6.93:1AA
Accent8.05:1AAA
Destructive3.87: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.978 0.01 300.604);
  --foreground: oklch(0.111 0.028 300.918);
  --muted: oklch(0.892 0.023 300.342);
  --muted-foreground: oklch(0.42 0.04 299.189);
  --popover: oklch(0.978 0.01 300.604);
  --popover-foreground: oklch(0.111 0.028 300.918);
  --card: oklch(0.967 0.015 300.518);
  --card-foreground: oklch(0.097 0.024 301.224);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.946 0.011 300.57);
  --primary-foreground: oklch(0.406 0.078 297.382);
  --secondary: oklch(0.938 0.002 300.738);
  --secondary-foreground: oklch(0.431 0.008 300.455);
  --accent: oklch(0.938 0.002 300.738);
  --accent-foreground: oklch(0.431 0.008 300.455);
  --destructive: oklch(0.386 0.149 30.398);
  --destructive-foreground: oklch(0.86 0.072 24.605);
  --ring: oklch(0.946 0.011 300.57);
  --chart-1: oklch(0.946 0.011 300.57);
  --chart-2: oklch(0.938 0.002 300.738);
  --chart-3: oklch(0.938 0.002 300.738);
  --chart-4: oklch(0.961 0.001 300.75);
  --chart-5: oklch(0.945 0.013 300.548);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.013 300.959);
  --foreground: oklch(0.981 0.005 300.689);
  --muted: oklch(0.216 0.033 298.188);
  --muted-foreground: oklch(0.717 0.035 299.967);
  --popover: oklch(0.122 0.013 300.959);
  --popover-foreground: oklch(0.981 0.005 300.689);
  --card: oklch(0.135 0.015 300.181);
  --card-foreground: oklch(0.991 0.002 300.729);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.946 0.011 300.57);
  --primary-foreground: oklch(0.406 0.078 297.382);
  --secondary: oklch(0.294 0.025 299.353);
  --secondary-foreground: oklch(0.822 0.021 300.34);
  --accent: oklch(0.294 0.025 299.353);
  --accent-foreground: oklch(0.822 0.021 300.34);
  --destructive: oklch(0.633 0.238 30.068);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.946 0.011 300.57);
  --chart-1: oklch(0.946 0.011 300.57);
  --chart-2: oklch(0.294 0.025 299.353);
  --chart-3: oklch(0.294 0.025 299.353);
  --chart-4: oklch(0.322 0.028 299.304);
  --chart-5: oklch(0.945 0.013 300.548);
}