Frightening for shadcn/ui

Frightening is a shadcn/ui theme built around a muted light green primary color (#e3e6db) with muted light green accents (#eaece4). The light mode uses a neutral background (#fbfcf7). Dark mode keeps the muted light green primary (#e3e6db) on a green-tinted background (#0a0c03).

Color palette

TokenLightDark
Background
#fbfcf7snow
#0a0c03black
Foreground
#060802black
#ffffffwhite
Card
#f9fbf4whitesmoke
#0d1004black
Card foreground
#030401black
#ffffffwhite
Popover
#f9fbf4whitesmoke
#0d1004black
Popover foreground
#030401black
#ffffffwhite
Primary
#e3e6dbgainsboro
#e3e6dbgainsboro
Primary foreground
#4d543bdarkolivegreen
#4d543bdarkolivegreen
Secondary
#eaece4beige
#303329darkslategray
Secondary foreground
#1e2117black
#cacdc1silver
Muted
#ebf0e0beige
#1a1f0fblack
Muted foreground
#494a45darkslategray
#b9bab5silver
Accent
#eaece4beige
#303329darkslategray
Accent foreground
#1e2117black
#cacdc1silver
Destructive
#9d0707darkred
#f51919red
Destructive foreground
#fdd8d8mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e3e6dbgainsboro
#e3e6dbgainsboro

Contrast

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

Light mode
Text on background19.58:1AAA
Text on card19.72:1AAA
Primary button6.26:1AA
Secondary button13.74:1AAA
Muted text7.68:1AAA
Accent13.74:1AAA
Destructive6.50:1AA
Dark mode
Text on background19.68:1AAA
Text on card19.20:1AAA
Primary button6.26:1AA
Secondary button7.98:1AAA
Muted text8.65:1AAA
Accent7.98:1AAA
Destructive4.15:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.007 119.423);
  --foreground: oklch(0.128 0.017 119.28);
  --muted: oklch(0.947 0.021 119.678);
  --muted-foreground: oklch(0.407 0.01 119.709);
  --popover: oklch(0.985 0.01 119.484);
  --popover-foreground: oklch(0.101 0.014 119.28);
  --card: oklch(0.985 0.01 119.484);
  --card-foreground: oklch(0.101 0.014 119.28);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.919 0.015 119.586);
  --primary-foreground: oklch(0.433 0.041 120.995);
  --secondary: oklch(0.94 0.012 119.521);
  --secondary-foreground: oklch(0.243 0.02 120.747);
  --accent: oklch(0.94 0.012 119.521);
  --accent-foreground: oklch(0.243 0.02 120.747);
  --destructive: oklch(0.439 0.176 28.764);
  --destructive-foreground: oklch(0.913 0.042 17.947);
  --ring: oklch(0.919 0.015 119.586);
  --chart-1: oklch(0.919 0.015 119.586);
  --chart-2: oklch(0.94 0.012 119.521);
  --chart-3: oklch(0.94 0.012 119.521);
  --chart-4: oklch(0.96 0.008 119.445);
  --chart-5: oklch(0.921 0.018 119.632);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.148 0.022 119.644);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.228 0.028 121.54);
  --muted-foreground: oklch(0.787 0.008 119.482);
  --popover: oklch(0.166 0.026 120.941);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.166 0.026 120.941);
  --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.919 0.015 119.586);
  --primary-foreground: oklch(0.433 0.041 120.995);
  --secondary: oklch(0.315 0.018 120.29);
  --secondary-foreground: oklch(0.842 0.017 119.656);
  --accent: oklch(0.315 0.018 120.29);
  --accent-foreground: oklch(0.842 0.017 119.656);
  --destructive: oklch(0.617 0.244 28.419);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.919 0.015 119.586);
  --chart-1: oklch(0.919 0.015 119.586);
  --chart-2: oklch(0.315 0.018 120.29);
  --chart-3: oklch(0.315 0.018 120.29);
  --chart-4: oklch(0.347 0.02 120.322);
  --chart-5: oklch(0.921 0.018 119.632);
}