Weighty for shadcn/ui

Weighty is a shadcn/ui theme built around a violet primary color (#633e84) with neutral gray accents (#dedede). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the violet primary (#633e84) on a violet-tinted background (#08050b).

Color palette

TokenLightDark
Background
#fdfbfewhite
#08050bblack
Foreground
#000000black
#faf8fbghostwhite
Card
#faf7fcghostwhite
#0a060eblack
Card foreground
#000000black
#fdfcfdwhite
Popover
#fdfbfewhite
#08050bblack
Popover foreground
#000000black
#faf8fbghostwhite
Primary
#633e84rebeccapurple
#633e84rebeccapurple
Primary foreground
#faf8fcghostwhite
#faf8fcghostwhite
Secondary
#dededegainsboro
#312e33darkslategray
Secondary foreground
#454545darkslategray
#cac6cdlightgrey
Muted
#e1d0d0lightgrey
#271e2fdarkslategray
Muted foreground
#735959dimgray
#9a8ca6darkgray
Accent
#dededegainsboro
#312e33darkslategray
Accent foreground
#454545darkslategray
#cac6cdlightgrey
Destructive
#c84609chocolate
#e5500borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#633e84rebeccapurple
#633e84rebeccapurple

Contrast

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

Light mode
Text on background20.41:1AAA
Text on card19.83:1AAA
Primary button7.78:1AAA
Secondary button7.11:1AAA
Muted text4.29:1AA Large
Accent7.11:1AAA
Destructive4.86:1AA
Dark mode
Text on background19.20:1AAA
Text on card19.59:1AAA
Primary button7.78:1AAA
Secondary button7.98:1AAA
Muted text5.09:1AA
Accent7.98:1AAA
Destructive3.83:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 309.75);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.872 0.019 17.518);
  --muted-foreground: oklch(0.49 0.035 18.421);
  --popover: oklch(0.99 0.003 309.75);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.007 309.714);
  --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.439 0.116 306.871);
  --primary-foreground: oklch(0.982 0.005 309.732);
  --secondary: oklch(0.9 0 188.746);
  --secondary-foreground: oklch(0.39 0 165.964);
  --accent: oklch(0.9 0 188.746);
  --accent-foreground: oklch(0.39 0 165.964);
  --destructive: oklch(0.568 0.176 39.548);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.439 0.116 306.871);
  --chart-1: oklch(0.439 0.116 306.871);
  --chart-2: oklch(0.9 0 188.746);
  --chart-3: oklch(0.9 0 188.746);
  --chart-4: oklch(0.923 0 153.435);
  --chart-5: oklch(0.437 0.125 306.556);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.017 310.84);
  --foreground: oklch(0.982 0.004 309.741);
  --muted: oklch(0.253 0.033 308.456);
  --muted-foreground: oklch(0.661 0.042 309.159);
  --popover: oklch(0.123 0.017 310.84);
  --popover-foreground: oklch(0.982 0.004 309.741);
  --card: oklch(0.135 0.019 309.597);
  --card-foreground: oklch(0.991 0.002 309.763);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.439 0.116 306.871);
  --primary-foreground: oklch(0.982 0.005 309.732);
  --secondary: oklch(0.305 0.011 309.423);
  --secondary-foreground: oklch(0.832 0.01 309.67);
  --accent: oklch(0.305 0.011 309.423);
  --accent-foreground: oklch(0.832 0.01 309.67);
  --destructive: oklch(0.628 0.196 39.316);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.439 0.116 306.871);
  --chart-1: oklch(0.439 0.116 306.871);
  --chart-2: oklch(0.305 0.011 309.423);
  --chart-3: oklch(0.305 0.011 309.423);
  --chart-4: oklch(0.334 0.013 309.412);
  --chart-5: oklch(0.437 0.125 306.556);
}