Downgrade is a shadcn/ui theme built around a near-black primary color (#04040c) with near-black accents (#08040c). The light mode uses a neutral background (#f8f7fd). Dark mode keeps the near-black primary (#04040c) on an indigo-tinted background (#06050a).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f7fdghostwhite | #06050ablack |
| Foreground | #04030cblack | #fcfcfdwhite |
| Card | #f4f3fbwhitesmoke | #08070dblack |
| Card foreground | #030208black | #ffffffwhite |
| Popover | #f4f3fbwhitesmoke | #08070dblack |
| Popover foreground | #030208black | #ffffffwhite |
| Primary | #04040cblack | #04040cblack |
| Primary foreground | #c0beealightsteelblue | #c0beealightsteelblue |
| Secondary | #04070cblack | #04070cblack |
| Secondary foreground | #719ad1cornflowerblue | #719ad1cornflowerblue |
| Muted | #e3eaf3lavender | #0c131cblack |
| Muted foreground | #424952darkslategray | #adb4bdsilver |
| Accent | #08040cblack | #08040cblack |
| Accent foreground | #d7beeathistle | #d7beeathistle |
| Destructive | #740d02maroon | #fb2109red |
| Destructive foreground | #feb2aalightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #04040cblack | #04040cblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.25:1 | AAA |
| Text on card | 18.78:1 | AAA |
| Primary button | 11.48:1 | AAA |
| Secondary button | 6.96:1 | AA |
| Muted text | 7.48:1 | AAA |
| Accent | 12.05:1 | AAA |
| Destructive | 6.77:1 | AA |
| Text on background | 19.79:1 | AAA |
| Text on card | 20.06:1 | AAA |
| Primary button | 11.48:1 | AAA |
| Secondary button | 6.96:1 | AA |
| Muted text | 8.89:1 | AAA |
| Accent | 12.05:1 | AAA |
| Destructive | 3.93:1 | AA Large |
Paste this into your globals.css to use Downgrade in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.978 0.007 289.338);
--foreground: oklch(0.109 0.025 285.925);
--muted: oklch(0.933 0.014 255.033);
--muted-foreground: oklch(0.402 0.018 255.151);
--popover: oklch(0.968 0.011 289.265);
--popover-foreground: oklch(0.095 0.022 286.015);
--card: oklch(0.968 0.011 289.265);
--card-foreground: oklch(0.095 0.022 286.015);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.112 0.022 286.518);
--primary-foreground: oklch(0.817 0.062 288.002);
--secondary: oklch(0.127 0.013 247.906);
--secondary-foreground: oklch(0.678 0.093 255.434);
--accent: oklch(0.119 0.023 312.493);
--accent-foreground: oklch(0.835 0.066 310.396);
--destructive: oklch(0.357 0.137 31.067);
--destructive-foreground: oklch(0.833 0.09 26.228);
--ring: oklch(0.112 0.022 286.518);
--chart-1: oklch(0.112 0.022 286.518);
--chart-2: oklch(0.127 0.013 247.906);
--chart-3: oklch(0.119 0.023 312.493);
--chart-4: oklch(0.163 0.022 254.747);
--chart-5: oklch(0.11 0.023 286.232);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.012 288.063);
--foreground: oklch(0.992 0.001 289.464);
--muted: oklch(0.186 0.021 255.358);
--muted-foreground: oklch(0.767 0.015 255.054);
--popover: oklch(0.134 0.014 287.827);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.134 0.014 287.827);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.112 0.022 286.518);
--primary-foreground: oklch(0.817 0.062 288.002);
--secondary: oklch(0.127 0.013 247.906);
--secondary-foreground: oklch(0.678 0.093 255.434);
--accent: oklch(0.119 0.023 312.493);
--accent-foreground: oklch(0.835 0.066 310.396);
--destructive: oklch(0.63 0.246 30.329);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.112 0.022 286.518);
--chart-1: oklch(0.112 0.022 286.518);
--chart-2: oklch(0.127 0.013 247.906);
--chart-3: oklch(0.119 0.023 312.493);
--chart-4: oklch(0.163 0.022 254.747);
--chart-5: oklch(0.11 0.023 286.232);
}