P. Upright \ Leipzig for shadcn/ui

P. Upright \ Leipzig is a shadcn/ui theme built around a muted green primary color (#6ba885) with muted deep pink accents (#4c3d42). The light mode uses a pink-tinted background (#221b1d). Dark mode keeps the muted green primary (#6ba885) on a pink-tinted background (#221b1d).

Color palette

TokenLightDark
Background
#221b1dblack
#221b1dblack
Foreground
#e7c3a2burlywood
#e7c3a2burlywood
Card
#1c1718black
#1c1718black
Card foreground
#ecd0b6wheat
#ecd0b6wheat
Popover
#191416black
#191416black
Popover foreground
#f1ddcabisque
#f1ddcabisque
Primary
#6ba885cadetblue
#6ba885cadetblue
Primary foreground
#000000black
#000000black
Secondary
#364a3edarkslategray
#364a3edarkslategray
Secondary foreground
#d3dfd8gainsboro
#d3dfd8gainsboro
Muted
#2e2427darkslategray
#2e2427darkslategray
Muted foreground
#b39ea4darkgray
#b39ea4darkgray
Accent
#4c3d42darkslategray
#4c3d42darkslategray
Accent foreground
#e1dadcgainsboro
#e1dadcgainsboro
Destructive
#e9221ccrimson
#e9221ccrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#2c2b2bdarkslategray
#2c2b2bdarkslategray
Input
#343233darkslategray
#343233darkslategray
Ring
#6ba885cadetblue
#6ba885cadetblue

Contrast

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

Light mode
Text on background10.22:1AAA
Text on card12.04:1AAA
Primary button7.57:1AAA
Secondary button6.95:1AA
Muted text5.98:1AA
Accent7.40:1AAA
Destructive4.46:1AA Large
Dark mode
Text on background10.22:1AAA
Text on card12.04:1AAA
Primary button7.57:1AAA
Secondary button6.95:1AA
Muted text5.98:1AA
Accent7.40:1AAA
Destructive4.46:1AA Large

CSS variables

Paste this into your globals.css to use P. Upright \ Leipzig in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.232 0.011 359.049);
  --foreground: oklch(0.84 0.061 64.949);
  --muted: oklch(0.272 0.016 359.301);
  --muted-foreground: oklch(0.719 0.026 358.719);
  --popover: oklch(0.2 0.009 358.92);
  --popover-foreground: oklch(0.91 0.034 65.499);
  --card: oklch(0.211 0.009 358.969);
  --card-foreground: oklch(0.875 0.047 65.254);
  --border: oklch(0.29 0.001 357.846);
  --input: oklch(0.32 0.002 357.851);
  --primary: oklch(0.68 0.083 157.698);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.388 0.033 158.85);
  --secondary-foreground: oklch(0.892 0.016 160.577);
  --accent: oklch(0.379 0.022 359.338);
  --accent-foreground: oklch(0.895 0.008 357.984);
  --destructive: oklch(0.597 0.229 28.804);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.68 0.083 157.698);
  --chart-1: oklch(0.68 0.083 157.698);
  --chart-2: oklch(0.388 0.033 158.85);
  --chart-3: oklch(0.379 0.022 359.338);
  --chart-4: oklch(0.418 0.036 158.808);
  --chart-5: oklch(0.687 0.091 157.318);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.232 0.011 359.049);
  --foreground: oklch(0.84 0.061 64.949);
  --muted: oklch(0.272 0.016 359.301);
  --muted-foreground: oklch(0.719 0.026 358.719);
  --popover: oklch(0.2 0.009 358.92);
  --popover-foreground: oklch(0.91 0.034 65.499);
  --card: oklch(0.211 0.009 358.969);
  --card-foreground: oklch(0.875 0.047 65.254);
  --border: oklch(0.29 0.001 357.846);
  --input: oklch(0.32 0.002 357.851);
  --primary: oklch(0.68 0.083 157.698);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.388 0.033 158.85);
  --secondary-foreground: oklch(0.892 0.016 160.577);
  --accent: oklch(0.379 0.022 359.338);
  --accent-foreground: oklch(0.895 0.008 357.984);
  --destructive: oklch(0.597 0.229 28.804);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.68 0.083 157.698);
  --chart-1: oklch(0.68 0.083 157.698);
  --chart-2: oklch(0.388 0.033 158.85);
  --chart-3: oklch(0.379 0.022 359.338);
  --chart-4: oklch(0.418 0.036 158.808);
  --chart-5: oklch(0.687 0.091 157.318);
}