Composed for shadcn/ui

Composed is a shadcn/ui theme built around a neutral gray primary color (#907f83) with neutral gray accents (#7f8390). The light mode uses a neutral background (#fefbfc). Dark mode keeps the neutral gray primary (#907f83) on a pink-tinted background (#100508).

Color palette

TokenLightDark
Background
#fefbfcsnow
#100508black
Foreground
#160308black
#f8f6f7whitesmoke
Card
#fefbfcsnow
#100508black
Card foreground
#160308black
#f8f6f7whitesmoke
Popover
#fefbfcsnow
#100508black
Popover foreground
#160308black
#f8f6f7whitesmoke
Primary
#907f83gray
#907f83gray
Primary foreground
#000000black
#000000black
Secondary
#83907fgray
#83907fgray
Secondary foreground
#000000black
#000000black
Muted
#e7f2e3beige
#111c0dblack
Muted foreground
#52604ddarkolivegreen
#a4b29fdarkgray
Accent
#7f8390lightslategray
#7f8390lightslategray
Accent foreground
#000000black
#000000black
Destructive
#c83b14firebrick
#ea532achocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#907f83gray
#907f83gray

Contrast

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

Light mode
Text on background19.44:1AAA
Text on card19.44:1AAA
Primary button5.52:1AA
Secondary button6.23:1AA
Muted text5.79:1AA
Accent5.55:1AA
Destructive5.15:1AA
Dark mode
Text on background18.67:1AAA
Text on card18.67:1AAA
Primary button5.52:1AA
Secondary button6.23:1AA
Muted text7.92:1AAA
Accent5.55:1AA
Destructive3.63:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 358.866);
  --foreground: oklch(0.143 0.039 2.413);
  --muted: oklch(0.949 0.022 137.244);
  --muted-foreground: oklch(0.472 0.035 137.376);
  --popover: oklch(0.991 0.003 358.866);
  --popover-foreground: oklch(0.143 0.039 2.413);
  --card: oklch(0.991 0.003 358.866);
  --card-foreground: oklch(0.143 0.039 2.413);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.612 0.021 359.763);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.637 0.028 137.298);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.611 0.019 269.835);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.556 0.184 35.018);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.612 0.021 359.763);
  --chart-1: oklch(0.612 0.021 359.763);
  --chart-2: oklch(0.637 0.028 137.298);
  --chart-3: oklch(0.611 0.019 269.835);
  --chart-4: oklch(0.661 0.026 137.285);
  --chart-5: oklch(0.608 0.031 0.193);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.024 0.133);
  --foreground: oklch(0.976 0.002 358.844);
  --muted: oklch(0.209 0.031 137.646);
  --muted-foreground: oklch(0.747 0.031 137.29);
  --popover: oklch(0.134 0.024 0.133);
  --popover-foreground: oklch(0.976 0.002 358.844);
  --card: oklch(0.134 0.024 0.133);
  --card-foreground: oklch(0.976 0.002 358.844);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.612 0.021 359.763);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.637 0.028 137.298);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.611 0.019 269.835);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.642 0.194 35.771);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.612 0.021 359.763);
  --chart-1: oklch(0.612 0.021 359.763);
  --chart-2: oklch(0.637 0.028 137.298);
  --chart-3: oklch(0.611 0.019 269.835);
  --chart-4: oklch(0.661 0.026 137.285);
  --chart-5: oklch(0.608 0.031 0.193);
}