Firefox Quantum Dark for shadcn/ui

Firefox Quantum Dark is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted deep blue accents (#39454c). The light mode uses a blue-tinted background (#181d20). Dark mode keeps the near-white primary (#ffffff) on a blue-tinted background (#181d20).

Color palette

TokenLightDark
Background
#181d20black
#181d20black
Foreground
#b5babfsilver
#b5babfsilver
Card
#14181ablack
#14181ablack
Card foreground
#c3c7cbsilver
#c3c7cbsilver
Popover
#121517black
#121517black
Popover foreground
#d1d3d7lightgrey
#d1d3d7lightgrey
Primary
#ffffffwhite
#ffffffwhite
Primary foreground
#333333darkslategray
#333333darkslategray
Secondary
#404040darkslategray
#404040darkslategray
Secondary foreground
#d9d9d9gainsboro
#d9d9d9gainsboro
Muted
#22272bdarkslategray
#22272bdarkslategray
Muted foreground
#9ba8b0darkgray
#9ba8b0darkgray
Accent
#39454cdarkslategray
#39454cdarkslategray
Accent foreground
#d6dde0gainsboro
#d6dde0gainsboro
Destructive
#fd4635tomato
#fd4635tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#27292adarkslategray
#27292adarkslategray
Input
#2f3132darkslategray
#2f3132darkslategray
Ring
#ffffffwhite
#ffffffwhite

Contrast

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

Light mode
Text on background8.69:1AAA
Text on card10.53:1AAA
Primary button12.63:1AAA
Secondary button7.37:1AAA
Muted text6.17:1AA
Accent7.19:1AAA
Destructive3.44:1AA Large
Dark mode
Text on background8.69:1AAA
Text on card10.53:1AAA
Primary button12.63:1AAA
Secondary button7.37:1AAA
Muted text6.17:1AA
Accent7.19:1AAA
Destructive3.44:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.227 0.009 235.141);
  --foreground: oklch(0.786 0.009 253.295);
  --muted: oklch(0.27 0.01 235.1);
  --muted-foreground: oklch(0.725 0.019 234.899);
  --popover: oklch(0.193 0.007 235.065);
  --popover-foreground: oklch(0.867 0.005 253.262);
  --card: oklch(0.205 0.008 235.093);
  --card-foreground: oklch(0.827 0.007 253.278);
  --border: oklch(0.28 0.004 234.698);
  --input: oklch(0.311 0.004 232.777);
  --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.382 0.019 233.383);
  --accent-foreground: oklch(0.893 0.009 232.715);
  --destructive: oklch(0.66 0.222 29.496);
  --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.382 0.019 233.383);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(1 0 180);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.227 0.009 235.141);
  --foreground: oklch(0.786 0.009 253.295);
  --muted: oklch(0.27 0.01 235.1);
  --muted-foreground: oklch(0.725 0.019 234.899);
  --popover: oklch(0.193 0.007 235.065);
  --popover-foreground: oklch(0.867 0.005 253.262);
  --card: oklch(0.205 0.008 235.093);
  --card-foreground: oklch(0.827 0.007 253.278);
  --border: oklch(0.28 0.004 234.698);
  --input: oklch(0.311 0.004 232.777);
  --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.382 0.019 233.383);
  --accent-foreground: oklch(0.893 0.009 232.715);
  --destructive: oklch(0.66 0.222 29.496);
  --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.382 0.019 233.383);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(1 0 180);
}