Noir Mystique Perch for shadcn/ui

Noir Mystique Perch is a shadcn/ui theme built around a deep yellow primary color (#221d11) with muted light yellow accents (#d8d0bb). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the deep yellow primary (#221d11) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#fdfbf7snow
#030302black
Foreground
#050301black
#fbfaf9snow
Card
#fdfbf7snow
#030302black
Card foreground
#050301black
#fbfaf9snow
Popover
#fdfbf7snow
#030302black
Popover foreground
#050301black
#fbfaf9snow
Primary
#221d11black
#221d11black
Primary foreground
#ccbe99tan
#ccbe99tan
Secondary
#e4e1d7gainsboro
#2c2921darkslategray
Secondary foreground
#534b37darkolivegreen
#c8c3b6silver
Muted
#ecebe9linen
#161513black
Muted foreground
#605a48darkolivegreen
#b7b09fdarkgray
Accent
#d8d0bblightgrey
#413b2adarkslategray
Accent foreground
#3e3723darkslategray
#d9d4c4lightgrey
Destructive
#802f00saddlebrown
#ff670forangered
Destructive foreground
#ffcfb3peachpuff
#000000black
Border
#e4e3e2gainsboro
#252423darkslategray
Input
#e4e3e2gainsboro
#252423darkslategray
Ring
#221d11black
#221d11black

Contrast

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

Light mode
Text on background19.97:1AAA
Text on card19.97:1AAA
Primary button9.07:1AAA
Secondary button6.61:1AA
Muted text5.79:1AA
Accent7.70:1AAA
Destructive6.41:1AA
Dark mode
Text on background19.79:1AAA
Text on card19.79:1AAA
Primary button9.07:1AAA
Secondary button8.28:1AAA
Muted text8.43:1AAA
Accent7.50:1AAA
Destructive7.20:1AAA

CSS variables

Paste this into your globals.css to use Noir Mystique Perch in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.006 90.17);
  --foreground: oklch(0.102 0.017 96.892);
  --muted: oklch(0.941 0.004 90.151);
  --muted-foreground: oklch(0.467 0.028 90.423);
  --popover: oklch(0.989 0.006 90.17);
  --popover-foreground: oklch(0.102 0.017 96.892);
  --card: oklch(0.989 0.006 90.17);
  --card-foreground: oklch(0.102 0.017 96.892);
  --border: oklch(0.917 0.002 90.135);
  --input: oklch(0.917 0.002 90.135);
  --primary: oklch(0.234 0.023 90.348);
  --primary-foreground: oklch(0.804 0.052 90.429);
  --secondary: oklch(0.91 0.014 90.23);
  --secondary-foreground: oklch(0.415 0.033 90.421);
  --accent: oklch(0.859 0.03 90.343);
  --accent-foreground: oklch(0.337 0.033 90.356);
  --destructive: oklch(0.416 0.122 43.337);
  --destructive-foreground: oklch(0.888 0.067 51.626);
  --ring: oklch(0.234 0.023 90.348);
  --chart-1: oklch(0.234 0.023 90.348);
  --chart-2: oklch(0.91 0.014 90.23);
  --chart-3: oklch(0.859 0.03 90.343);
  --chart-4: oklch(0.931 0.01 90.204);
  --chart-5: oklch(0.236 0.025 90.297);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.006 93.146);
  --foreground: oklch(0.986 0.002 90.135);
  --muted: oklch(0.197 0.005 90.308);
  --muted-foreground: oklch(0.759 0.025 90.335);
  --popover: oklch(0.096 0.006 93.146);
  --popover-foreground: oklch(0.986 0.002 90.135);
  --card: oklch(0.096 0.006 93.146);
  --card-foreground: oklch(0.986 0.002 90.135);
  --border: oklch(0.261 0.003 90.206);
  --input: oklch(0.261 0.003 90.206);
  --primary: oklch(0.234 0.023 90.348);
  --primary-foreground: oklch(0.804 0.052 90.429);
  --secondary: oklch(0.28 0.014 90.406);
  --secondary-foreground: oklch(0.819 0.019 90.28);
  --accent: oklch(0.354 0.029 90.413);
  --accent-foreground: oklch(0.869 0.022 90.294);
  --destructive: oklch(0.698 0.202 43.032);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.234 0.023 90.348);
  --chart-1: oklch(0.234 0.023 90.348);
  --chart-2: oklch(0.28 0.014 90.406);
  --chart-3: oklch(0.354 0.029 90.413);
  --chart-4: oklch(0.313 0.017 90.412);
  --chart-5: oklch(0.236 0.025 90.297);
}