Chateau for shadcn/ui

Chateau is a shadcn/ui theme built around a neutral gray primary color (#2e2d2f) with neutral gray accents (#2f2d2f). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#2e2d2f) on a violet-tinted background (#0a050f).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a050fblack
Foreground
#030105black
#ffffffwhite
Card
#fcfcfcsnow
#0d0713black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#0d0713black
Popover foreground
#000000black
#ffffffwhite
Primary
#2e2d2fdarkslategray
#2e2d2fdarkslategray
Primary foreground
#c7c5c9silver
#c7c5c9silver
Secondary
#2d2d2fdarkslategray
#2d2d2fdarkslategray
Secondary foreground
#c5c5c9silver
#c5c5c9silver
Muted
#e4e4f2lavender
#0d0d1bblack
Muted foreground
#3c3c4edarkslategray
#b1b1c3silver
Accent
#2f2d2fdarkslategray
#2f2d2fdarkslategray
Accent foreground
#c9c5c9silver
#c9c5c9silver
Destructive
#c04807chocolate
#f87935coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2e2d2fdarkslategray
#2e2d2fdarkslategray

Contrast

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

Light mode
Text on background20.78:1AAA
Text on card20.54:1AAA
Primary button8.03:1AAA
Secondary button8.03:1AAA
Muted text8.53:1AAA
Accent8.03:1AAA
Destructive5.04:1AA
Dark mode
Text on background20.13:1AAA
Text on card19.90:1AAA
Primary button8.03:1AAA
Secondary button8.03:1AAA
Muted text9.09:1AAA
Accent8.03:1AAA
Destructive7.78:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.076 0.026 310.939);
  --muted: oklch(0.922 0.019 286.027);
  --muted-foreground: oklch(0.363 0.031 284.769);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --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.298 0.005 308.264);
  --primary-foreground: oklch(0.826 0.005 308.393);
  --secondary: oklch(0.296 0.005 286.095);
  --secondary-foreground: oklch(0.825 0.005 286.297);
  --accent: oklch(0.299 0.006 325.732);
  --accent-foreground: oklch(0.828 0.006 325.63);
  --destructive: oklch(0.558 0.167 41.578);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.298 0.005 308.264);
  --chart-1: oklch(0.298 0.005 308.264);
  --chart-2: oklch(0.296 0.005 286.095);
  --chart-3: oklch(0.299 0.006 325.732);
  --chart-4: oklch(0.326 0.006 286.084);
  --chart-5: oklch(0.295 0.011 308.064);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.132 0.025 308.222);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.169 0.029 282.897);
  --muted-foreground: oklch(0.767 0.025 285.787);
  --popover: oklch(0.143 0.028 306.907);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.143 0.028 306.907);
  --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.298 0.005 308.264);
  --primary-foreground: oklch(0.826 0.005 308.393);
  --secondary: oklch(0.296 0.005 286.095);
  --secondary-foreground: oklch(0.825 0.005 286.297);
  --accent: oklch(0.299 0.006 325.732);
  --accent-foreground: oklch(0.828 0.006 325.63);
  --destructive: oklch(0.714 0.174 45.784);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.298 0.005 308.264);
  --chart-1: oklch(0.298 0.005 308.264);
  --chart-2: oklch(0.296 0.005 286.095);
  --chart-3: oklch(0.299 0.006 325.732);
  --chart-4: oklch(0.326 0.006 286.084);
  --chart-5: oklch(0.295 0.011 308.064);
}