Scary for shadcn/ui

Scary is a shadcn/ui theme built around a teal primary color (#54c4ae) with red accents (#c4546b). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#54c4ae) on a neutral background (#030706).

Color palette

TokenLightDark
Background
#ffffffwhite
#030706black
Foreground
#010403black
#fcfdfdwhite
Card
#ffffffwhite
#030706black
Card foreground
#010403black
#fcfdfdwhite
Popover
#ffffffwhite
#030706black
Popover foreground
#010403black
#fcfdfdwhite
Primary
#54c4aemediumaquamarine
#54c4aemediumaquamarine
Primary foreground
#000000black
#000000black
Secondary
#c4546bindianred
#c4546bindianred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e5cdd1lightgrey
#321a1fblack
Muted foreground
#463f40darkslategray
#c0b9bbsilver
Accent
#c4546bindianred
#c4546bindianred
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#651d0bmaroon
#e74e27chocolate
Destructive foreground
#f6bbaclightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#54c4aemediumaquamarine
#54c4aemediumaquamarine

Contrast

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

Light mode
Text on background20.58:1AAA
Text on card20.58:1AAA
Primary button9.92:1AAA
Secondary button4.33:1AA Large
Muted text6.81:1AA
Accent4.33:1AA Large
Destructive7.27:1AAA
Dark mode
Text on background19.84:1AAA
Text on card19.84:1AAA
Primary button9.92:1AAA
Secondary button4.33:1AA Large
Muted text8.34:1AAA
Accent4.33:1AA Large
Destructive3.81:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.099 0.012 183.022);
  --muted: oklch(0.868 0.028 4.048);
  --muted-foreground: oklch(0.375 0.009 3.852);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.099 0.012 183.022);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.099 0.012 183.022);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.751 0.108 177.929);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.595 0.145 10.22);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.595 0.145 10.22);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.345 0.107 34.818);
  --destructive-foreground: oklch(0.842 0.071 34.454);
  --ring: oklch(0.751 0.108 177.929);
  --chart-1: oklch(0.751 0.108 177.929);
  --chart-2: oklch(0.595 0.145 10.22);
  --chart-3: oklch(0.595 0.145 10.22);
  --chart-4: oklch(0.619 0.135 9.293);
  --chart-5: oklch(0.759 0.113 177.628);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.011 183.061);
  --foreground: oklch(0.993 0.002 183.14);
  --muted: oklch(0.253 0.04 7.371);
  --muted-foreground: oklch(0.793 0.008 3.446);
  --popover: oklch(0.123 0.011 183.061);
  --popover-foreground: oklch(0.993 0.002 183.14);
  --card: oklch(0.123 0.011 183.061);
  --card-foreground: oklch(0.993 0.002 183.14);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.751 0.108 177.929);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.595 0.145 10.22);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.595 0.145 10.22);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.631 0.196 34.804);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.751 0.108 177.929);
  --chart-1: oklch(0.751 0.108 177.929);
  --chart-2: oklch(0.595 0.145 10.22);
  --chart-3: oklch(0.595 0.145 10.22);
  --chart-4: oklch(0.619 0.135 9.293);
  --chart-5: oklch(0.759 0.113 177.628);
}