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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.28:1 | AAA |
| Text on card | 20.13:1 | AAA |
| Primary button | 7.65:1 | AAA |
| Secondary button | 7.22:1 | AAA |
| Muted text | 7.54:1 | AAA |
| Accent | 7.97:1 | AAA |
| Destructive | 6.30:1 | AA |
| Text on background | 18.81:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 7.65:1 | AAA |
| Secondary button | 7.22:1 | AAA |
| Muted text | 7.93:1 | AAA |
| Accent | 7.97:1 | AAA |
| Destructive | 3.96:1 | AA Large |
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);
}