Fright for shadcn/ui

Fright is a shadcn/ui theme built around a muted orange primary color (#a09088) with muted violet accents (#9088a0). The light mode uses a neutral background (#fefcfb). Dark mode keeps the muted orange primary (#a09088) on an orange-tinted background (#0a0705).

Color palette

TokenLightDark
Background
#fefcfbsnow
#0a0705black
Foreground
#040201black
#fbf9f8snow
Card
#fdf9f7snow
#0d0907black
Card foreground
#000000black
#fdfcfcsnow
Popover
#fefcfbsnow
#0a0705black
Popover foreground
#040201black
#fbf9f8snow
Primary
#a09088rosybrown
#a09088rosybrown
Primary foreground
#000000black
#000000black
Secondary
#88a090darkseagreen
#88a090darkseagreen
Secondary foreground
#000000black
#000000black
Muted
#dde9e1gainsboro
#16221ablack
Muted foreground
#525b55dimgray
#a4ada7darkgray
Accent
#9088a0lightslategray
#9088a0lightslategray
Accent foreground
#000000black
#000000black
Destructive
#cc1605firebrick
#f93624orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a09088rosybrown
#a09088rosybrown

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card20.04:1AAA
Primary button6.83:1AA
Secondary button7.45:1AAA
Muted text5.62:1AA
Accent6.21:1AA
Destructive5.70:1AA
Dark mode
Text on background19.14:1AAA
Text on card19.33:1AAA
Primary button6.83:1AA
Secondary button7.45:1AAA
Muted text7.13:1AAA
Accent6.21:1AA
Destructive3.75:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.003 48.716);
  --foreground: oklch(0.091 0.009 55.939);
  --muted: oklch(0.922 0.016 156.9);
  --muted-foreground: oklch(0.462 0.014 156.622);
  --popover: oklch(0.992 0.003 48.716);
  --popover-foreground: oklch(0.091 0.009 55.939);
  --card: oklch(0.984 0.006 48.681);
  --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.665 0.022 48.37);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.682 0.035 156.176);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.642 0.036 300.592);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.537 0.212 30.081);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.665 0.022 48.37);
  --chart-1: oklch(0.665 0.022 48.37);
  --chart-2: oklch(0.682 0.035 156.176);
  --chart-3: oklch(0.642 0.036 300.592);
  --chart-4: oklch(0.706 0.032 156.3);
  --chart-5: oklch(0.665 0.028 48.275);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.132 0.008 52.951);
  --foreground: oklch(0.985 0.002 48.72);
  --muted: oklch(0.238 0.022 155.165);
  --muted-foreground: oklch(0.738 0.013 156.91);
  --popover: oklch(0.132 0.008 52.951);
  --popover-foreground: oklch(0.985 0.002 48.72);
  --card: oklch(0.145 0.009 51.154);
  --card-foreground: oklch(0.992 0.001 48.736);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.665 0.022 48.37);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.682 0.035 156.176);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.642 0.036 300.592);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.64 0.232 29.931);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.665 0.022 48.37);
  --chart-1: oklch(0.665 0.022 48.37);
  --chart-2: oklch(0.682 0.035 156.176);
  --chart-3: oklch(0.642 0.036 300.592);
  --chart-4: oklch(0.706 0.032 156.3);
  --chart-5: oklch(0.665 0.028 48.275);
}