Disguise for shadcn/ui

Disguise is a shadcn/ui theme built around a deep violet primary color (#2e204c) with deep purple accents (#44204c). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep violet primary (#2e204c) on a violet-tinted background (#06030c).

Color palette

TokenLightDark
Background
#ffffffwhite
#06030cblack
Foreground
#080410black
#f6f5fawhitesmoke
Card
#fcfcfcsnow
#080410black
Card foreground
#06030cblack
#f9f8fcghostwhite
Popover
#ffffffwhite
#06030cblack
Popover foreground
#080410black
#f6f5fawhitesmoke
Primary
#2e204cmidnightblue
#2e204cmidnightblue
Primary foreground
#c8bbe2thistle
#c8bbe2thistle
Secondary
#20274cmidnightblue
#20274cmidnightblue
Secondary foreground
#bbc1e2lightsteelblue
#bbc1e2lightsteelblue
Muted
#eeeff7whitesmoke
#080a11black
Muted foreground
#404040darkslategray
#bfbfbfsilver
Accent
#44204cdarkslategray
#44204cdarkslategray
Accent foreground
#dcbbe2thistle
#dcbbe2thistle
Destructive
#a31c0ffirebrick
#db2514firebrick
Destructive foreground
#fde9e8linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2e204cmidnightblue
#2e204cmidnightblue

Contrast

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

Light mode
Text on background20.28:1AAA
Text on card20.02:1AAA
Primary button8.19:1AAA
Secondary button8.15:1AAA
Muted text9.06:1AAA
Accent7.89:1AAA
Destructive6.58:1AA
Dark mode
Text on background18.84:1AAA
Text on card19.14:1AAA
Primary button8.19:1AAA
Secondary button8.15:1AAA
Muted text10.75:1AAA
Accent7.89:1AAA
Destructive4.88:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.124 0.031 300.487);
  --muted: oklch(0.954 0.01 277.117);
  --muted-foreground: oklch(0.371 0 168.69);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.124 0.031 300.487);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.112 0.027 301.819);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.284 0.078 296.452);
  --primary-foreground: oklch(0.815 0.057 300.363);
  --secondary: oklch(0.286 0.068 272.92);
  --secondary-foreground: oklch(0.817 0.047 276.393);
  --accent: oklch(0.313 0.087 320.735);
  --accent-foreground: oklch(0.832 0.065 320.647);
  --destructive: oklch(0.463 0.172 30.038);
  --destructive-foreground: oklch(0.95 0.021 23.812);
  --ring: oklch(0.284 0.078 296.452);
  --chart-1: oklch(0.284 0.078 296.452);
  --chart-2: oklch(0.286 0.068 272.92);
  --chart-3: oklch(0.313 0.087 320.735);
  --chart-4: oklch(0.311 0.076 272.764);
  --chart-5: oklch(0.282 0.084 295.954);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.114 0.025 301.825);
  --foreground: oklch(0.972 0.007 301.372);
  --muted: oklch(0.146 0.016 275.032);
  --muted-foreground: oklch(0.805 0 169.695);
  --popover: oklch(0.114 0.025 301.825);
  --popover-foreground: oklch(0.972 0.007 301.372);
  --card: oklch(0.126 0.029 300.556);
  --card-foreground: oklch(0.981 0.005 301.413);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.284 0.078 296.452);
  --primary-foreground: oklch(0.815 0.057 300.363);
  --secondary: oklch(0.286 0.068 272.92);
  --secondary-foreground: oklch(0.817 0.047 276.393);
  --accent: oklch(0.313 0.087 320.735);
  --accent-foreground: oklch(0.832 0.065 320.647);
  --destructive: oklch(0.574 0.217 30.078);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.284 0.078 296.452);
  --chart-1: oklch(0.284 0.078 296.452);
  --chart-2: oklch(0.286 0.068 272.92);
  --chart-3: oklch(0.313 0.087 320.735);
  --chart-4: oklch(0.311 0.076 272.764);
  --chart-5: oklch(0.282 0.084 295.954);
}