Downstairs is a shadcn/ui theme built around a muted deep blue primary color (#3b454f) with muted deep indigo accents (#3b3b4f). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep blue primary (#3b454f) on a neutral background (#010304).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010304black |
| Foreground | #010509black | #f8fafbghostwhite |
| Card | #fcfcfcsnow | #030507black |
| Card foreground | #010305black | #fcfcfdwhite |
| Popover | #fcfcfcsnow | #030507black |
| Popover foreground | #010305black | #fcfcfdwhite |
| Primary | #3b454fdarkslategray | #3b454fdarkslategray |
| Primary foreground | #d9dee3gainsboro | #d9dee3gainsboro |
| Secondary | #3b4f4fdarkslategray | #3b4f4fdarkslategray |
| Secondary foreground | #d9e3e3gainsboro | #d9e3e3gainsboro |
| Muted | #cae7e7gainsboro | #183534darkslategray |
| Muted foreground | #414848darkslategray | #b7bebdsilver |
| Accent | #3b3b4fdarkslategray | #3b3b4fdarkslategray |
| Accent foreground | #d9d9e3gainsboro | #d9d9e3gainsboro |
| Destructive | #ae150afirebrick | #f34135tomato |
| Destructive foreground | #feedeclinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3b454fdarkslategray | #3b454fdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.44:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 7.20:1 | AAA |
| Secondary button | 6.63:1 | AA |
| Muted text | 7.18:1 | AAA |
| Accent | 7.80:1 | AAA |
| Destructive | 6.39:1 | AA |
| Text on background | 19.76:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 7.20:1 | AAA |
| Secondary button | 6.63:1 | AA |
| Muted text | 6.97:1 | AA |
| Accent | 7.80:1 | AAA |
| Destructive | 3.72:1 | AA Large |
Paste this into your globals.css to use Downstairs in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.111 0.017 235.231);
--muted: oklch(0.908 0.031 195.396);
--muted-foreground: oklch(0.396 0.009 195.581);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.088 0.013 235.231);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.088 0.013 235.231);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.386 0.022 246.618);
--primary-foreground: oklch(0.898 0.009 246.077);
--secondary: oklch(0.411 0.026 194.922);
--secondary-foreground: oklch(0.908 0.011 195.769);
--accent: oklch(0.36 0.035 283.741);
--accent-foreground: oklch(0.888 0.013 285.346);
--destructive: oklch(0.478 0.185 29.732);
--destructive-foreground: oklch(0.959 0.019 22.438);
--ring: oklch(0.386 0.022 246.618);
--chart-1: oklch(0.386 0.022 246.618);
--chart-2: oklch(0.411 0.026 194.922);
--chart-3: oklch(0.36 0.035 283.741);
--chart-4: oklch(0.441 0.028 194.907);
--chart-5: oklch(0.385 0.026 246.754);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.09 0.007 240.094);
--foreground: oklch(0.984 0.003 245.996);
--muted: oklch(0.305 0.035 194.054);
--muted-foreground: oklch(0.795 0.008 195.806);
--popover: oklch(0.113 0.009 240.094);
--popover-foreground: oklch(0.992 0.001 245.981);
--card: oklch(0.113 0.009 240.094);
--card-foreground: oklch(0.992 0.001 245.981);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.386 0.022 246.618);
--primary-foreground: oklch(0.898 0.009 246.077);
--secondary: oklch(0.411 0.026 194.922);
--secondary-foreground: oklch(0.908 0.011 195.769);
--accent: oklch(0.36 0.035 283.741);
--accent-foreground: oklch(0.888 0.013 285.346);
--destructive: oklch(0.64 0.216 28.794);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.386 0.022 246.618);
--chart-1: oklch(0.386 0.022 246.618);
--chart-2: oklch(0.411 0.026 194.922);
--chart-3: oklch(0.36 0.035 283.741);
--chart-4: oklch(0.441 0.028 194.907);
--chart-5: oklch(0.385 0.026 246.754);
}