Unwritten for shadcn/ui

Unwritten is a shadcn/ui theme built around a pink primary color (#8b1d63) with red accents (#8b1d2c). The light mode uses a neutral background (#fefbfd). Dark mode keeps the pink primary (#8b1d63) on a pink-tinted background (#0f060b).

Color palette

TokenLightDark
Background
#fefbfdsnow
#0f060bblack
Foreground
#15050fblack
#f9f6f8whitesmoke
Card
#fefbfdsnow
#0f060bblack
Card foreground
#15050fblack
#f9f6f8whitesmoke
Popover
#fefbfdsnow
#0f060bblack
Popover foreground
#15050fblack
#f9f6f8whitesmoke
Primary
#8b1d63purple
#8b1d63purple
Primary foreground
#f9e2f0lavenderblush
#f9e2f0lavenderblush
Secondary
#7c1d8bpurple
#7c1d8bpurple
Secondary foreground
#f6e2f9lavender
#f6e2f9lavender
Muted
#e8dceagainsboro
#211523black
Muted foreground
#69556ddimgray
#a792aadarkgray
Accent
#8b1d2cbrown
#8b1d2cbrown
Accent foreground
#f9e2e5mistyrose
#f9e2e5mistyrose
Destructive
#d92b0dfirebrick
#f3492btomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8b1d63purple
#8b1d63purple

Contrast

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

Light mode
Text on background19.24:1AAA
Text on card19.24:1AAA
Primary button6.99:1AA
Secondary button7.11:1AAA
Muted text5.07:1AA
Accent7.36:1AAA
Destructive4.88:1AA
Dark mode
Text on background18.64:1AAA
Text on card18.64:1AAA
Primary button6.99:1AA
Secondary button7.11:1AAA
Muted text6.12:1AA
Accent7.36:1AAA
Destructive3.63: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.991 0.004 338.813);
  --foreground: oklch(0.148 0.037 342.415);
  --muted: oklch(0.908 0.023 321.662);
  --muted-foreground: oklch(0.479 0.044 321.838);
  --popover: oklch(0.991 0.004 338.813);
  --popover-foreground: oklch(0.148 0.037 342.415);
  --card: oklch(0.991 0.004 338.813);
  --card-foreground: oklch(0.148 0.037 342.415);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.439 0.159 346.992);
  --primary-foreground: oklch(0.934 0.032 339.434);
  --secondary: oklch(0.437 0.181 321.882);
  --secondary-foreground: oklch(0.934 0.038 321.703);
  --accent: oklch(0.421 0.144 19.156);
  --accent-foreground: oklch(0.931 0.026 8.423);
  --destructive: oklch(0.573 0.212 31.833);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.439 0.159 346.992);
  --chart-1: oklch(0.439 0.159 346.992);
  --chart-2: oklch(0.437 0.181 321.882);
  --chart-3: oklch(0.421 0.144 19.156);
  --chart-4: oklch(0.465 0.193 321.866);
  --chart-5: oklch(0.441 0.164 347.375);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.022 340.512);
  --foreground: oklch(0.975 0.005 338.828);
  --muted: oklch(0.218 0.032 321.964);
  --muted-foreground: oklch(0.687 0.041 321.754);
  --popover: oklch(0.138 0.022 340.512);
  --popover-foreground: oklch(0.975 0.005 338.828);
  --card: oklch(0.138 0.022 340.512);
  --card-foreground: oklch(0.975 0.005 338.828);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.439 0.159 346.992);
  --primary-foreground: oklch(0.934 0.032 339.434);
  --secondary: oklch(0.437 0.181 321.882);
  --secondary-foreground: oklch(0.934 0.038 321.703);
  --accent: oklch(0.421 0.144 19.156);
  --accent-foreground: oklch(0.931 0.026 8.423);
  --destructive: oklch(0.645 0.211 32.377);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.439 0.159 346.992);
  --chart-1: oklch(0.439 0.159 346.992);
  --chart-2: oklch(0.437 0.181 321.882);
  --chart-3: oklch(0.421 0.144 19.156);
  --chart-4: oklch(0.465 0.193 321.866);
  --chart-5: oklch(0.441 0.164 347.375);
}