Disguised for shadcn/ui

Disguised is a shadcn/ui theme built around a neutral gray primary color (#282c26) with neutral gray accents (#2c2628). The light mode uses a neutral background (#f9fdf7). Dark mode keeps the neutral gray primary (#282c26) on a neutral background (#020401).

Color palette

TokenLightDark
Background
#f9fdf7mintcream
#020401black
Foreground
#070d02black
#ffffffwhite
Card
#f9fdf7mintcream
#020401black
Card foreground
#070d02black
#ffffffwhite
Popover
#f9fdf7mintcream
#020401black
Popover foreground
#070d02black
#ffffffwhite
Primary
#282c26darkslategray
#282c26darkslategray
Primary foreground
#c1c6besilver
#c1c6besilver
Secondary
#26282cdarkslategray
#26282cdarkslategray
Secondary foreground
#bec1c6silver
#bec1c6silver
Muted
#eceff3whitesmoke
#0c0f13black
Muted foreground
#4c5057darkslategray
#a8acb3darkgray
Accent
#2c2628darkslategray
#2c2628darkslategray
Accent foreground
#c6bec1silver
#c6bec1silver
Destructive
#611405maroon
#ef310borangered
Destructive foreground
#faad9elightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#282c26darkslategray
#282c26darkslategray

Contrast

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

Light mode
Text on background19.08:1AAA
Text on card19.08:1AAA
Primary button8.20:1AAA
Secondary button8.16:1AAA
Muted text7.02:1AAA
Accent8.16:1AAA
Destructive7.14:1AAA
Dark mode
Text on background20.58:1AAA
Text on card20.58:1AAA
Primary button8.20:1AAA
Secondary button8.16:1AAA
Muted text8.44:1AAA
Accent8.16:1AAA
Destructive4.11:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.008 132.416);
  --foreground: oklch(0.147 0.029 130.908);
  --muted: oklch(0.951 0.006 258.329);
  --muted-foreground: oklch(0.431 0.013 258.365);
  --popover: oklch(0.989 0.008 132.416);
  --popover-foreground: oklch(0.147 0.029 130.908);
  --card: oklch(0.989 0.008 132.416);
  --card-foreground: oklch(0.147 0.029 130.908);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.286 0.011 132.661);
  --primary-foreground: oklch(0.82 0.013 132.478);
  --secondary: oklch(0.277 0.007 258.361);
  --secondary-foreground: oklch(0.81 0.008 258.337);
  --accent: oklch(0.276 0.009 351.566);
  --accent-foreground: oklch(0.808 0.011 350.995);
  --destructive: oklch(0.326 0.113 33.233);
  --destructive-foreground: oklch(0.818 0.094 31.707);
  --ring: oklch(0.286 0.011 132.661);
  --chart-1: oklch(0.286 0.011 132.661);
  --chart-2: oklch(0.277 0.007 258.361);
  --chart-3: oklch(0.276 0.009 351.566);
  --chart-4: oklch(0.307 0.008 258.362);
  --chart-5: oklch(0.289 0.016 132.79);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.014 131.058);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.166 0.01 258.371);
  --muted-foreground: oklch(0.744 0.011 258.346);
  --popover: oklch(0.099 0.014 131.058);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.099 0.014 131.058);
  --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.286 0.011 132.661);
  --primary-foreground: oklch(0.82 0.013 132.478);
  --secondary: oklch(0.277 0.007 258.361);
  --secondary-foreground: oklch(0.81 0.008 258.337);
  --accent: oklch(0.276 0.009 351.566);
  --accent-foreground: oklch(0.808 0.011 350.995);
  --destructive: oklch(0.616 0.227 32.191);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.286 0.011 132.661);
  --chart-1: oklch(0.286 0.011 132.661);
  --chart-2: oklch(0.277 0.007 258.361);
  --chart-3: oklch(0.276 0.009 351.566);
  --chart-4: oklch(0.307 0.008 258.362);
  --chart-5: oklch(0.289 0.016 132.79);
}