Historian for shadcn/ui

Historian is a shadcn/ui theme built around a pink primary color (#7e2a5e) with red accents (#7e2a34). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the pink primary (#7e2a5e) on a pink-tinted background (#0b0408).

Color palette

TokenLightDark
Background
#fdfbfdsnow
#0b0408black
Foreground
#080206black
#fdfcfdwhite
Card
#fdfbfdsnow
#0b0408black
Card foreground
#080206black
#fdfcfdwhite
Popover
#fdfbfdsnow
#0b0408black
Popover foreground
#080206black
#fdfcfdwhite
Primary
#7e2a5epurple
#7e2a5epurple
Primary foreground
#f6e4eflinen
#f6e4eflinen
Secondary
#742a7erebeccapurple
#742a7erebeccapurple
Secondary foreground
#f4e4f6lavender
#f4e4f6lavender
Muted
#eddceflavender
#211023black
Muted foreground
#473749darkslategray
#c6b6c8silver
Accent
#7e2a34brown
#7e2a34brown
Accent foreground
#f6e4e6mistyrose
#f6e4e6mistyrose
Destructive
#b71f0bfirebrick
#f12d13orangered
Destructive foreground
#fef6f5lavenderblush
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7e2a5epurple
#7e2a5epurple

Contrast

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

Light mode
Text on background20.03:1AAA
Text on card20.03:1AAA
Primary button7.23:1AAA
Secondary button7.24:1AAA
Muted text8.41:1AAA
Accent7.55:1AAA
Destructive6.13:1AA
Dark mode
Text on background19.79:1AAA
Text on card19.79:1AAA
Primary button7.23:1AAA
Secondary button7.24:1AAA
Muted text9.39:1AAA
Accent7.55:1AAA
Destructive4.09:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 339.528);
  --foreground: oklch(0.108 0.019 339.655);
  --muted: oklch(0.914 0.031 322.227);
  --muted-foreground: oklch(0.36 0.037 322.442);
  --popover: oklch(0.991 0.003 339.528);
  --popover-foreground: oklch(0.108 0.019 339.655);
  --card: oklch(0.991 0.003 339.528);
  --card-foreground: oklch(0.108 0.019 339.655);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.428 0.13 346.024);
  --primary-foreground: oklch(0.937 0.024 340.03);
  --secondary: oklch(0.43 0.15 322.847);
  --secondary-foreground: oklch(0.937 0.029 322.218);
  --accent: oklch(0.414 0.116 16.985);
  --accent-foreground: oklch(0.934 0.02 9.407);
  --destructive: oklch(0.503 0.189 30.921);
  --destructive-foreground: oklch(0.98 0.009 26.5);
  --ring: oklch(0.428 0.13 346.024);
  --chart-1: oklch(0.428 0.13 346.024);
  --chart-2: oklch(0.43 0.15 322.847);
  --chart-3: oklch(0.414 0.116 16.985);
  --chart-4: oklch(0.457 0.161 322.845);
  --chart-5: oklch(0.429 0.136 346.414);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.018 339.712);
  --foreground: oklch(0.992 0.002 339.508);
  --muted: oklch(0.206 0.044 322.721);
  --muted-foreground: oklch(0.796 0.03 322.241);
  --popover: oklch(0.125 0.018 339.712);
  --popover-foreground: oklch(0.992 0.002 339.508);
  --card: oklch(0.125 0.018 339.712);
  --card-foreground: oklch(0.992 0.002 339.508);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.428 0.13 346.024);
  --primary-foreground: oklch(0.937 0.024 340.03);
  --secondary: oklch(0.43 0.15 322.847);
  --secondary-foreground: oklch(0.937 0.029 322.218);
  --accent: oklch(0.414 0.116 16.985);
  --accent-foreground: oklch(0.934 0.02 9.407);
  --destructive: oklch(0.618 0.232 30.937);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.428 0.13 346.024);
  --chart-1: oklch(0.428 0.13 346.024);
  --chart-2: oklch(0.43 0.15 322.847);
  --chart-3: oklch(0.414 0.116 16.985);
  --chart-4: oklch(0.457 0.161 322.845);
  --chart-5: oklch(0.429 0.136 346.414);
}