Fright for shadcn/ui

Fright is a shadcn/ui theme built around a vivid green primary color (#bff75e) with vivid pink accents (#f75ebf). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the vivid green primary (#bff75e) on a green-tinted background (#0b0f06).

Color palette

TokenLightDark
Background
#fdfdfbsnow
#0b0f06black
Foreground
#090d02black
#fafbf9snow
Card
#fafcf8snow
#0e1207black
Card foreground
#060902black
#fdfdfcwhite
Popover
#fdfdfbsnow
#0b0f06black
Popover foreground
#090d02black
#fafbf9snow
Primary
#bff75egreenyellow
#bff75egreenyellow
Primary foreground
#162202black
#162202black
Secondary
#5ebff7cornflowerblue
#5ebff7cornflowerblue
Secondary foreground
#021622black
#021622black
Muted
#dbe5ebgainsboro
#141e24black
Muted foreground
#515558dimgray
#a7acaedarkgray
Accent
#f75ebfhotpink
#f75ebfhotpink
Accent foreground
#220216black
#220216black
Destructive
#871203darkred
#fb4e37tomato
Destructive foreground
#fec5bepink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bff75egreenyellow
#bff75egreenyellow

Contrast

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

Light mode
Text on background19.32:1AAA
Text on card19.43:1AAA
Primary button13.24:1AAA
Secondary button9.03:1AAA
Muted text5.88:1AA
Accent6.74:1AA
Destructive6.58:1AA
Dark mode
Text on background18.67:1AAA
Text on card18.58:1AAA
Primary button13.24:1AAA
Secondary button9.03:1AAA
Muted text7.37:1AAA
Accent6.74:1AA
Destructive3.36: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.994 0.003 122.973);
  --foreground: oklch(0.15 0.027 122.839);
  --muted: oklch(0.916 0.013 232.78);
  --muted-foreground: oklch(0.447 0.007 232.798);
  --popover: oklch(0.994 0.003 122.973);
  --popover-foreground: oklch(0.15 0.027 122.839);
  --card: oklch(0.989 0.006 123.017);
  --card-foreground: oklch(0.131 0.023 122.299);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.91 0.189 126.963);
  --primary-foreground: oklch(0.233 0.057 127.032);
  --secondary: oklch(0.769 0.122 236.723);
  --secondary-foreground: oklch(0.19 0.037 235.308);
  --accent: oklch(0.71 0.212 344.894);
  --accent-foreground: oklch(0.172 0.067 345.267);
  --destructive: oklch(0.4 0.152 31.186);
  --destructive-foreground: oklch(0.873 0.066 27.122);
  --ring: oklch(0.91 0.189 126.963);
  --chart-1: oklch(0.91 0.189 126.963);
  --chart-2: oklch(0.769 0.122 236.723);
  --chart-3: oklch(0.71 0.212 344.894);
  --chart-4: oklch(0.788 0.112 235.982);
  --chart-5: oklch(0.915 0.194 127.089);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.159 0.019 123.886);
  --foreground: oklch(0.986 0.002 122.957);
  --muted: oklch(0.229 0.018 233.931);
  --muted-foreground: oklch(0.741 0.006 232.694);
  --popover: oklch(0.159 0.019 123.886);
  --popover-foreground: oklch(0.986 0.002 122.957);
  --card: oklch(0.175 0.023 124.734);
  --card-foreground: oklch(0.993 0.001 122.943);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.91 0.189 126.963);
  --primary-foreground: oklch(0.233 0.057 127.032);
  --secondary: oklch(0.769 0.122 236.723);
  --secondary-foreground: oklch(0.19 0.037 235.308);
  --accent: oklch(0.71 0.212 344.894);
  --accent-foreground: oklch(0.172 0.067 345.267);
  --destructive: oklch(0.665 0.213 30.799);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.91 0.189 126.963);
  --chart-1: oklch(0.91 0.189 126.963);
  --chart-2: oklch(0.769 0.122 236.723);
  --chart-3: oklch(0.71 0.212 344.894);
  --chart-4: oklch(0.788 0.112 235.982);
  --chart-5: oklch(0.915 0.194 127.089);
}