Backdoor for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.85:1AAA
Text on card19.93:1AAA
Primary button6.87:1AA
Secondary button6.90:1AA
Muted text8.04:1AAA
Accent6.96:1AA
Destructive6.93:1AA
Dark mode
Text on background5.44:1AA
Text on card17.70:1AAA
Primary button3.75:1AA Large
Secondary button2.65:1Fail
Muted text10.45:1AAA
Accent2.97:1Fail
Destructive4.78:1AA

CSS variables

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);
}