Lode for shadcn/ui

Lode is a shadcn/ui theme built around a vivid deep pink primary color (#7f0b2e) with muted light pink accents (#d4bfc5). The light mode uses a neutral background (#fefbfc). Dark mode keeps the vivid deep pink primary (#7f0b2e) on a neutral background (#080204).

Color palette

TokenLightDark
Background
#fefbfcsnow
#080204black
Foreground
#000000black
#fdfcfcsnow
Card
#fefbfcsnow
#080204black
Card foreground
#000000black
#fdfcfcsnow
Popover
#fefbfcsnow
#080204black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#7f0b2emaroon
#7f0b2emaroon
Primary foreground
#fac2d3pink
#fac2d3pink
Secondary
#ded4d7gainsboro
#1e1a1bblack
Secondary foreground
#48373cdarkslategray
#bbafb3darkgray
Muted
#ece9ealinen
#161314black
Muted foreground
#4e4648darkslategray
#b9b1b3darkgray
Accent
#d4bfc5thistle
#322529darkslategray
Accent foreground
#3a272ddarkslategray
#cdbcc1silver
Destructive
#951309darkred
#f12c1eorangered
Destructive foreground
#fcd7d4mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7f0b2emaroon
#7f0b2emaroon

Contrast

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

Light mode
Text on background20.41:1AAA
Text on card20.41:1AAA
Primary button6.91:1AA
Secondary button7.66:1AAA
Muted text7.58:1AAA
Accent8.00:1AAA
Destructive6.68:1AA
Dark mode
Text on background20.07:1AAA
Text on card20.07:1AAA
Primary button6.91:1AA
Secondary button8.12:1AAA
Muted text8.81:1AAA
Accent8.08:1AAA
Destructive4.11:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 356.752);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.936 0.004 356.788);
  --muted-foreground: oklch(0.402 0.013 357.553);
  --popover: oklch(0.991 0.003 356.752);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.003 356.752);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.385 0.146 12.399);
  --primary-foreground: oklch(0.868 0.067 358.788);
  --secondary: oklch(0.878 0.012 357.038);
  --secondary-foreground: oklch(0.359 0.025 358.575);
  --accent: oklch(0.824 0.024 357.495);
  --accent-foreground: oklch(0.298 0.029 359.339);
  --destructive: oklch(0.428 0.164 29.689);
  --destructive-foreground: oklch(0.909 0.042 22.794);
  --ring: oklch(0.385 0.146 12.399);
  --chart-1: oklch(0.385 0.146 12.399);
  --chart-2: oklch(0.878 0.012 357.038);
  --chart-3: oklch(0.824 0.024 357.495);
  --chart-4: oklch(0.903 0.009 356.952);
  --chart-5: oklch(0.388 0.149 13.079);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.105 0.02 356.362);
  --foreground: oklch(0.991 0.002 356.71);
  --muted: oklch(0.19 0.006 357.605);
  --muted-foreground: oklch(0.767 0.011 357.059);
  --popover: oklch(0.105 0.02 356.362);
  --popover-foreground: oklch(0.991 0.002 356.71);
  --card: oklch(0.105 0.02 356.362);
  --card-foreground: oklch(0.991 0.002 356.71);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.385 0.146 12.399);
  --primary-foreground: oklch(0.868 0.067 358.788);
  --secondary: oklch(0.223 0.007 357.605);
  --secondary-foreground: oklch(0.765 0.014 357.194);
  --accent: oklch(0.281 0.021 358.701);
  --accent-foreground: oklch(0.81 0.021 357.399);
  --destructive: oklch(0.617 0.231 29.563);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.385 0.146 12.399);
  --chart-1: oklch(0.385 0.146 12.399);
  --chart-2: oklch(0.223 0.007 357.605);
  --chart-3: oklch(0.281 0.021 358.701);
  --chart-4: oklch(0.254 0.009 357.679);
  --chart-5: oklch(0.388 0.149 13.079);
}