Deserted for shadcn/ui

Deserted is a shadcn/ui theme built around a muted deep pink primary color (#0b090a) with muted deep green accents (#090b0a). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep pink primary (#0b090a) on a neutral background (#080305).

Color palette

TokenLightDark
Background
#ffffffwhite
#080305black
Foreground
#040103black
#f9f6f8whitesmoke
Card
#fcfcfcsnow
#0b0408black
Card foreground
#000000black
#fbf9fasnow
Popover
#ffffffwhite
#080305black
Popover foreground
#040103black
#f9f6f8whitesmoke
Primary
#0b090ablack
#0b090ablack
Primary foreground
#ae98a5darkgray
#ae98a5darkgray
Secondary
#090b0ablack
#090b0ablack
Secondary foreground
#98aea2darkgray
#98aea2darkgray
Muted
#f0f5f2whitesmoke
#0a0f0cblack
Muted foreground
#4f6358dimgray
#9cb0a4darkgray
Accent
#090b0ablack
#090b0ablack
Accent foreground
#98aea2darkgray
#98aea2darkgray
Destructive
#c53d07firebrick
#f65313orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0b090ablack
#0b090ablack

Contrast

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

Light mode
Text on background20.77:1AAA
Text on card20.54:1AAA
Primary button7.40:1AAA
Secondary button8.36:1AAA
Muted text5.83:1AA
Accent8.36:1AAA
Destructive5.19:1AA
Dark mode
Text on background19.11:1AAA
Text on card19.35:1AAA
Primary button7.40:1AAA
Secondary button8.36:1AAA
Muted text8.41:1AAA
Accent8.36:1AAA
Destructive3.39:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.082 0.022 341.839);
  --muted: oklch(0.965 0.006 161.65);
  --muted-foreground: oklch(0.48 0.03 160.218);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.082 0.022 341.839);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.144 0.005 342.392);
  --primary-foreground: oklch(0.704 0.031 342.839);
  --secondary: oklch(0.148 0.005 161.339);
  --secondary-foreground: oklch(0.731 0.03 160.77);
  --accent: oklch(0.148 0.005 161.339);
  --accent-foreground: oklch(0.731 0.03 160.77);
  --destructive: oklch(0.553 0.181 37.304);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.144 0.005 342.392);
  --chart-1: oklch(0.144 0.005 342.392);
  --chart-2: oklch(0.148 0.005 161.339);
  --chart-3: oklch(0.148 0.005 161.339);
  --chart-4: oklch(0.186 0.008 160.685);
  --chart-5: oklch(0.143 0.007 342.503);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.019 341.828);
  --foreground: oklch(0.975 0.005 341.925);
  --muted: oklch(0.163 0.01 160.295);
  --muted-foreground: oklch(0.737 0.027 160.896);
  --popover: oklch(0.108 0.019 341.828);
  --popover-foreground: oklch(0.975 0.005 341.925);
  --card: oklch(0.123 0.021 342.026);
  --card-foreground: oklch(0.983 0.003 341.885);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.144 0.005 342.392);
  --primary-foreground: oklch(0.704 0.031 342.839);
  --secondary: oklch(0.148 0.005 161.339);
  --secondary-foreground: oklch(0.731 0.03 160.77);
  --accent: oklch(0.148 0.005 161.339);
  --accent-foreground: oklch(0.731 0.03 160.77);
  --destructive: oklch(0.661 0.209 37.955);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.144 0.005 342.392);
  --chart-1: oklch(0.144 0.005 342.392);
  --chart-2: oklch(0.148 0.005 161.339);
  --chart-3: oklch(0.148 0.005 161.339);
  --chart-4: oklch(0.186 0.008 160.685);
  --chart-5: oklch(0.143 0.007 342.503);
}