Unwritten for shadcn/ui

Unwritten is a shadcn/ui theme built around a vivid indigo primary color (#291bee) with vivid yellow accents (#e0ee1b). The light mode uses a neutral background (#f7f6fd). Dark mode keeps the vivid indigo primary (#291bee) on a neutral background (#020104).

Color palette

TokenLightDark
Background
#f7f6fdghostwhite
#020104black
Foreground
#040311black
#ffffffwhite
Card
#f7f6fdghostwhite
#020104black
Card foreground
#040311black
#ffffffwhite
Popover
#f7f6fdghostwhite
#020104black
Popover foreground
#040311black
#ffffffwhite
Primary
#291beeblue
#291beeblue
Primary foreground
#dbd9fclavender
#dbd9fclavender
Secondary
#e0ee1byellow
#e0ee1byellow
Secondary foreground
#353904darkgreen
#353904darkgreen
Muted
#e9eae6linen
#181915black
Muted foreground
#4e4f4adarkslategray
#b4b5b0darkgray
Accent
#e0ee1byellow
#e0ee1byellow
Accent foreground
#353904darkgreen
#353904darkgreen
Destructive
#6b2c0bsaddlebrown
#e9631cchocolate
Destructive foreground
#f7c9b0peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#291beeblue
#291beeblue

Contrast

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

Light mode
Text on background19.10:1AAA
Text on card19.10:1AAA
Primary button6.16:1AA
Secondary button9.43:1AAA
Muted text6.83:1AA
Accent9.43:1AAA
Destructive7.00:1AAA
Dark mode
Text on background20.79:1AAA
Text on card20.79:1AAA
Primary button6.16:1AA
Secondary button9.43:1AAA
Muted text8.58:1AAA
Accent9.43:1AAA
Destructive6.26:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.977 0.009 289.301);
  --foreground: oklch(0.114 0.035 283.923);
  --muted: oklch(0.935 0.004 109.564);
  --muted-foreground: oklch(0.425 0.007 109.803);
  --popover: oklch(0.977 0.009 289.301);
  --popover-foreground: oklch(0.114 0.035 283.923);
  --card: oklch(0.977 0.009 289.301);
  --card-foreground: oklch(0.114 0.035 283.923);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.452 0.281 269.221);
  --primary-foreground: oklch(0.898 0.048 288.453);
  --secondary: oklch(0.908 0.2 114.063);
  --secondary-foreground: oklch(0.33 0.07 113.616);
  --accent: oklch(0.908 0.2 114.063);
  --accent-foreground: oklch(0.33 0.07 113.616);
  --destructive: oklch(0.377 0.099 44.59);
  --destructive-foreground: oklch(0.87 0.063 49.813);
  --ring: oklch(0.452 0.281 269.221);
  --chart-1: oklch(0.452 0.281 269.221);
  --chart-2: oklch(0.908 0.2 114.063);
  --chart-3: oklch(0.908 0.2 114.063);
  --chart-4: oklch(0.912 0.196 113.805);
  --chart-5: oklch(0.453 0.288 268.492);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.08 0.013 287.212);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.21 0.006 110.022);
  --muted-foreground: oklch(0.771 0.006 109.634);
  --popover: oklch(0.08 0.013 287.212);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.08 0.013 287.212);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.452 0.281 269.221);
  --primary-foreground: oklch(0.898 0.048 288.453);
  --secondary: oklch(0.908 0.2 114.063);
  --secondary-foreground: oklch(0.33 0.07 113.616);
  --accent: oklch(0.908 0.2 114.063);
  --accent-foreground: oklch(0.33 0.07 113.616);
  --destructive: oklch(0.659 0.182 43.667);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.452 0.281 269.221);
  --chart-1: oklch(0.452 0.281 269.221);
  --chart-2: oklch(0.908 0.2 114.063);
  --chart-3: oklch(0.908 0.2 114.063);
  --chart-4: oklch(0.912 0.196 113.805);
  --chart-5: oklch(0.453 0.288 268.492);
}