Macrame for shadcn/ui

Macrame is a shadcn/ui theme built around a muted pink primary color (#746369) with muted teal accents (#63746e). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the muted pink primary (#746369) on a neutral background (#040202).

Color palette

TokenLightDark
Background
#fcf8f9snow
#040202black
Foreground
#080204black
#f8f6f7whitesmoke
Card
#fcf8f9snow
#040202black
Card foreground
#080204black
#f8f6f7whitesmoke
Popover
#fcf8f9snow
#040202black
Popover foreground
#080204black
#f8f6f7whitesmoke
Primary
#746369dimgray
#746369dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#63746edimgray
#63746edimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e1eae7gainsboro
#151e1bblack
Muted foreground
#424c49darkslategray
#b3bdb9silver
Accent
#63746edimgray
#63746edimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#db260afirebrick
#db260afirebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#746369dimgray
#746369dimgray

Contrast

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

Light mode
Text on background19.50:1AAA
Text on card19.50:1AAA
Primary button5.66:1AA
Secondary button4.96:1AA
Muted text7.25:1AAA
Accent4.96:1AA
Destructive4.88:1AA
Dark mode
Text on background19.27:1AAA
Text on card19.27:1AAA
Primary button5.66:1AA
Secondary button4.96:1AA
Muted text8.82:1AAA
Accent4.96:1AA
Destructive4.88:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 353.72);
  --foreground: oklch(0.104 0.022 353.131);
  --muted: oklch(0.929 0.011 173.236);
  --muted-foreground: oklch(0.408 0.014 172.53);
  --popover: oklch(0.982 0.005 353.72);
  --popover-foreground: oklch(0.104 0.022 353.131);
  --card: oklch(0.982 0.005 353.72);
  --card-foreground: oklch(0.104 0.022 353.131);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.516 0.024 354.855);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.542 0.022 172.313);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.542 0.022 172.313);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.574 0.217 31.243);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.516 0.024 354.855);
  --chart-1: oklch(0.516 0.024 354.855);
  --chart-2: oklch(0.542 0.022 172.313);
  --chart-3: oklch(0.542 0.022 172.313);
  --chart-4: oklch(0.569 0.024 172.304);
  --chart-5: oklch(0.513 0.033 355.343);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.01 353.332);
  --foreground: oklch(0.976 0.002 353.637);
  --muted: oklch(0.225 0.015 171.512);
  --muted-foreground: oklch(0.788 0.012 173.121);
  --popover: oklch(0.086 0.01 353.332);
  --popover-foreground: oklch(0.976 0.002 353.637);
  --card: oklch(0.086 0.01 353.332);
  --card-foreground: oklch(0.976 0.002 353.637);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.516 0.024 354.855);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.542 0.022 172.313);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.542 0.022 172.313);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.574 0.217 31.243);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.516 0.024 354.855);
  --chart-1: oklch(0.516 0.024 354.855);
  --chart-2: oklch(0.542 0.022 172.313);
  --chart-3: oklch(0.542 0.022 172.313);
  --chart-4: oklch(0.569 0.024 172.304);
  --chart-5: oklch(0.513 0.033 355.343);
}