Gown for shadcn/ui

Gown is a shadcn/ui theme built around a muted deep teal primary color (#355f4e) with muted light teal accents (#bedacf). The light mode uses a neutral background (#fbfefd). Dark mode keeps the muted deep teal primary (#355f4e) on a neutral background (#030806).

Color palette

TokenLightDark
Background
#fbfefdwhite
#030806black
Foreground
#03110cblack
#fcfdfdwhite
Card
#fbfefdwhite
#030806black
Card foreground
#03110cblack
#fcfdfdwhite
Popover
#fbfefdwhite
#030806black
Popover foreground
#03110cblack
#fcfdfdwhite
Primary
#355f4edarkslategray
#355f4edarkslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e1eae6gainsboro
#2a2d2cdarkslategray
Secondary foreground
#3e5b4fdarkslategray
#c2c7c5silver
Muted
#eff5f3whitesmoke
#0a100dblack
Muted foreground
#5c6a65dimgray
#95a39ddarkgray
Accent
#bedacflightgrey
#35403cdarkslategray
Accent foreground
#254136darkslategray
#d0d8d4lightgrey
Destructive
#ba4603firebrick
#f15b04orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#355f4edarkslategray
#355f4edarkslategray

Contrast

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

Light mode
Text on background18.99:1AAA
Text on card18.99:1AAA
Primary button7.21:1AAA
Secondary button6.09:1AA
Muted text5.14:1AA
Accent7.48:1AAA
Destructive5.30:1AA
Dark mode
Text on background19.84:1AAA
Text on card19.84:1AAA
Primary button7.21:1AAA
Secondary button8.12:1AAA
Muted text7.33:1AAA
Accent7.41:1AAA
Destructive3.36:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 170.52);
  --foreground: oklch(0.163 0.026 167.732);
  --muted: oklch(0.966 0.007 170.417);
  --muted-foreground: oklch(0.512 0.019 169.52);
  --popover: oklch(0.994 0.004 170.52);
  --popover-foreground: oklch(0.163 0.026 167.732);
  --card: oklch(0.994 0.004 170.52);
  --card-foreground: oklch(0.163 0.026 167.732);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.45 0.056 166.266);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.93 0.012 170.265);
  --secondary-foreground: oklch(0.445 0.04 167.745);
  --accent: oklch(0.865 0.034 169.445);
  --accent-foreground: oklch(0.35 0.04 166.694);
  --destructive: oklch(0.546 0.163 42.272);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.45 0.056 166.266);
  --chart-1: oklch(0.45 0.056 166.266);
  --chart-2: oklch(0.93 0.012 170.265);
  --chart-3: oklch(0.865 0.034 169.445);
  --chart-4: oklch(0.951 0.008 170.38);
  --chart-5: oklch(0.455 0.061 165.82);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.013 170.854);
  --foreground: oklch(0.994 0.002 170.561);
  --muted: oklch(0.164 0.01 168.652);
  --muted-foreground: oklch(0.701 0.018 169.884);
  --popover: oklch(0.123 0.013 170.854);
  --popover-foreground: oklch(0.994 0.002 170.561);
  --card: oklch(0.123 0.013 170.854);
  --card-foreground: oklch(0.994 0.002 170.561);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.45 0.056 166.266);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.294 0.005 170.079);
  --secondary-foreground: oklch(0.825 0.006 170.422);
  --accent: oklch(0.36 0.016 169.318);
  --accent-foreground: oklch(0.874 0.009 170.312);
  --destructive: oklch(0.66 0.2 41.608);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.45 0.056 166.266);
  --chart-1: oklch(0.45 0.056 166.266);
  --chart-2: oklch(0.294 0.005 170.079);
  --chart-3: oklch(0.36 0.016 169.318);
  --chart-4: oklch(0.325 0.006 170.058);
  --chart-5: oklch(0.455 0.061 165.82);
}