Coarse for shadcn/ui

Coarse is a shadcn/ui theme built around a light red primary color (#eebfc6) with muted red accents (#c8b1b5). The light mode uses a neutral background (#fdf7f8). Dark mode keeps the light red primary (#eebfc6) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf7f8snow
#000000black
Foreground
#090103black
#f9f6f6whitesmoke
Card
#fdf7f8snow
#000000black
Card foreground
#090103black
#f9f6f6whitesmoke
Popover
#fdf7f8snow
#000000black
Popover foreground
#090103black
#f9f6f6whitesmoke
Primary
#eebfc6pink
#eebfc6pink
Primary foreground
#611a26maroon
#611a26maroon
Secondary
#d3cacblightgrey
#343233darkslategray
Secondary foreground
#3b3032darkslategray
#cdcbcclightgrey
Muted
#e6e0e1gainsboro
#1f191ablack
Muted foreground
#6a5357dimgray
#ac9599rosybrown
Accent
#c8b1b5silver
#483c3edarkslategray
Accent foreground
#2a1e20black
#dfd8d9gainsboro
Destructive
#920e01darkred
#ed1602red
Destructive foreground
#feccc7pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eebfc6pink
#eebfc6pink

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 button7.63:1AAA
Secondary button7.89:1AAA
Muted text5.38:1AA
Accent8.00:1AAA
Destructive6.40:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.54:1AAA
Primary button7.63:1AAA
Secondary button7.85:1AAA
Muted text6.19:1AA
Accent7.47:1AAA
Destructive4.44:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 5.643);
  --foreground: oklch(0.101 0.025 6.313);
  --muted: oklch(0.911 0.007 5.644);
  --muted-foreground: oklch(0.467 0.031 7.12);
  --popover: oklch(0.98 0.007 5.643);
  --popover-foreground: oklch(0.101 0.025 6.313);
  --card: oklch(0.98 0.007 5.643);
  --card-foreground: oklch(0.101 0.025 6.313);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.847 0.055 7.106);
  --primary-foreground: oklch(0.336 0.102 14.963);
  --secondary: oklch(0.846 0.011 5.784);
  --secondary-foreground: oklch(0.322 0.016 6.698);
  --accent: oklch(0.782 0.026 6.313);
  --accent-foreground: oklch(0.249 0.019 7.422);
  --destructive: oklch(0.421 0.165 30.429);
  --destructive-foreground: oklch(0.888 0.058 24.335);
  --ring: oklch(0.847 0.055 7.106);
  --chart-1: oklch(0.847 0.055 7.106);
  --chart-2: oklch(0.846 0.011 5.784);
  --chart-3: oklch(0.782 0.026 6.313);
  --chart-4: oklch(0.871 0.009 5.721);
  --chart-5: oklch(0.846 0.058 7.198);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.975 0.004 5.555);
  --muted: oklch(0.221 0.01 6.601);
  --muted-foreground: oklch(0.692 0.027 6.462);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.975 0.004 5.555);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.975 0.004 5.555);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.847 0.055 7.106);
  --primary-foreground: oklch(0.336 0.102 14.963);
  --secondary: oklch(0.32 0.001 5.568);
  --secondary-foreground: oklch(0.844 0.001 5.484);
  --accent: oklch(0.371 0.017 6.616);
  --accent-foreground: oklch(0.888 0.007 5.658);
  --destructive: oklch(0.6 0.239 30.028);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.847 0.055 7.106);
  --chart-1: oklch(0.847 0.055 7.106);
  --chart-2: oklch(0.32 0.001 5.568);
  --chart-3: oklch(0.371 0.017 6.616);
  --chart-4: oklch(0.35 0.002 5.571);
  --chart-5: oklch(0.846 0.058 7.198);
}