Stitch for shadcn/ui

Stitch is a shadcn/ui theme built around a muted red primary color (#685050) with muted orange accents (#685b50). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the muted red primary (#685050) on a red-tinted background (#0b0404).

Color palette

TokenLightDark
Background
#fdf7f7snow
#0b0404black
Foreground
#150505black
#ffffffwhite
Card
#fcf2f2lavenderblush
#0f0505black
Card foreground
#110404black
#ffffffwhite
Popover
#fcf2f2lavenderblush
#0f0505black
Popover foreground
#110404black
#ffffffwhite
Primary
#685050dimgray
#685050dimgray
Primary foreground
#f6f3f4whitesmoke
#f6f3f4whitesmoke
Secondary
#68505cdimgray
#68505cdimgray
Secondary foreground
#f6f3f5whitesmoke
#f6f3f5whitesmoke
Muted
#ecd9e3gainsboro
#26131cblack
Muted foreground
#63545cdimgray
#ab9ca3darkgray
Accent
#685b50dimgray
#685b50dimgray
Accent foreground
#f6f5f3whitesmoke
#f6f5f3whitesmoke
Destructive
#8d2002darkred
#fb410eorangered
Destructive foreground
#fed0c3peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#685050dimgray
#685050dimgray

Contrast

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

Light mode
Text on background18.72:1AAA
Text on card18.38:1AAA
Primary button6.69:1AA
Secondary button6.60:1AA
Muted text5.30:1AA
Accent6.00:1AA
Destructive6.43:1AA
Dark mode
Text on background20.32:1AAA
Text on card20.09:1AAA
Primary button6.69:1AA
Secondary button6.60:1AA
Muted text6.74:1AA
Accent6.00:1AA
Destructive3.56:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 16.104);
  --foreground: oklch(0.143 0.031 20.341);
  --muted: oklch(0.905 0.025 344.97);
  --muted-foreground: oklch(0.465 0.023 345.484);
  --popover: oklch(0.97 0.011 16.172);
  --popover-foreground: oklch(0.131 0.027 19.94);
  --card: oklch(0.97 0.011 16.172);
  --card-foreground: oklch(0.131 0.027 19.94);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.456 0.032 17.286);
  --primary-foreground: oklch(0.968 0.003 16.026);
  --secondary: oklch(0.46 0.037 346.231);
  --secondary-foreground: oklch(0.968 0.003 344.375);
  --accent: oklch(0.481 0.024 65.311);
  --accent-foreground: oklch(0.97 0.002 65.939);
  --destructive: oklch(0.423 0.148 34.477);
  --destructive-foreground: oklch(0.893 0.056 35.962);
  --ring: oklch(0.456 0.032 17.286);
  --chart-1: oklch(0.456 0.032 17.286);
  --chart-2: oklch(0.46 0.037 346.231);
  --chart-3: oklch(0.481 0.024 65.311);
  --chart-4: oklch(0.486 0.039 346.251);
  --chart-5: oklch(0.452 0.04 17.644);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.018 18.561);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.216 0.035 348.195);
  --muted-foreground: oklch(0.707 0.02 345.002);
  --popover: oklch(0.134 0.021 18.8);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.134 0.021 18.8);
  --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.456 0.032 17.286);
  --primary-foreground: oklch(0.968 0.003 16.026);
  --secondary: oklch(0.46 0.037 346.231);
  --secondary-foreground: oklch(0.968 0.003 344.375);
  --accent: oklch(0.481 0.024 65.311);
  --accent-foreground: oklch(0.97 0.002 65.939);
  --destructive: oklch(0.651 0.228 34.138);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.456 0.032 17.286);
  --chart-1: oklch(0.456 0.032 17.286);
  --chart-2: oklch(0.46 0.037 346.231);
  --chart-3: oklch(0.481 0.024 65.311);
  --chart-4: oklch(0.486 0.039 346.251);
  --chart-5: oklch(0.452 0.04 17.644);
}