Apparel for shadcn/ui

Apparel is a shadcn/ui theme built around a muted deep red primary color (#292324) with muted deep blue accents (#232429). The light mode uses a neutral background (#fefbfb). Dark mode keeps the muted deep red primary (#292324) on a red-tinted background (#0a0506).

Color palette

TokenLightDark
Background
#fefbfbsnow
#0a0506black
Foreground
#040101black
#f9f6f6whitesmoke
Card
#fdf7f8snow
#0e0708black
Card foreground
#000000black
#fbf9f9snow
Popover
#fdf7f8snow
#0e0708black
Popover foreground
#000000black
#fbf9f9snow
Primary
#292324darkslategray
#292324darkslategray
Primary foreground
#c4babcsilver
#c4babcsilver
Secondary
#242923darkslategray
#242923darkslategray
Secondary foreground
#bcc4basilver
#bcc4basilver
Muted
#d9dfd8gainsboro
#222720black
Muted foreground
#556d50dimgray
#98af92darkseagreen
Accent
#232429darkslategray
#232429darkslategray
Accent foreground
#babcc4silver
#babcc4silver
Destructive
#880601darkred
#fc0b03red
Destructive foreground
#fec0bdlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#292324darkslategray
#292324darkslategray

Contrast

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

Light mode
Text on background20.20:1AAA
Text on card19.81:1AAA
Primary button8.13:1AAA
Secondary button8.25:1AAA
Muted text4.18:1AA Large
Accent8.14:1AAA
Destructive6.49:1AA
Dark mode
Text on background18.82:1AAA
Text on card19.05:1AAA
Primary button8.13:1AAA
Secondary button8.25:1AAA
Muted text6.44:1AA
Accent8.14:1AAA
Destructive4.03:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 4.4);
  --foreground: oklch(0.081 0.018 4.835);
  --muted: oklch(0.896 0.01 139.981);
  --muted-foreground: oklch(0.506 0.052 139.915);
  --popover: oklch(0.981 0.007 4.49);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.007 4.49);
  --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.264 0.009 5.246);
  --primary-foreground: oklch(0.798 0.012 4.702);
  --secondary: oklch(0.275 0.013 139.949);
  --secondary-foreground: oklch(0.812 0.017 139.972);
  --accent: oklch(0.263 0.009 275.669);
  --accent-foreground: oklch(0.796 0.012 275.968);
  --destructive: oklch(0.397 0.159 29.652);
  --destructive-foreground: oklch(0.863 0.073 20.937);
  --ring: oklch(0.264 0.009 5.246);
  --chart-1: oklch(0.264 0.009 5.246);
  --chart-2: oklch(0.275 0.013 139.949);
  --chart-3: oklch(0.263 0.009 275.669);
  --chart-4: oklch(0.307 0.015 139.947);
  --chart-5: oklch(0.262 0.013 5.611);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.012 4.529);
  --foreground: oklch(0.975 0.004 4.417);
  --muted: oklch(0.265 0.014 139.945);
  --muted-foreground: oklch(0.728 0.048 139.936);
  --popover: oklch(0.138 0.014 5.259);
  --popover-foreground: oklch(0.983 0.003 4.381);
  --card: oklch(0.138 0.014 5.259);
  --card-foreground: oklch(0.983 0.003 4.381);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.264 0.009 5.246);
  --primary-foreground: oklch(0.798 0.012 4.702);
  --secondary: oklch(0.275 0.013 139.949);
  --secondary-foreground: oklch(0.812 0.017 139.972);
  --accent: oklch(0.263 0.009 275.669);
  --accent-foreground: oklch(0.796 0.012 275.968);
  --destructive: oklch(0.625 0.254 29.429);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.264 0.009 5.246);
  --chart-1: oklch(0.264 0.009 5.246);
  --chart-2: oklch(0.275 0.013 139.949);
  --chart-3: oklch(0.263 0.009 275.669);
  --chart-4: oklch(0.307 0.015 139.947);
  --chart-5: oklch(0.262 0.013 5.611);
}