Shawl for shadcn/ui

Shawl is a shadcn/ui theme built around a muted light pink primary color (#f8f7f7) with muted light teal accents (#f7f8f7). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light pink primary (#f8f7f7) on a pink-tinted background (#0f050a).

Color palette

TokenLightDark
Background
#ffffffwhite
#0f050ablack
Foreground
#0c0307black
#ffffffwhite
Card
#fcfcfcsnow
#13070cblack
Card foreground
#080205black
#ffffffwhite
Popover
#fcfcfcsnow
#13070cblack
Popover foreground
#080205black
#ffffffwhite
Primary
#f8f7f7whitesmoke
#f8f7f7whitesmoke
Primary foreground
#67565ddimgray
#67565ddimgray
Secondary
#f7f8f7whitesmoke
#f7f8f7whitesmoke
Secondary foreground
#272f2cdarkslategray
#272f2cdarkslategray
Muted
#e9f2eewhitesmoke
#0d1612black
Muted foreground
#4d514fdarkslategray
#aeb2b0darkgray
Accent
#f7f8f7whitesmoke
#f7f8f7whitesmoke
Accent foreground
#272f2cdarkslategray
#272f2cdarkslategray
Destructive
#c33613firebrick
#ea502achocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f8f7f7whitesmoke
#f8f7f7whitesmoke

Contrast

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

Light mode
Text on background20.35:1AAA
Text on card20.12:1AAA
Primary button6.39:1AA
Secondary button12.89:1AAA
Muted text7.03:1AAA
Accent12.89:1AAA
Destructive5.43:1AA
Dark mode
Text on background20.04:1AAA
Text on card19.78:1AAA
Primary button6.39:1AA
Secondary button12.89:1AAA
Muted text8.56:1AAA
Accent12.89:1AAA
Destructive3.70:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.122 0.022 348.67);
  --muted: oklch(0.952 0.011 168.415);
  --muted-foreground: oklch(0.43 0.005 168.429);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.106 0.019 348.404);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.106 0.019 348.404);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.976 0.002 348.781);
  --primary-foreground: oklch(0.472 0.025 350.144);
  --secondary: oklch(0.978 0.002 168.686);
  --secondary-foreground: oklch(0.297 0.012 167.514);
  --accent: oklch(0.978 0.002 168.686);
  --accent-foreground: oklch(0.297 0.012 167.514);
  --destructive: oklch(0.544 0.183 34.245);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.976 0.002 348.781);
  --chart-1: oklch(0.976 0.002 348.781);
  --chart-2: oklch(0.978 0.002 168.686);
  --chart-3: oklch(0.978 0.002 168.686);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.976 0.002 348.797);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.022 350.192);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.191 0.015 166.226);
  --muted-foreground: oklch(0.759 0.004 168.584);
  --popover: oklch(0.149 0.025 352.028);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.149 0.025 352.028);
  --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.976 0.002 348.781);
  --primary-foreground: oklch(0.472 0.025 350.144);
  --secondary: oklch(0.978 0.002 168.686);
  --secondary-foreground: oklch(0.297 0.012 167.514);
  --accent: oklch(0.978 0.002 168.686);
  --accent-foreground: oklch(0.297 0.012 167.514);
  --destructive: oklch(0.638 0.197 34.85);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.976 0.002 348.781);
  --chart-1: oklch(0.976 0.002 348.781);
  --chart-2: oklch(0.978 0.002 168.686);
  --chart-3: oklch(0.978 0.002 168.686);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.976 0.002 348.797);
}