Fedora for shadcn/ui

Fedora is a shadcn/ui theme built around a deep red primary color (#4b161e) with deep blue accents (#161e4b). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep red primary (#4b161e) on a red-tinted background (#0c0305).

Color palette

TokenLightDark
Background
#ffffffwhite
#0c0305black
Foreground
#0c0405black
#f9f5f6whitesmoke
Card
#fcfcfcsnow
#100406black
Card foreground
#080203black
#fbf8f9snow
Popover
#ffffffwhite
#0c0305black
Popover foreground
#0c0405black
#f9f5f6whitesmoke
Primary
#4b161emaroon
#4b161emaroon
Primary foreground
#e7acb5lightpink
#e7acb5lightpink
Secondary
#1e4b16darkgreen
#1e4b16darkgreen
Secondary foreground
#b5e7acpalegreen
#b5e7acpalegreen
Muted
#d8edd4gainsboro
#162b12black
Muted foreground
#434842darkslategray
#b8bdb7silver
Accent
#161e4bmidnightblue
#161e4bmidnightblue
Accent foreground
#acb5e7lightsteelblue
#acb5e7lightsteelblue
Destructive
#8b3009saddlebrown
#e14e0eorangered
Destructive foreground
#fcd9cabisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4b161emaroon
#4b161emaroon

Contrast

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

Light mode
Text on background20.28:1AAA
Text on card20.13:1AAA
Primary button7.65:1AAA
Secondary button7.22:1AAA
Muted text7.54:1AAA
Accent7.97:1AAA
Destructive6.30:1AA
Dark mode
Text on background18.81:1AAA
Text on card19.06:1AAA
Primary button7.65:1AAA
Secondary button7.22:1AAA
Muted text7.93:1AAA
Accent7.97:1AAA
Destructive3.96:1AA Large

CSS variables

Paste this into your globals.css to use Fedora in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.121 0.019 7.4);
  --muted: oklch(0.923 0.039 140.972);
  --muted-foreground: oklch(0.394 0.011 141.004);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.121 0.019 7.4);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.105 0.017 7.287);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.289 0.081 14.874);
  --primary-foreground: oklch(0.801 0.07 8.774);
  --secondary: oklch(0.368 0.096 140.812);
  --secondary-foreground: oklch(0.878 0.095 140.839);
  --accent: oklch(0.257 0.084 271.65);
  --accent-foreground: oklch(0.783 0.072 276.81);
  --destructive: oklch(0.438 0.132 39.586);
  --destructive-foreground: oklch(0.911 0.044 44.561);
  --ring: oklch(0.289 0.081 14.874);
  --chart-1: oklch(0.289 0.081 14.874);
  --chart-2: oklch(0.368 0.096 140.812);
  --chart-3: oklch(0.257 0.084 271.65);
  --chart-4: oklch(0.406 0.108 140.829);
  --chart-5: oklch(0.289 0.084 15.447);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.021 7.546);
  --foreground: oklch(0.974 0.005 6.715);
  --muted: oklch(0.263 0.051 140.731);
  --muted-foreground: oklch(0.793 0.009 141.04);
  --popover: oklch(0.12 0.021 7.546);
  --popover-foreground: oklch(0.974 0.005 6.715);
  --card: oklch(0.133 0.025 8.475);
  --card-foreground: oklch(0.983 0.003 6.674);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.289 0.081 14.874);
  --primary-foreground: oklch(0.801 0.07 8.774);
  --secondary: oklch(0.368 0.096 140.812);
  --secondary-foreground: oklch(0.878 0.095 140.839);
  --accent: oklch(0.257 0.084 271.65);
  --accent-foreground: oklch(0.783 0.072 276.81);
  --destructive: oklch(0.62 0.194 38.764);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.289 0.081 14.874);
  --chart-1: oklch(0.289 0.081 14.874);
  --chart-2: oklch(0.368 0.096 140.812);
  --chart-3: oklch(0.257 0.084 271.65);
  --chart-4: oklch(0.406 0.108 140.829);
  --chart-5: oklch(0.289 0.084 15.447);
}