Unwritten for shadcn/ui

Unwritten is a shadcn/ui theme built around a muted red primary color (#715350) with muted indigo accents (#535071). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the muted red primary (#715350) on a neutral background (#070303).

Color palette

TokenLightDark
Background
#fcf8f8snow
#070303black
Foreground
#110504black
#f9f6f6whitesmoke
Card
#fcf8f8snow
#070303black
Card foreground
#110504black
#f9f6f6whitesmoke
Popover
#fcf8f8snow
#070303black
Popover foreground
#110504black
#f9f6f6whitesmoke
Primary
#715350dimgray
#715350dimgray
Primary foreground
#fbf9f9snow
#fbf9f9snow
Secondary
#507153dimgray
#507153dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eff5f0whitesmoke
#0a100ablack
Muted foreground
#3a453bdarkslategray
#bac5basilver
Accent
#535071darkslateblue
#535071darkslateblue
Accent foreground
#f9f9fbghostwhite
#f9f9fbghostwhite
Destructive
#740f06maroon
#f2200dred
Destructive foreground
#fbb8b1lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#715350dimgray
#715350dimgray

Contrast

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

Light mode
Text on background19.02:1AAA
Text on card19.02:1AAA
Primary button6.52:1AA
Secondary button5.45:1AA
Muted text9.08:1AAA
Accent7.21:1AAA
Destructive6.92:1AA
Dark mode
Text on background19.05:1AAA
Text on card19.05:1AAA
Primary button6.52:1AA
Secondary button5.45:1AA
Muted text10.81:1AAA
Accent7.21:1AAA
Destructive4.20:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 23.626);
  --foreground: oklch(0.135 0.025 28.862);
  --muted: oklch(0.965 0.009 147.961);
  --muted-foreground: oklch(0.378 0.023 147.399);
  --popover: oklch(0.982 0.005 23.626);
  --popover-foreground: oklch(0.135 0.025 28.862);
  --card: oklch(0.982 0.005 23.626);
  --card-foreground: oklch(0.135 0.025 28.862);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.474 0.041 24.633);
  --primary-foreground: oklch(0.984 0.002 23.598);
  --secondary: oklch(0.516 0.061 146.733);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.449 0.054 287.855);
  --accent-foreground: oklch(0.983 0.002 290.203);
  --destructive: oklch(0.361 0.135 30.194);
  --destructive-foreground: oklch(0.842 0.079 24.748);
  --ring: oklch(0.474 0.041 24.633);
  --chart-1: oklch(0.474 0.041 24.633);
  --chart-2: oklch(0.516 0.061 146.733);
  --chart-3: oklch(0.449 0.054 287.855);
  --chart-4: oklch(0.544 0.064 146.721);
  --chart-5: oklch(0.472 0.048 24.881);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.011 26.486);
  --foreground: oklch(0.975 0.004 23.617);
  --muted: oklch(0.163 0.014 147.073);
  --muted-foreground: oklch(0.811 0.019 147.812);
  --popover: oklch(0.11 0.011 26.486);
  --popover-foreground: oklch(0.975 0.004 23.617);
  --card: oklch(0.11 0.011 26.486);
  --card-foreground: oklch(0.975 0.004 23.617);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.474 0.041 24.633);
  --primary-foreground: oklch(0.984 0.002 23.598);
  --secondary: oklch(0.516 0.061 146.733);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.449 0.054 287.855);
  --accent-foreground: oklch(0.983 0.002 290.203);
  --destructive: oklch(0.613 0.239 30.067);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.474 0.041 24.633);
  --chart-1: oklch(0.474 0.041 24.633);
  --chart-2: oklch(0.516 0.061 146.733);
  --chart-3: oklch(0.449 0.054 287.855);
  --chart-4: oklch(0.544 0.064 146.721);
  --chart-5: oklch(0.472 0.048 24.881);
}