Haunting for shadcn/ui

Haunting is a shadcn/ui theme built around a vivid deep teal primary color (#036268) with near-white accents (#e6e9ea). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep teal primary (#036268) on a neutral background (#030707).

Color palette

TokenLightDark
Background
#ffffffwhite
#030707black
Foreground
#010404black
#ffffffwhite
Card
#ffffffwhite
#030707black
Card foreground
#010404black
#ffffffwhite
Popover
#ffffffwhite
#030707black
Popover foreground
#010404black
#ffffffwhite
Primary
#036268teal
#036268teal
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e6e9ealavender
#1a1a1ablack
Secondary foreground
#4a5455darkslategray
#b3b3b3darkgray
Muted
#e3ededlavender
#1c1212black
Muted foreground
#414d4edarkslategray
#beb1b1silver
Accent
#e6e9ealavender
#1a1a1ablack
Accent foreground
#4a5455darkslategray
#b3b3b3darkgray
Destructive
#c5410dfirebrick
#f2642ctomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#036268teal
#036268teal

Contrast

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

Light mode
Text on background20.57:1AAA
Text on card20.57:1AAA
Primary button7.14:1AAA
Secondary button6.41:1AA
Muted text7.32:1AAA
Accent6.41:1AA
Destructive5.10:1AA
Dark mode
Text on background20.26:1AAA
Text on card20.26:1AAA
Primary button7.14:1AAA
Secondary button8.34:1AAA
Muted text8.84:1AAA
Accent8.34:1AAA
Destructive6.61:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.098 0.011 199.871);
  --muted: oklch(0.938 0.011 202.095);
  --muted-foreground: oklch(0.41 0.015 201.852);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.098 0.011 199.871);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.098 0.011 199.871);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.451 0.076 203.197);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.933 0.003 202.177);
  --secondary-foreground: oklch(0.437 0.013 201.915);
  --accent: oklch(0.933 0.003 202.177);
  --accent-foreground: oklch(0.437 0.013 201.915);
  --destructive: oklch(0.557 0.177 37.962);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.451 0.076 203.197);
  --chart-1: oklch(0.451 0.076 203.197);
  --chart-2: oklch(0.933 0.003 202.177);
  --chart-3: oklch(0.933 0.003 202.177);
  --chart-4: oklch(0.956 0.002 202.19);
  --chart-5: oklch(0.456 0.077 203.298);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.008 200.648);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.195 0.018 18.8);
  --muted-foreground: oklch(0.772 0.015 17.477);
  --popover: oklch(0.121 0.008 200.648);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.121 0.008 200.648);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.451 0.076 203.197);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.216 0 180);
  --secondary-foreground: oklch(0.765 0 172.405);
  --accent: oklch(0.216 0 180);
  --accent-foreground: oklch(0.765 0 172.405);
  --destructive: oklch(0.675 0.187 40.035);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.451 0.076 203.197);
  --chart-1: oklch(0.451 0.076 203.197);
  --chart-2: oklch(0.216 0 180);
  --chart-3: oklch(0.216 0 180);
  --chart-4: oklch(0.248 0 173.29);
  --chart-5: oklch(0.456 0.077 203.298);
}