Fright for shadcn/ui

Fright is a shadcn/ui theme built around a deep green primary color (#0c3719) with deep purple accents (#370c2a). The light mode uses a neutral background (#f7fdf9). Dark mode keeps the deep green primary (#0c3719) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fdf9mintcream
#000000black
Foreground
#010402black
#fcfdfcwhite
Card
#f7fdf9mintcream
#000000black
Card foreground
#010402black
#fcfdfcwhite
Popover
#f7fdf9mintcream
#000000black
Popover foreground
#010402black
#fcfdfcwhite
Primary
#0c3719darkgreen
#0c3719darkgreen
Primary foreground
#39d568mediumseagreen
#39d568mediumseagreen
Secondary
#370c2ablack
#370c2ablack
Secondary foreground
#e78dccplum
#e78dccplum
Muted
#e6dbe3gainsboro
#241921black
Muted foreground
#5a5358dimgray
#aca5aadarkgray
Accent
#370c2ablack
#370c2ablack
Accent foreground
#e78dccplum
#e78dccplum
Destructive
#a90f04darkred
#e01406red
Destructive foreground
#fee3e1mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0c3719darkgreen
#0c3719darkgreen

Contrast

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

Light mode
Text on background19.98:1AAA
Text on card19.98:1AAA
Primary button6.93:1AA
Secondary button7.29:1AAA
Muted text5.53:1AA
Accent7.29:1AAA
Destructive6.26:1AA
Dark mode
Text on background20.59:1AAA
Text on card20.59:1AAA
Primary button6.93:1AA
Secondary button7.29:1AAA
Muted text7.05:1AAA
Accent7.29:1AAA
Destructive4.92:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.009 155.692);
  --foreground: oklch(0.099 0.018 155.281);
  --muted: oklch(0.902 0.017 336.213);
  --muted-foreground: oklch(0.451 0.012 336.355);
  --popover: oklch(0.988 0.009 155.692);
  --popover-foreground: oklch(0.099 0.018 155.281);
  --card: oklch(0.988 0.009 155.692);
  --card-foreground: oklch(0.099 0.018 155.281);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.298 0.071 149.58);
  --primary-foreground: oklch(0.77 0.197 148.798);
  --secondary: oklch(0.241 0.079 341.885);
  --secondary-foreground: oklch(0.757 0.133 338.934);
  --accent: oklch(0.241 0.079 341.885);
  --accent-foreground: oklch(0.757 0.133 338.934);
  --destructive: oklch(0.467 0.184 29.88);
  --destructive-foreground: oklch(0.938 0.03 22.598);
  --ring: oklch(0.298 0.071 149.58);
  --chart-1: oklch(0.298 0.071 149.58);
  --chart-2: oklch(0.241 0.079 341.885);
  --chart-3: oklch(0.241 0.079 341.885);
  --chart-4: oklch(0.273 0.093 342.216);
  --chart-5: oklch(0.3 0.074 149.324);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.001 155.84);
  --muted: oklch(0.23 0.024 337.685);
  --muted-foreground: oklch(0.729 0.01 336.138);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.001 155.84);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.993 0.001 155.84);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.298 0.071 149.58);
  --primary-foreground: oklch(0.77 0.197 148.798);
  --secondary: oklch(0.241 0.079 341.885);
  --secondary-foreground: oklch(0.757 0.133 338.934);
  --accent: oklch(0.241 0.079 341.885);
  --accent-foreground: oklch(0.757 0.133 338.934);
  --destructive: oklch(0.574 0.229 29.775);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.298 0.071 149.58);
  --chart-1: oklch(0.298 0.071 149.58);
  --chart-2: oklch(0.241 0.079 341.885);
  --chart-3: oklch(0.241 0.079 341.885);
  --chart-4: oklch(0.273 0.093 342.216);
  --chart-5: oklch(0.3 0.074 149.324);
}