Uplift for shadcn/ui

Uplift is a shadcn/ui theme built around a light red primary color (#f5e0e1) with muted light red accents (#dacdce). The light mode uses a neutral background (#ffffff). Dark mode keeps the light red primary (#f5e0e1) on a neutral background (#070303).

Color palette

TokenLightDark
Background
#ffffffwhite
#070303black
Foreground
#0e0202black
#fcf8f8snow
Card
#ffffffwhite
#070303black
Card foreground
#0e0202black
#fcf8f8snow
Popover
#ffffffwhite
#070303black
Popover foreground
#0e0202black
#fcf8f8snow
Primary
#f5e0e1mistyrose
#f5e0e1mistyrose
Primary foreground
#7d262cbrown
#7d262cbrown
Secondary
#dacdcelightgrey
#222020black
Secondary foreground
#433233darkslategray
#bcb8b8silver
Muted
#f0efefwhitesmoke
#100f0fblack
Muted foreground
#685556dimgray
#aa9798rosybrown
Accent
#dacdcelightgrey
#222020black
Accent foreground
#433233darkslategray
#bcb8b8silver
Destructive
#d70804red
#eb0905red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f5e0e1mistyrose
#f5e0e1mistyrose

Contrast

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

Light mode
Text on background20.42:1AAA
Text on card20.42:1AAA
Primary button7.60:1AAA
Secondary button7.81:1AAA
Muted text6.05:1AA
Accent7.81:1AAA
Destructive5.35:1AA
Dark mode
Text on background19.44:1AAA
Text on card19.44:1AAA
Primary button7.60:1AAA
Secondary button8.23:1AAA
Muted text6.93:1AA
Accent8.23:1AAA
Destructive4.59:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.114 0.031 16.235);
  --muted: oklch(0.953 0.002 12.463);
  --muted-foreground: oklch(0.469 0.025 13.559);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.114 0.031 16.235);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.114 0.031 16.235);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.924 0.024 12.968);
  --primary-foreground: oklch(0.405 0.119 20.524);
  --secondary: oklch(0.86 0.015 12.78);
  --secondary-foreground: oklch(0.337 0.026 14.056);
  --accent: oklch(0.86 0.015 12.78);
  --accent-foreground: oklch(0.337 0.026 14.056);
  --destructive: oklch(0.554 0.225 29.232);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.924 0.024 12.968);
  --chart-1: oklch(0.924 0.024 12.968);
  --chart-2: oklch(0.86 0.015 12.78);
  --chart-3: oklch(0.86 0.015 12.78);
  --chart-4: oklch(0.885 0.012 12.707);
  --chart-5: oklch(0.923 0.025 13);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.011 13.565);
  --foreground: oklch(0.982 0.004 12.503);
  --muted: oklch(0.168 0.003 12.746);
  --muted-foreground: oklch(0.694 0.022 13.106);
  --popover: oklch(0.108 0.011 13.565);
  --popover-foreground: oklch(0.982 0.004 12.503);
  --card: oklch(0.108 0.011 13.565);
  --card-foreground: oklch(0.982 0.004 12.503);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.924 0.024 12.968);
  --primary-foreground: oklch(0.405 0.119 20.524);
  --secondary: oklch(0.246 0.003 12.684);
  --secondary-foreground: oklch(0.786 0.005 12.551);
  --accent: oklch(0.246 0.003 12.684);
  --accent-foreground: oklch(0.786 0.005 12.551);
  --destructive: oklch(0.592 0.24 29.232);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.924 0.024 12.968);
  --chart-1: oklch(0.924 0.024 12.968);
  --chart-2: oklch(0.246 0.003 12.684);
  --chart-3: oklch(0.246 0.003 12.684);
  --chart-4: oklch(0.278 0.004 12.699);
  --chart-5: oklch(0.923 0.025 13);
}