Backdrop for shadcn/ui

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

Color palette

TokenLightDark
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

Contrast

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

Light mode
Text on background20.00:1AAA
Text on card20.00:1AAA
Primary button8.68:1AAA
Secondary button7.76:1AAA
Muted text4.96:1AA
Accent7.76:1AAA
Destructive6.83:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button8.68:1AAA
Secondary button7.76:1AAA
Muted text7.57:1AAA
Accent7.76:1AAA
Destructive4.49:1AA Large

CSS variables

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