backdoor for shadcn/ui

backdoor is a shadcn/ui theme built around an orange primary color (#ca652b) with muted light orange accents (#ded7d4). The light mode uses a neutral background (#ffffff). Dark mode keeps the orange primary (#ca652b) on a neutral background (#030202).

Color palette

TokenLightDark
Background
#ffffffwhite
#030202black
Foreground
#040201black
#fcf9f8snow
Card
#ffffffwhite
#030202black
Card foreground
#040201black
#fcf9f8snow
Popover
#ffffffwhite
#030202black
Popover foreground
#040201black
#fcf9f8snow
Primary
#ca652bchocolate
#ca652bchocolate
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#ded7d4gainsboro
#222225black
Secondary foreground
#483e37darkslategray
#d7d6d7lightgrey
Muted
#eee0d8antiquewhite
#141416black
Muted foreground
#443f3bdarkslategray
#627693slategray
Accent
#ded7d4gainsboro
#141416black
Accent foreground
#483e37darkslategray
#c7c7c6silver
Destructive
#b8240afirebrick
#d72c27crimson
Destructive foreground
#fef7f5floralwhite
#ffffffwhite
Border
#ebe7e5linen
#221e1bblack
Input
#ebe7e5linen
#221e1bblack
Ring
#ca652bchocolate
#ca652bchocolate

Contrast

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

Light mode
Text on background20.70:1AAA
Text on card20.70:1AAA
Primary button3.87:1AA Large
Secondary button7.33:1AAA
Muted text8.06:1AAA
Accent7.33:1AAA
Destructive6.01:1AA
Dark mode
Text on background19.74:1AAA
Text on card19.74:1AAA
Primary button3.87:1AA Large
Secondary button10.94:1AAA
Muted text3.97:1AA Large
Accent10.87:1AAA
Destructive4.90:1AA

CSS variables

Paste this into your globals.css to use backdoor in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.092 0.011 61.636);
  --muted: oklch(0.916 0.018 52.316);
  --muted-foreground: oklch(0.371 0.01 52.24);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.092 0.011 61.636);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.092 0.011 61.636);
  --border: oklch(0.931 0.005 52.512);
  --input: oklch(0.931 0.005 52.512);
  --primary: oklch(0.618 0.146 47.382);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.884 0.009 52.449);
  --secondary-foreground: oklch(0.371 0.018 51.962);
  --accent: oklch(0.884 0.009 52.449);
  --accent-foreground: oklch(0.371 0.018 51.962);
  --destructive: oklch(0.508 0.187 31.873);
  --destructive-foreground: oklch(0.981 0.009 29.498);
  --ring: oklch(0.618 0.146 47.382);
  --chart-1: oklch(0.618 0.146 47.382);
  --chart-2: oklch(0.884 0.009 52.449);
  --chart-3: oklch(0.884 0.009 52.449);
  --chart-4: oklch(0.908 0.007 52.478);
  --chart-5: oklch(0.621 0.152 46.923);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.092 0.006 57.378);
  --foreground: oklch(0.985 0.003 52.534);
  --muted: oklch(0.192 0.004 286.018);
  --muted-foreground: oklch(0.561 0.051 257.519);
  --popover: oklch(0.092 0.006 57.378);
  --popover-foreground: oklch(0.985 0.003 52.534);
  --card: oklch(0.092 0.006 57.378);
  --card-foreground: oklch(0.985 0.003 52.534);
  --border: oklch(0.238 0.009 52.099);
  --input: oklch(0.238 0.009 52.099);
  --primary: oklch(0.618 0.146 47.382);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.253 0.006 285.939);
  --secondary-foreground: oklch(0.877 0.002 325.591);
  --accent: oklch(0.192 0.004 286.018);
  --accent-foreground: oklch(0.829 0.001 52.564);
  --destructive: oklch(0.572 0.207 27.908);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.618 0.146 47.382);
  --chart-1: oklch(0.618 0.146 47.382);
  --chart-2: oklch(0.301 0.002 106.506);
  --chart-3: oklch(0.301 0.001 52.533);
  --chart-4: oklch(0.331 0.001 52.531);
  --chart-5: oklch(0.621 0.152 46.923);
}