Backdoor is a shadcn/ui theme built around a deep teal primary color (#1d4e3a) with deep cyan accents (#1d4a4e). The light mode uses a neutral background (#fbfefd). Dark mode switches to a vivid red primary (#e44f26) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #000000black |
| Foreground | #010906black | #e44f26chocolate |
| Card | #f6fdfamintcream | #141416black |
| Card foreground | #010503black | #f9fbfamintcream |
| Popover | #fbfefdwhite | #040b08black |
| Popover foreground | #010906black | #fcfcfewhite |
| Primary | #1d4e3adarkslategray | #e44f26chocolate |
| Primary foreground | #b8e5d2powderblue | #fcfcfcsnow |
| Secondary | #1d4e21darkgreen | #cc652bchocolate |
| Secondary foreground | #b8e5bcsilver | #d7d6d7lightgrey |
| Muted | #eaf1eawhitesmoke | #0c0b0eblack |
| Muted foreground | #3f4a40darkslategray | #b5c0b6silver |
| Accent | #1d4a4edarkslategray | #00902bforestgreen |
| Accent foreground | #b8e1e5powderblue | #b8e1e5powderblue |
| Destructive | #971111darkred | #d72c27crimson |
| Destructive foreground | #fbdfdfmistyrose | #fcfcfcsnow |
| Border | #e1e5e3gainsboro | #171c1ablack |
| Input | #e1e5e3gainsboro | #586a84dimgray |
| Ring | #1d4e3adarkslategray | #1d4e3adarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.85:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 6.87:1 | AA |
| Secondary button | 6.90:1 | AA |
| Muted text | 8.04:1 | AAA |
| Accent | 6.96:1 | AA |
| Destructive | 6.93:1 | AA |
| Text on background | 5.44:1 | AA |
| Text on card | 17.70:1 | AAA |
| Primary button | 3.75:1 | AA Large |
| Secondary button | 2.65:1 | Fail |
| Muted text | 10.45:1 | AAA |
| Accent | 2.97:1 | Fail |
| Destructive | 4.78:1 | AA |
Paste this into your globals.css to use Backdoor in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 169.553);
--foreground: oklch(0.127 0.02 170.006);
--muted: oklch(0.95 0.011 147.943);
--muted-foreground: oklch(0.397 0.022 147.465);
--popover: oklch(0.995 0.004 169.553);
--popover-foreground: oklch(0.127 0.02 170.006);
--card: oklch(0.989 0.008 169.434);
--card-foreground: oklch(0.101 0.016 170.006);
--border: oklch(0.919 0.005 169.503);
--input: oklch(0.919 0.005 169.503);
--primary: oklch(0.384 0.064 163.187);
--primary-foreground: oklch(0.885 0.053 167.856);
--secondary: oklch(0.379 0.091 145.014);
--secondary-foreground: oklch(0.879 0.072 147.154);
--accent: oklch(0.38 0.049 203.42);
--accent-foreground: oklch(0.882 0.043 203.22);
--destructive: oklch(0.433 0.167 27.917);
--destructive-foreground: oklch(0.927 0.032 17.736);
--ring: oklch(0.384 0.064 163.187);
--chart-1: oklch(0.384 0.064 163.187);
--chart-2: oklch(0.379 0.091 145.014);
--chart-3: oklch(0.38 0.049 203.42);
--chart-4: oklch(0.415 0.101 144.948);
--chart-5: oklch(0.389 0.067 162.776);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.627 0.192 35.643);
--muted: oklch(0.152 0.007 300.801);
--muted-foreground: oklch(0.795 0.019 147.816);
--popover: oklch(0.14 0.015 169.717);
--popover-foreground: oklch(0.992 0.003 286.352);
--card: oklch(0.192 0.004 286.018);
--card-foreground: oklch(0.986 0.002 169.608);
--border: oklch(0.219 0.007 168.743);
--input: oklch(0.52 0.047 257.519);
--primary: oklch(0.627 0.192 35.643);
--primary-foreground: oklch(0.991 0 180);
--secondary: oklch(0.62 0.148 46.766);
--secondary-foreground: oklch(0.877 0.002 325.591);
--accent: oklch(0.568 0.175 145.777);
--accent-foreground: oklch(0.882 0.043 203.22);
--destructive: oklch(0.572 0.207 27.908);
--destructive-foreground: oklch(0.991 0 180);
--ring: oklch(0.384 0.064 163.187);
--chart-1: oklch(0.384 0.064 163.187);
--chart-2: oklch(0.379 0.091 145.014);
--chart-3: oklch(0.38 0.049 203.42);
--chart-4: oklch(0.415 0.101 144.948);
--chart-5: oklch(0.389 0.067 162.776);
}