Frightened for shadcn/ui

Frightened is a shadcn/ui theme built around a pink primary color (#c55ea3) with muted light pink accents (#e3d3de). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the pink primary (#c55ea3) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfcfdwhite
#000000black
Foreground
#000000black
#ffffffwhite
Card
#fdfcfdwhite
#000000black
Card foreground
#000000black
#ffffffwhite
Popover
#fdfcfdwhite
#000000black
Popover foreground
#000000black
#ffffffwhite
Primary
#c55ea3palevioletred
#c55ea3palevioletred
Primary foreground
#000000black
#000000black
Secondary
#ebe5e9lavender
#1c1c1cblack
Secondary foreground
#5b4353darkslategray
#b5b5b5silver
Muted
#f5eaf1whitesmoke
#150a0ablack
Muted foreground
#4b4449darkslategray
#bbb4b4silver
Accent
#e3d3degainsboro
#2c2525darkslategray
Accent foreground
#513447darkslategray
#c7bcbcsilver
Destructive
#692807saddlebrown
#ef5e15chocolate
Destructive foreground
#f9c4a9navajowhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c55ea3palevioletred
#c55ea3palevioletred

Contrast

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

Light mode
Text on background20.47:1AAA
Text on card20.47:1AAA
Primary button5.49:1AA
Secondary button7.11:1AAA
Muted text8.08:1AAA
Accent7.60:1AAA
Destructive7.08:1AAA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button5.49:1AA
Secondary button8.30:1AAA
Muted text9.54:1AAA
Accent8.09:1AAA
Destructive6.26:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 337.312);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.949 0.015 337.579);
  --muted-foreground: oklch(0.395 0.012 337.884);
  --popover: oklch(0.991 0.002 337.312);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.002 337.312);
  --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.628 0.154 341.873);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.927 0.01 337.473);
  --secondary-foreground: oklch(0.415 0.041 339.133);
  --accent: oklch(0.884 0.022 337.764);
  --accent-foreground: oklch(0.366 0.051 339.906);
  --destructive: oklch(0.367 0.102 42.745);
  --destructive-foreground: oklch(0.86 0.071 47.875);
  --ring: oklch(0.628 0.154 341.873);
  --chart-1: oklch(0.628 0.154 341.873);
  --chart-2: oklch(0.927 0.01 337.473);
  --chart-3: oklch(0.884 0.022 337.764);
  --chart-4: oklch(0.952 0.006 337.4);
  --chart-5: oklch(0.628 0.163 342.154);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.16 0.019 19.374);
  --muted-foreground: oklch(0.776 0.008 17.332);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.628 0.154 341.873);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.227 0 164.055);
  --secondary-foreground: oklch(0.773 0 180);
  --accent: oklch(0.273 0.011 17.849);
  --accent-foreground: oklch(0.805 0.012 17.416);
  --destructive: oklch(0.661 0.193 41.587);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.628 0.154 341.873);
  --chart-1: oklch(0.628 0.154 341.873);
  --chart-2: oklch(0.227 0 164.055);
  --chart-3: oklch(0.273 0.011 17.849);
  --chart-4: oklch(0.259 0 167.471);
  --chart-5: oklch(0.628 0.163 342.154);
}