Developers Theme - Firefox Dark for shadcn/ui

Developers Theme - Firefox Dark is a shadcn/ui theme built around a near-white primary color (#ffffff) with neutral gray accents (#4e4e56). The light mode uses a neutral background (#29292e). Dark mode keeps the near-white primary (#ffffff) on a neutral background (#29292e).

Color palette

TokenLightDark
Background
#29292edarkslategray
#29292edarkslategray
Foreground
#b2b2b3darkgray
#b2b2b3darkgray
Card
#242428darkslategray
#242428darkslategray
Card foreground
#bfbfc0silver
#bfbfc0silver
Popover
#222225black
#222225black
Popover foreground
#cbcbcdlightgrey
#cbcbcdlightgrey
Primary
#ffffffwhite
#ffffffwhite
Primary foreground
#333333darkslategray
#333333darkslategray
Secondary
#404040darkslategray
#404040darkslategray
Secondary foreground
#d9d9d9gainsboro
#d9d9d9gainsboro
Muted
#2f2f3cdarkslategray
#2f2f3cdarkslategray
Muted foreground
#acacbedarkgray
#acacbedarkgray
Accent
#4e4e56darkslategray
#4e4e56darkslategray
Accent foreground
#eaeaeclavender
#eaeaeclavender
Destructive
#de2612crimson
#de2612crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#383838darkslategray
#383838darkslategray
Input
#404040darkslategray
#404040darkslategray
Ring
#ffffffwhite
#ffffffwhite

Contrast

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

Light mode
Text on background6.81:1AA
Text on card8.38:1AAA
Primary button12.63:1AAA
Secondary button7.37:1AAA
Muted text5.89:1AA
Accent6.91:1AA
Destructive4.78:1AA
Dark mode
Text on background6.81:1AA
Text on card8.38:1AAA
Primary button12.63:1AAA
Secondary button7.37:1AAA
Muted text5.89:1AA
Accent6.91:1AA
Destructive4.78:1AA

CSS variables

Paste this into your globals.css to use Developers Theme - Firefox Dark in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.283 0.008 285.888);
  --foreground: oklch(0.763 0.002 286.348);
  --muted: oklch(0.311 0.023 284.992);
  --muted-foreground: oklch(0.751 0.025 285.776);
  --popover: oklch(0.253 0.007 285.915);
  --popover-foreground: oklch(0.844 0.001 286.37);
  --card: oklch(0.263 0.007 285.905);
  --card-foreground: oklch(0.804 0.002 286.36);
  --border: oklch(0.341 0 158.199);
  --input: oklch(0.371 0 168.69);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.425 0.013 285.817);
  --accent-foreground: oklch(0.936 0.003 286.347);
  --destructive: oklch(0.579 0.218 30.507);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.425 0.013 285.817);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(1 0 180);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.283 0.008 285.888);
  --foreground: oklch(0.763 0.002 286.348);
  --muted: oklch(0.311 0.023 284.992);
  --muted-foreground: oklch(0.751 0.025 285.776);
  --popover: oklch(0.253 0.007 285.915);
  --popover-foreground: oklch(0.844 0.001 286.37);
  --card: oklch(0.263 0.007 285.905);
  --card-foreground: oklch(0.804 0.002 286.36);
  --border: oklch(0.341 0 158.199);
  --input: oklch(0.371 0 168.69);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.425 0.013 285.817);
  --accent-foreground: oklch(0.936 0.003 286.347);
  --destructive: oklch(0.579 0.218 30.507);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.425 0.013 285.817);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(1 0 180);
}