Frightened for shadcn/ui

Frightened is a shadcn/ui theme built around a cyan primary color (#2a636f) with green accents (#636f2a). The light mode uses a neutral background (#ffffff). Dark mode keeps the cyan primary (#2a636f) on a neutral background (#020304).

Color palette

TokenLightDark
Background
#ffffffwhite
#020304black
Foreground
#010404black
#fcfdfdwhite
Card
#ffffffwhite
#020304black
Card foreground
#010404black
#fcfdfdwhite
Popover
#ffffffwhite
#020304black
Popover foreground
#010404black
#fcfdfdwhite
Primary
#2a636fdarkslategray
#2a636fdarkslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#6f2a63purple
#6f2a63purple
Secondary foreground
#f1daedlavender
#f1daedlavender
Muted
#f5eff4whitesmoke
#100a0fblack
Muted foreground
#5e505bdimgray
#afa1addarkgray
Accent
#636f2adarkolivegreen
#636f2adarkolivegreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c12401firebrick
#fe3001orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2a636fdarkslategray
#2a636fdarkslategray

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 button6.70:1AA
Secondary button7.30:1AAA
Muted text6.70:1AA
Accent5.46:1AA
Destructive5.97:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button6.70:1AA
Secondary button7.30:1AAA
Muted text7.95:1AAA
Accent5.46:1AA
Destructive3.73:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.096 0.01 207.438);
  --muted: oklch(0.959 0.009 330.942);
  --muted-foreground: oklch(0.448 0.026 331.576);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.096 0.01 207.438);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.096 0.01 207.438);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.468 0.062 212.743);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.406 0.122 334.585);
  --secondary-foreground: oklch(0.913 0.036 331.34);
  --accent: oklch(0.516 0.094 117.776);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.524 0.195 32.543);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.468 0.062 212.743);
  --chart-1: oklch(0.468 0.062 212.743);
  --chart-2: oklch(0.406 0.122 334.585);
  --chart-3: oklch(0.516 0.094 117.776);
  --chart-4: oklch(0.434 0.132 334.631);
  --chart-5: oklch(0.472 0.065 212.98);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.007 208.289);
  --foreground: oklch(0.993 0.001 211.044);
  --muted: oklch(0.154 0.014 331.962);
  --muted-foreground: oklch(0.726 0.023 331.24);
  --popover: oklch(0.095 0.007 208.289);
  --popover-foreground: oklch(0.993 0.001 211.044);
  --card: oklch(0.095 0.007 208.289);
  --card-foreground: oklch(0.993 0.001 211.044);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.468 0.062 212.743);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.406 0.122 334.585);
  --secondary-foreground: oklch(0.913 0.036 331.34);
  --accent: oklch(0.516 0.094 117.776);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.642 0.242 32.158);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.468 0.062 212.743);
  --chart-1: oklch(0.468 0.062 212.743);
  --chart-2: oklch(0.406 0.122 334.585);
  --chart-3: oklch(0.516 0.094 117.776);
  --chart-4: oklch(0.434 0.132 334.631);
  --chart-5: oklch(0.472 0.065 212.98);
}