FireFly Pro Midnight for shadcn/ui

FireFly Pro Midnight is a shadcn/ui theme built around a vivid green primary color (#a4bd00) with neutral gray accents (#3b3b3b). The light mode uses a neutral background (#141414). Dark mode keeps the vivid green primary (#a4bd00) on a neutral background (#141414).

Color palette

TokenLightDark
Background
#141414black
#141414black
Foreground
#b4b9c5silver
#b4b9c5silver
Card
#0f0f0fblack
#0f0f0fblack
Card foreground
#c2c6d0silver
#c2c6d0silver
Popover
#0d0d0dblack
#0d0d0dblack
Popover foreground
#d1d4dclightgrey
#d1d4dclightgrey
Primary
#a4bd00yellowgreen
#a4bd00yellowgreen
Primary foreground
#000000black
#000000black
Secondary
#4e532ddarkolivegreen
#4e532ddarkolivegreen
Secondary foreground
#e1e4cdgainsboro
#e1e4cdgainsboro
Muted
#2b2222darkslategray
#2b2222darkslategray
Muted foreground
#b09b9brosybrown
#b09b9brosybrown
Accent
#3b3b3bdarkslategray
#3b3b3bdarkslategray
Accent foreground
#d4d4d4lightgrey
#d4d4d4lightgrey
Destructive
#f23118orangered
#f23118orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#212121black
#212121black
Input
#292929darkslategray
#292929darkslategray
Ring
#a4bd00yellowgreen
#a4bd00yellowgreen

Contrast

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

Light mode
Text on background9.34:1AAA
Text on card11.18:1AAA
Primary button9.82:1AAA
Secondary button6.24:1AA
Muted text5.93:1AA
Accent7.59:1AAA
Destructive4.02:1AA Large
Dark mode
Text on background9.34:1AAA
Text on card11.18:1AAA
Primary button9.82:1AAA
Secondary button6.24:1AA
Muted text5.93:1AA
Accent7.59:1AAA
Destructive4.02:1AA Large

CSS variables

Paste this into your globals.css to use FireFly Pro Midnight in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.193 0 164.055);
  --foreground: oklch(0.786 0.018 268.614);
  --muted: oklch(0.261 0.014 18.092);
  --muted-foreground: oklch(0.708 0.025 17.766);
  --popover: oklch(0.158 0 169.695);
  --popover-foreground: oklch(0.87 0.011 268.7);
  --card: oklch(0.17 0 180);
  --card-foreground: oklch(0.828 0.015 268.66);
  --border: oklch(0.248 0 173.29);
  --input: oklch(0.28 0 180);
  --primary: oklch(0.752 0.176 118.893);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.427 0.058 115.119);
  --secondary-foreground: oklch(0.911 0.031 113.172);
  --accent: oklch(0.351 0 167.471);
  --accent-foreground: oklch(0.869 0 165.964);
  --destructive: oklch(0.622 0.229 31.001);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.752 0.176 118.893);
  --chart-1: oklch(0.752 0.176 118.893);
  --chart-2: oklch(0.427 0.058 115.119);
  --chart-3: oklch(0.351 0 167.471);
  --chart-4: oklch(0.462 0.064 115.159);
  --chart-5: oklch(0.76 0.179 119.01);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.193 0 164.055);
  --foreground: oklch(0.786 0.018 268.614);
  --muted: oklch(0.261 0.014 18.092);
  --muted-foreground: oklch(0.708 0.025 17.766);
  --popover: oklch(0.158 0 169.695);
  --popover-foreground: oklch(0.87 0.011 268.7);
  --card: oklch(0.17 0 180);
  --card-foreground: oklch(0.828 0.015 268.66);
  --border: oklch(0.248 0 173.29);
  --input: oklch(0.28 0 180);
  --primary: oklch(0.752 0.176 118.893);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.427 0.058 115.119);
  --secondary-foreground: oklch(0.911 0.031 113.172);
  --accent: oklch(0.351 0 167.471);
  --accent-foreground: oklch(0.869 0 165.964);
  --destructive: oklch(0.622 0.229 31.001);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.752 0.176 118.893);
  --chart-1: oklch(0.752 0.176 118.893);
  --chart-2: oklch(0.427 0.058 115.119);
  --chart-3: oklch(0.351 0 167.471);
  --chart-4: oklch(0.462 0.064 115.159);
  --chart-5: oklch(0.76 0.179 119.01);
}