Scary for shadcn/ui

Scary is a shadcn/ui theme built around a vivid deep teal primary color (#006054) with vivid deep yellow accents (#605400). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the vivid deep teal primary (#006054) on a neutral background (#010404).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#010404black
Foreground
#000000black
#f9fbfbghostwhite
Card
#fcfdfdwhite
#010404black
Card foreground
#000000black
#f9fbfbghostwhite
Popover
#fcfdfdwhite
#010404black
Popover foreground
#000000black
#f9fbfbghostwhite
Primary
#006054darkslategray
#006054darkslategray
Primary foreground
#94fef0paleturquoise
#94fef0paleturquoise
Secondary
#540060indigo
#540060indigo
Secondary foreground
#f094feviolet
#f094feviolet
Muted
#f2edf3whitesmoke
#120c12black
Muted foreground
#59485bdimgray
#b5a4b7darkgray
Accent
#605400saddlebrown
#605400saddlebrown
Accent foreground
#fef094khaki
#fef094khaki
Destructive
#772609saddlebrown
#ef5b25chocolate
Destructive foreground
#fac9b8peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#006054darkslategray
#006054darkslategray

Contrast

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

Light mode
Text on background20.62:1AAA
Text on card20.62:1AAA
Primary button6.28:1AA
Secondary button6.70:1AA
Muted text7.24:1AAA
Accent6.56:1AA
Destructive6.84:1AA
Dark mode
Text on background19.81:1AAA
Text on card19.81:1AAA
Primary button6.28:1AA
Secondary button6.70:1AA
Muted text8.23:1AAA
Accent6.56:1AA
Destructive6.16:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 187.707);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.951 0.01 321.621);
  --muted-foreground: oklch(0.426 0.038 321.833);
  --popover: oklch(0.994 0.002 187.707);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.002 187.707);
  --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.439 0.08 179.573);
  --primary-foreground: oklch(0.93 0.101 184.685);
  --secondary: oklch(0.322 0.153 321.297);
  --secondary-foreground: oklch(0.799 0.173 322.083);
  --accent: oklch(0.444 0.092 98.977);
  --accent-foreground: oklch(0.948 0.114 100.639);
  --destructive: oklch(0.389 0.119 38.011);
  --destructive-foreground: oklch(0.875 0.06 40.938);
  --ring: oklch(0.439 0.08 179.573);
  --chart-1: oklch(0.439 0.08 179.573);
  --chart-2: oklch(0.322 0.153 321.297);
  --chart-3: oklch(0.444 0.092 98.977);
  --chart-4: oklch(0.356 0.169 321.168);
  --chart-5: oklch(0.444 0.081 179.393);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.011 187.223);
  --foreground: oklch(0.986 0.002 187.697);
  --muted: oklch(0.165 0.015 321.837);
  --muted-foreground: oklch(0.738 0.034 321.718);
  --popover: oklch(0.099 0.011 187.223);
  --popover-foreground: oklch(0.986 0.002 187.697);
  --card: oklch(0.099 0.011 187.223);
  --card-foreground: oklch(0.986 0.002 187.697);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.439 0.08 179.573);
  --primary-foreground: oklch(0.93 0.101 184.685);
  --secondary: oklch(0.322 0.153 321.297);
  --secondary-foreground: oklch(0.799 0.173 322.083);
  --accent: oklch(0.444 0.092 98.977);
  --accent-foreground: oklch(0.948 0.114 100.639);
  --destructive: oklch(0.658 0.193 38.499);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.439 0.08 179.573);
  --chart-1: oklch(0.439 0.08 179.573);
  --chart-2: oklch(0.322 0.153 321.297);
  --chart-3: oklch(0.444 0.092 98.977);
  --chart-4: oklch(0.356 0.169 321.168);
  --chart-5: oklch(0.444 0.081 179.393);
}