Backdrop is a shadcn/ui theme built around a muted deep yellow primary color (#2c2c1b) with muted deep indigo accents (#1b1b2c). The light mode uses a neutral background (#fcfcf7). Dark mode keeps the muted deep yellow primary (#2c2c1b) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcf7snow | #000000black |
| Foreground | #040401black | #ffffffwhite |
| Card | #fcfcf7snow | #000000black |
| Card foreground | #040401black | #ffffffwhite |
| Popover | #fcfcf7snow | #000000black |
| Popover foreground | #040401black | #ffffffwhite |
| Primary | #2c2c1bdarkslategray | #2c2c1bdarkslategray |
| Primary foreground | #cdcdadsilver | #cdcdadsilver |
| Secondary | #1b1b2cblack | #1b1b2cblack |
| Secondary foreground | #adadcdlightsteelblue | #adadcdlightsteelblue |
| Muted | #cecee9lightgrey | #161631black |
| Muted foreground | #535355darkslategray | #aaaaacdarkgray |
| Accent | #1b1b2cblack | #1b1b2cblack |
| Accent foreground | #adadcdlightsteelblue | #adadcdlightsteelblue |
| Destructive | #86220esaddlebrown | #de3817orangered |
| Destructive foreground | #fad4ccbisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2c2c1bdarkslategray | #2c2c1bdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.00:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 8.68:1 | AAA |
| Secondary button | 7.76:1 | AAA |
| Muted text | 4.96:1 | AA |
| Accent | 7.76:1 | AAA |
| Destructive | 6.83:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 8.68:1 | AAA |
| Secondary button | 7.76:1 | AAA |
| Muted text | 7.57:1 | AAA |
| Accent | 7.76:1 | AAA |
| Destructive | 4.49:1 | AA Large |
Paste this into your globals.css to use Backdrop in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.006 106.517);
--foreground: oklch(0.103 0.013 108.536);
--muted: oklch(0.859 0.037 285.587);
--muted-foreground: oklch(0.444 0.003 286.289);
--popover: oklch(0.991 0.006 106.517);
--popover-foreground: oklch(0.103 0.013 108.536);
--card: oklch(0.991 0.006 106.517);
--card-foreground: oklch(0.103 0.013 108.536);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.289 0.029 108.093);
--primary-foreground: oklch(0.839 0.043 107.289);
--secondary: oklch(0.231 0.033 283.532);
--secondary-foreground: oklch(0.757 0.045 285.267);
--accent: oklch(0.231 0.033 283.532);
--accent-foreground: oklch(0.757 0.045 285.267);
--destructive: oklch(0.412 0.138 33.017);
--destructive-foreground: oklch(0.899 0.044 31.217);
--ring: oklch(0.289 0.029 108.093);
--chart-1: oklch(0.289 0.029 108.093);
--chart-2: oklch(0.231 0.033 283.532);
--chart-3: oklch(0.231 0.033 283.532);
--chart-4: oklch(0.258 0.039 283.34);
--chart-5: oklch(0.293 0.032 108.244);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.217 0.052 281.137);
--muted-foreground: oklch(0.739 0.002 286.341);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.289 0.029 108.093);
--primary-foreground: oklch(0.839 0.043 107.289);
--secondary: oklch(0.231 0.033 283.532);
--secondary-foreground: oklch(0.757 0.045 285.267);
--accent: oklch(0.231 0.033 283.532);
--accent-foreground: oklch(0.757 0.045 285.267);
--destructive: oklch(0.592 0.206 32.806);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.289 0.029 108.093);
--chart-1: oklch(0.289 0.029 108.093);
--chart-2: oklch(0.231 0.033 283.532);
--chart-3: oklch(0.231 0.033 283.532);
--chart-4: oklch(0.258 0.039 283.34);
--chart-5: oklch(0.293 0.032 108.244);
}