Read for shadcn/ui

Read is a shadcn/ui theme built around a light pink primary color (#f2c0df) with muted light pink accents (#d9c4d1). The light mode uses a neutral background (#ffffff). Dark mode keeps the light pink primary (#f2c0df) on a pink-tinted background (#0b0508).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0508black
Foreground
#15040fblack
#fbf9fasnow
Card
#ffffffwhite
#0b0508black
Card foreground
#15040fblack
#fbf9fasnow
Popover
#ffffffwhite
#0b0508black
Popover foreground
#15040fblack
#fbf9fasnow
Primary
#f2c0dfpink
#f2c0dfpink
Primary foreground
#691649purple
#691649purple
Secondary
#ebe5e9lavender
#1e151bblack
Secondary foreground
#594551darkslategray
#c0a5b6darkgray
Muted
#e2d4ddgainsboro
#2b1d25black
Muted foreground
#6a5863dimgray
#a795a0darkgray
Accent
#d9c4d1thistle
#301c29darkslategray
Accent foreground
#412a38darkslategray
#d0afc3silver
Destructive
#7f280bsaddlebrown
#ec5522chocolate
Destructive foreground
#fad0c2peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f2c0dfpink
#f2c0dfpink

Contrast

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

Light mode
Text on background19.88:1AAA
Text on card19.88:1AAA
Primary button7.37:1AAA
Secondary button7.06:1AAA
Muted text4.61:1AA
Accent7.91:1AAA
Destructive6.74:1AA
Dark mode
Text on background19.30:1AAA
Text on card19.30:1AAA
Primary button7.37:1AAA
Secondary button7.89:1AAA
Muted text5.72:1AA
Accent7.98:1AAA
Destructive3.57:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.147 0.038 343.288);
  --muted: oklch(0.884 0.02 339.952);
  --muted-foreground: oklch(0.482 0.028 340.705);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.147 0.038 343.288);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.147 0.038 343.288);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.86 0.069 341.158);
  --primary-foreground: oklch(0.361 0.127 347.616);
  --secondary: oklch(0.928 0.008 339.661);
  --secondary-foreground: oklch(0.416 0.034 341.199);
  --accent: oklch(0.842 0.03 340.231);
  --accent-foreground: oklch(0.318 0.042 342.183);
  --destructive: oklch(0.406 0.126 37.102);
  --destructive-foreground: oklch(0.889 0.051 39.268);
  --ring: oklch(0.86 0.069 341.158);
  --chart-1: oklch(0.86 0.069 341.158);
  --chart-2: oklch(0.928 0.008 339.661);
  --chart-3: oklch(0.842 0.03 340.231);
  --chart-4: oklch(0.952 0.005 339.593);
  --chart-5: oklch(0.859 0.072 341.235);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.017 339.646);
  --foreground: oklch(0.984 0.002 339.518);
  --muted: oklch(0.25 0.027 341.711);
  --muted-foreground: oklch(0.69 0.026 340.267);
  --popover: oklch(0.126 0.017 339.646);
  --popover-foreground: oklch(0.984 0.002 339.518);
  --card: oklch(0.126 0.017 339.646);
  --card-foreground: oklch(0.984 0.002 339.518);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.86 0.069 341.158);
  --primary-foreground: oklch(0.361 0.127 347.616);
  --secondary: oklch(0.209 0.018 341.288);
  --secondary-foreground: oklch(0.75 0.04 340.594);
  --accent: oklch(0.259 0.037 342.426);
  --accent-foreground: oklch(0.788 0.047 340.738);
  --destructive: oklch(0.646 0.196 37.357);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.86 0.069 341.158);
  --chart-1: oklch(0.86 0.069 341.158);
  --chart-2: oklch(0.209 0.018 341.288);
  --chart-3: oklch(0.259 0.037 342.426);
  --chart-4: oklch(0.241 0.023 341.448);
  --chart-5: oklch(0.859 0.072 341.235);
}