Weighty for shadcn/ui

Weighty is a shadcn/ui theme built around a pink primary color (#7c3656) with blue accents (#36567c). The light mode uses a neutral background (#fcf8fa). Dark mode keeps the pink primary (#7c3656) on a neutral background (#070305).

Color palette

TokenLightDark
Background
#fcf8fasnow
#070305black
Foreground
#040102black
#ffffffwhite
Card
#faf5f7whitesmoke
#0a0507black
Card foreground
#000000black
#ffffffwhite
Popover
#faf5f7whitesmoke
#0a0507black
Popover foreground
#000000black
#ffffffwhite
Primary
#7c3656dimgray
#7c3656dimgray
Primary foreground
#f7edf2whitesmoke
#f7edf2whitesmoke
Secondary
#567c36darkolivegreen
#567c36darkolivegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e0e8d9gainsboro
#1e2617black
Muted foreground
#636561dimgray
#9b9e9adarkgray
Accent
#36567cdarkslateblue
#36567cdarkslateblue
Accent foreground
#edf2f7whitesmoke
#edf2f7whitesmoke
Destructive
#982710brown
#d43616firebrick
Destructive foreground
#fce4dfmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7c3656dimgray
#7c3656dimgray

Contrast

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

Light mode
Text on background19.73:1AAA
Text on card19.42:1AAA
Primary button7.26:1AAA
Secondary button4.84:1AA
Muted text4.67:1AA
Accent6.72:1AA
Destructive6.56:1AA
Dark mode
Text on background20.48:1AAA
Text on card20.23:1AAA
Primary button7.26:1AAA
Secondary button4.84:1AA
Muted text5.76:1AA
Accent6.72:1AA
Destructive4.83:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.004 347.937);
  --foreground: oklch(0.083 0.019 347.445);
  --muted: oklch(0.92 0.021 130.658);
  --muted-foreground: oklch(0.505 0.007 130.564);
  --popover: oklch(0.974 0.007 348.001);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.974 0.007 348.001);
  --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.438 0.103 354.005);
  --primary-foreground: oklch(0.956 0.012 348.159);
  --secondary: oklch(0.541 0.108 132.847);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.446 0.073 254.146);
  --accent-foreground: oklch(0.959 0.009 253.281);
  --destructive: oklch(0.452 0.153 32.963);
  --destructive-foreground: oklch(0.936 0.027 31.124);
  --ring: oklch(0.438 0.103 354.005);
  --chart-1: oklch(0.438 0.103 354.005);
  --chart-2: oklch(0.541 0.108 132.847);
  --chart-3: oklch(0.446 0.073 254.146);
  --chart-4: oklch(0.574 0.115 132.874);
  --chart-5: oklch(0.438 0.111 354.513);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.013 347.621);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.256 0.029 131.596);
  --muted-foreground: oklch(0.695 0.006 130.522);
  --popover: oklch(0.125 0.014 347.637);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.125 0.014 347.637);
  --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.438 0.103 354.005);
  --primary-foreground: oklch(0.956 0.012 348.159);
  --secondary: oklch(0.541 0.108 132.847);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.446 0.073 254.146);
  --accent-foreground: oklch(0.959 0.009 253.281);
  --destructive: oklch(0.574 0.199 32.823);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.438 0.103 354.005);
  --chart-1: oklch(0.438 0.103 354.005);
  --chart-2: oklch(0.541 0.108 132.847);
  --chart-3: oklch(0.446 0.073 254.146);
  --chart-4: oklch(0.574 0.115 132.874);
  --chart-5: oklch(0.438 0.111 354.513);
}