Firefox Quantum Light for shadcn/ui

Firefox Quantum Light is a shadcn/ui theme built around a neutral gray primary color (#585a5a) with neutral gray accents (#d6d6d6). The light mode uses a neutral background (#fcfcfc). Dark mode keeps the neutral gray primary (#585a5a) on a neutral background (#fcfcfc).

Color palette

TokenLightDark
Background
#fcfcfcsnow
#fcfcfcsnow
Foreground
#585a5adimgray
#585a5adimgray
Card
#f7f7f7whitesmoke
#f7f7f7whitesmoke
Card foreground
#4c4d4ddarkslategray
#4c4d4ddarkslategray
Popover
#f5f5f5whitesmoke
#f5f5f5whitesmoke
Popover foreground
#3f4040darkslategray
#3f4040darkslategray
Primary
#585a5adimgray
#585a5adimgray
Primary foreground
#f2f2f2whitesmoke
#f2f2f2whitesmoke
Secondary
#bfbfbfsilver
#bfbfbfsilver
Secondary foreground
#262626darkslategray
#262626darkslategray
Muted
#e9e2e2gainsboro
#e9e2e2gainsboro
Muted foreground
#564343darkslategray
#564343darkslategray
Accent
#d6d6d6lightgrey
#d6d6d6lightgrey
Accent foreground
#3d3d3ddarkslategray
#3d3d3ddarkslategray
Destructive
#811704maroon
#811704maroon
Destructive foreground
#fdc4balightpink
#fdc4balightpink
Border
#f0f0f0whitesmoke
#f0f0f0whitesmoke
Input
#e8e8e8lavender
#e8e8e8lavender
Ring
#585a5adimgray
#585a5adimgray

Contrast

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

Light mode
Text on background6.79:1AA
Text on card7.94:1AAA
Primary button6.18:1AA
Secondary button8.25:1AAA
Muted text7.22:1AAA
Accent7.48:1AAA
Destructive6.72:1AA
Dark mode
Text on background6.79:1AA
Text on card7.94:1AAA
Primary button6.18:1AA
Secondary button8.25:1AAA
Muted text7.22:1AAA
Accent7.48:1AAA
Destructive6.72:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0 161.565);
  --foreground: oklch(0.466 0.002 197.079);
  --muted: oklch(0.919 0.007 17.278);
  --muted-foreground: oklch(0.404 0.025 18.259);
  --popover: oklch(0.97 0 180);
  --popover-foreground: oklch(0.372 0.002 197.083);
  --card: oklch(0.977 0 180);
  --card-foreground: oklch(0.42 0.002 197.081);
  --border: oklch(0.954 0 180);
  --input: oklch(0.931 0 180);
  --primary: oklch(0.466 0.002 197.079);
  --primary-foreground: oklch(0.962 0 197.154);
  --secondary: oklch(0.805 0 169.695);
  --secondary-foreground: oklch(0.27 0 180);
  --accent: oklch(0.877 0 180);
  --accent-foreground: oklch(0.361 0 180);
  --destructive: oklch(0.391 0.143 32.183);
  --destructive-foreground: oklch(0.868 0.067 29.946);
  --ring: oklch(0.466 0.002 197.079);
  --chart-1: oklch(0.466 0.002 197.079);
  --chart-2: oklch(0.805 0 169.695);
  --chart-3: oklch(0.877 0 180);
  --chart-4: oklch(0.829 0 180);
  --chart-5: oklch(0.471 0.009 196.853);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.992 0 161.565);
  --foreground: oklch(0.466 0.002 197.079);
  --muted: oklch(0.919 0.007 17.278);
  --muted-foreground: oklch(0.404 0.025 18.259);
  --popover: oklch(0.97 0 180);
  --popover-foreground: oklch(0.372 0.002 197.083);
  --card: oklch(0.977 0 180);
  --card-foreground: oklch(0.42 0.002 197.081);
  --border: oklch(0.954 0 180);
  --input: oklch(0.931 0 180);
  --primary: oklch(0.466 0.002 197.079);
  --primary-foreground: oklch(0.962 0 197.154);
  --secondary: oklch(0.805 0 169.695);
  --secondary-foreground: oklch(0.27 0 180);
  --accent: oklch(0.877 0 180);
  --accent-foreground: oklch(0.361 0 180);
  --destructive: oklch(0.391 0.143 32.183);
  --destructive-foreground: oklch(0.868 0.067 29.946);
  --ring: oklch(0.466 0.002 197.079);
  --chart-1: oklch(0.466 0.002 197.079);
  --chart-2: oklch(0.805 0 169.695);
  --chart-3: oklch(0.877 0 180);
  --chart-4: oklch(0.829 0 180);
  --chart-5: oklch(0.471 0.009 196.853);
}