Unwritten for shadcn/ui

Unwritten is a shadcn/ui theme built around a muted light teal primary color (#cbddd5) with muted light pink accents (#ddcbd3). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light teal primary (#cbddd5) on a neutral background (#020805).

Color palette

TokenLightDark
Background
#ffffffwhite
#020805black
Foreground
#020d08black
#f6f9f7whitesmoke
Card
#ffffffwhite
#020805black
Card foreground
#020d08black
#f6f9f7whitesmoke
Popover
#ffffffwhite
#020805black
Popover foreground
#020d08black
#f6f9f7whitesmoke
Primary
#cbddd5lightgrey
#cbddd5lightgrey
Primary foreground
#2e473cdarkslategray
#2e473cdarkslategray
Secondary
#ddcbd3lightgrey
#ddcbd3lightgrey
Secondary foreground
#472e39darkslategray
#472e39darkslategray
Muted
#e4d8ddgainsboro
#271b21black
Muted foreground
#474747darkslategray
#b8b8b8silver
Accent
#ddcbd3lightgrey
#ddcbd3lightgrey
Accent foreground
#472e39darkslategray
#472e39darkslategray
Destructive
#741a02maroon
#fb410eorangered
Destructive foreground
#febcaalightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cbddd5lightgrey
#cbddd5lightgrey

Contrast

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

Light mode
Text on background19.74:1AAA
Text on card19.74:1AAA
Primary button7.10:1AAA
Secondary button7.86:1AAA
Muted text6.69:1AA
Accent7.86:1AAA
Destructive6.87:1AA
Dark mode
Text on background19.04:1AAA
Text on card19.04:1AAA
Primary button7.10:1AAA
Secondary button7.86:1AAA
Muted text8.36:1AAA
Accent7.86:1AAA
Destructive3.56:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.146 0.024 167.209);
  --muted: oklch(0.893 0.016 348.29);
  --muted-foreground: oklch(0.399 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.146 0.024 167.209);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.146 0.024 167.209);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.881 0.022 167.092);
  --primary-foreground: oklch(0.374 0.036 164.787);
  --secondary: oklch(0.858 0.023 348.534);
  --secondary-foreground: oklch(0.336 0.04 350.862);
  --accent: oklch(0.858 0.023 348.534);
  --accent-foreground: oklch(0.336 0.04 350.862);
  --destructive: oklch(0.369 0.127 35.027);
  --destructive-foreground: oklch(0.851 0.081 36.038);
  --ring: oklch(0.881 0.022 167.092);
  --chart-1: oklch(0.881 0.022 167.092);
  --chart-2: oklch(0.858 0.023 348.534);
  --chart-3: oklch(0.858 0.023 348.534);
  --chart-4: oklch(0.883 0.019 348.387);
  --chart-5: oklch(0.883 0.026 166.989);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.017 168.049);
  --foreground: oklch(0.979 0.003 167.729);
  --muted: oklch(0.239 0.022 350.209);
  --muted-foreground: oklch(0.781 0 180);
  --popover: oklch(0.124 0.017 168.049);
  --popover-foreground: oklch(0.979 0.003 167.729);
  --card: oklch(0.124 0.017 168.049);
  --card-foreground: oklch(0.979 0.003 167.729);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.881 0.022 167.092);
  --primary-foreground: oklch(0.374 0.036 164.787);
  --secondary: oklch(0.858 0.023 348.534);
  --secondary-foreground: oklch(0.336 0.04 350.862);
  --accent: oklch(0.858 0.023 348.534);
  --accent-foreground: oklch(0.336 0.04 350.862);
  --destructive: oklch(0.651 0.228 34.138);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.881 0.022 167.092);
  --chart-1: oklch(0.881 0.022 167.092);
  --chart-2: oklch(0.858 0.023 348.534);
  --chart-3: oklch(0.858 0.023 348.534);
  --chart-4: oklch(0.883 0.019 348.387);
  --chart-5: oklch(0.883 0.026 166.989);
}