Unwritten for shadcn/ui

Unwritten is a shadcn/ui theme built around an orange primary color (#8a4a19) with muted light orange accents (#d5c5b8). The light mode uses a neutral background (#fefcfb). Dark mode keeps the orange primary (#8a4a19) on an orange-tinted background (#0b0704).

Color palette

TokenLightDark
Background
#fefcfbsnow
#0b0704black
Foreground
#080502black
#f8f7f7whitesmoke
Card
#fefcfbsnow
#0b0704black
Card foreground
#080502black
#f8f7f7whitesmoke
Popover
#fefcfbsnow
#0b0704black
Popover foreground
#080502black
#f8f7f7whitesmoke
Primary
#8a4a19saddlebrown
#8a4a19saddlebrown
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e1dad5gainsboro
#2c2826darkslategray
Secondary foreground
#4e4137darkslategray
#c7c1bdsilver
Muted
#e6ddd6gainsboro
#292019black
Muted foreground
#4a4745darkslategray
#bab7b5silver
Accent
#d5c5b8silver
#4c4138darkslategray
Accent foreground
#3a2c22darkslategray
#e1dbd6gainsboro
Destructive
#ab1903firebrick
#fc4c31tomato
Destructive foreground
#ffe5e1mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8a4a19saddlebrown
#8a4a19saddlebrown

Contrast

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

Light mode
Text on background19.90:1AAA
Text on card19.90:1AAA
Primary button6.82:1AA
Secondary button7.14:1AAA
Muted text6.86:1AA
Accent8.00:1AAA
Destructive6.11:1AA
Dark mode
Text on background18.74:1AAA
Text on card18.74:1AAA
Primary button6.82:1AA
Secondary button8.17:1AAA
Muted text7.99:1AAA
Accent7.21:1AAA
Destructive3.37: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.993 0.003 60.242);
  --foreground: oklch(0.117 0.014 69.274);
  --muted: oklch(0.902 0.014 60.067);
  --muted-foreground: oklch(0.4 0.004 60.129);
  --popover: oklch(0.993 0.003 60.242);
  --popover-foreground: oklch(0.117 0.014 69.274);
  --card: oklch(0.993 0.003 60.242);
  --card-foreground: oklch(0.117 0.014 69.274);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.479 0.105 53.669);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.894 0.01 60.124);
  --secondary-foreground: oklch(0.385 0.024 59.389);
  --accent: oklch(0.833 0.026 59.86);
  --accent-foreground: oklch(0.307 0.027 58.955);
  --destructive: oklch(0.475 0.181 31.318);
  --destructive-foreground: oklch(0.941 0.029 28.117);
  --ring: oklch(0.479 0.105 53.669);
  --chart-1: oklch(0.479 0.105 53.669);
  --chart-2: oklch(0.894 0.01 60.124);
  --chart-3: oklch(0.833 0.026 59.86);
  --chart-4: oklch(0.917 0.008 60.162);
  --chart-5: oklch(0.481 0.109 53.136);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.012 66.94);
  --foreground: oklch(0.977 0.001 60.265);
  --muted: oklch(0.252 0.02 59.135);
  --muted-foreground: oklch(0.782 0.004 60.217);
  --popover: oklch(0.134 0.012 66.94);
  --popover-foreground: oklch(0.977 0.001 60.265);
  --card: oklch(0.134 0.012 66.94);
  --card-foreground: oklch(0.977 0.001 60.265);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.479 0.105 53.669);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.281 0.007 59.916);
  --secondary-foreground: oklch(0.815 0.009 60.139);
  --accent: oklch(0.384 0.021 59.502);
  --accent-foreground: oklch(0.894 0.009 60.142);
  --destructive: oklch(0.664 0.216 31.626);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.479 0.105 53.669);
  --chart-1: oklch(0.479 0.105 53.669);
  --chart-2: oklch(0.281 0.007 59.916);
  --chart-3: oklch(0.384 0.021 59.502);
  --chart-4: oklch(0.312 0.009 59.901);
  --chart-5: oklch(0.481 0.109 53.136);
}