Legacy for shadcn/ui

Legacy is a shadcn/ui theme built around a vivid deep indigo primary color (#0e075f) with muted light indigo accents (#c8c7d1). The light mode uses a neutral background (#f8f7fc). Dark mode keeps the vivid deep indigo primary (#0e075f) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8f7fcghostwhite
#000000black
Foreground
#050416black
#f8f8fcghostwhite
Card
#f8f7fcghostwhite
#000000black
Card foreground
#050416black
#f8f8fcghostwhite
Popover
#f8f7fcghostwhite
#000000black
Popover foreground
#050416black
#f8f8fcghostwhite
Primary
#0e075fmidnightblue
#0e075fmidnightblue
Primary foreground
#a7a0f8lightsteelblue
#a7a0f8lightsteelblue
Secondary
#c8c7d1lightgrey
#14141ablack
Secondary foreground
#2f2e38darkslategray
#a6a4bcdarkgray
Muted
#e6e5f0lavender
#100f1ablack
Muted foreground
#58575bdimgray
#a4a4a8darkgray
Accent
#c8c7d1lightgrey
#14141ablack
Accent foreground
#2f2e38darkslategray
#a6a4bcdarkgray
Destructive
#902704saddlebrown
#f9470borangered
Destructive foreground
#fed6c8bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0e075fmidnightblue
#0e075fmidnightblue

Contrast

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

Light mode
Text on background19.07:1AAA
Text on card19.07:1AAA
Primary button7.43:1AAA
Secondary button8.02:1AAA
Muted text5.74:1AA
Accent8.02:1AAA
Destructive6.31:1AA
Dark mode
Text on background19.82:1AAA
Text on card19.82:1AAA
Primary button7.43:1AAA
Secondary button7.58:1AAA
Muted text7.66:1AAA
Accent7.58:1AAA
Destructive3.54:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.979 0.007 290.119);
  --foreground: oklch(0.123 0.043 283.751);
  --muted: oklch(0.926 0.015 289.932);
  --muted-foreground: oklch(0.46 0.006 290.012);
  --popover: oklch(0.979 0.007 290.119);
  --popover-foreground: oklch(0.123 0.043 283.751);
  --card: oklch(0.979 0.007 290.119);
  --card-foreground: oklch(0.123 0.043 283.751);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.236 0.142 271.152);
  --primary-foreground: oklch(0.746 0.126 286.721);
  --secondary: oklch(0.834 0.013 289.959);
  --secondary-foreground: oklch(0.307 0.016 289.22);
  --accent: oklch(0.834 0.013 289.959);
  --accent-foreground: oklch(0.307 0.016 289.22);
  --destructive: oklch(0.436 0.146 36.03);
  --destructive-foreground: oklch(0.905 0.049 39.276);
  --ring: oklch(0.236 0.142 271.152);
  --chart-1: oklch(0.236 0.142 271.152);
  --chart-2: oklch(0.834 0.013 289.959);
  --chart-3: oklch(0.834 0.013 289.959);
  --chart-4: oklch(0.86 0.011 290.012);
  --chart-5: oklch(0.236 0.145 270.39);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.98 0.005 290.143);
  --muted: oklch(0.174 0.023 287.512);
  --muted-foreground: oklch(0.72 0.005 290.113);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.98 0.005 290.143);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.98 0.005 290.143);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.236 0.142 271.152);
  --primary-foreground: oklch(0.746 0.126 286.721);
  --secondary: oklch(0.193 0.014 288.853);
  --secondary-foreground: oklch(0.728 0.034 289.349);
  --accent: oklch(0.193 0.014 288.853);
  --accent-foreground: oklch(0.728 0.034 289.349);
  --destructive: oklch(0.651 0.222 35.459);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.236 0.142 271.152);
  --chart-1: oklch(0.236 0.142 271.152);
  --chart-2: oklch(0.193 0.014 288.853);
  --chart-3: oklch(0.193 0.014 288.853);
  --chart-4: oklch(0.223 0.018 288.687);
  --chart-5: oklch(0.236 0.145 270.39);
}