Lantern for shadcn/ui

Lantern is a shadcn/ui theme built around a muted deep red primary color (#1a0f0f) with muted deep teal accents (#0f1a1a). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the muted deep red primary (#1a0f0f) on a neutral background (#040101).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#040101black
Foreground
#160404black
#ffffffwhite
Card
#fdfcfcsnow
#040101black
Card foreground
#160404black
#ffffffwhite
Popover
#fdfcfcsnow
#040101black
Popover foreground
#160404black
#ffffffwhite
Primary
#1a0f0fblack
#1a0f0fblack
Primary foreground
#c49797rosybrown
#c49797rosybrown
Secondary
#0f1a1ablack
#0f1a1ablack
Secondary foreground
#97c4c3lightsteelblue
#97c4c3lightsteelblue
Muted
#eaf5f5whitesmoke
#0a1514black
Muted foreground
#485656darkslategray
#a9b7b7darkgray
Accent
#0f1a1ablack
#0f1a1ablack
Accent foreground
#97c4c3lightsteelblue
#97c4c3lightsteelblue
Destructive
#c82504firebrick
#fa431eorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1a0f0fblack
#1a0f0fblack

Contrast

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

Light mode
Text on background19.42:1AAA
Text on card19.42:1AAA
Primary button7.35:1AAA
Secondary button9.29:1AAA
Muted text6.88:1AA
Accent9.29:1AAA
Destructive5.65:1AA
Dark mode
Text on background20.76:1AAA
Text on card20.76:1AAA
Primary button7.35:1AAA
Secondary button9.29:1AAA
Muted text9.00:1AAA
Accent9.29:1AAA
Destructive3.56:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 16.007);
  --foreground: oklch(0.141 0.037 21.57);
  --muted: oklch(0.962 0.011 195.775);
  --muted-foreground: oklch(0.441 0.018 195.285);
  --popover: oklch(0.991 0.002 16.007);
  --popover-foreground: oklch(0.141 0.037 21.57);
  --card: oklch(0.991 0.002 16.007);
  --card-foreground: oklch(0.141 0.037 21.57);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.183 0.02 18.041);
  --primary-foreground: oklch(0.718 0.055 17.41);
  --secondary: oklch(0.207 0.016 194.649);
  --secondary-foreground: oklch(0.788 0.048 194.941);
  --accent: oklch(0.207 0.016 194.649);
  --accent-foreground: oklch(0.788 0.048 194.941);
  --destructive: oklch(0.538 0.201 32.075);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.183 0.02 18.041);
  --chart-1: oklch(0.183 0.02 18.041);
  --chart-2: oklch(0.207 0.016 194.649);
  --chart-3: oklch(0.207 0.016 194.649);
  --chart-4: oklch(0.246 0.021 194.524);
  --chart-5: oklch(0.182 0.022 18.313);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.084 0.011 18.243);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.183 0.015 194.579);
  --muted-foreground: oklch(0.769 0.016 195.618);
  --popover: oklch(0.084 0.011 18.243);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.084 0.011 18.243);
  --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.183 0.02 18.041);
  --primary-foreground: oklch(0.718 0.055 17.41);
  --secondary: oklch(0.207 0.016 194.649);
  --secondary-foreground: oklch(0.788 0.048 194.941);
  --accent: oklch(0.207 0.016 194.649);
  --accent-foreground: oklch(0.788 0.048 194.941);
  --destructive: oklch(0.651 0.225 32.871);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.183 0.02 18.041);
  --chart-1: oklch(0.183 0.02 18.041);
  --chart-2: oklch(0.207 0.016 194.649);
  --chart-3: oklch(0.207 0.016 194.649);
  --chart-4: oklch(0.246 0.021 194.524);
  --chart-5: oklch(0.182 0.022 18.313);
}