Weight for shadcn/ui

Weight is a shadcn/ui theme built around a vivid teal primary color (#03a582) with vivid yellow accents (#a58203). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid teal primary (#03a582) on a neutral background (#010403).

Color palette

TokenLightDark
Background
#ffffffwhite
#010403black
Foreground
#03110eblack
#fcfdfdwhite
Card
#ffffffwhite
#010403black
Card foreground
#03110eblack
#fcfdfdwhite
Popover
#ffffffwhite
#010403black
Popover foreground
#03110eblack
#fcfdfdwhite
Primary
#03a582darkcyan
#03a582darkcyan
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#8203a5darkmagenta
#8203a5darkmagenta
Secondary foreground
#f7dcfelavender
#f7dcfelavender
Muted
#dbd5ddgainsboro
#29222adarkslategray
Muted foreground
#4e4351darkslategray
#b9aebcsilver
Accent
#a58203darkgoldenrod
#a58203darkgoldenrod
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#934010saddlebrown
#e97735peru
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#03a582darkcyan
#03a582darkcyan

Contrast

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

Light mode
Text on background19.25:1AAA
Text on card19.25:1AAA
Primary button3.13:1AA Large
Secondary button6.63:1AA
Muted text6.47:1AA
Accent3.62:1AA Large
Destructive7.03:1AAA
Dark mode
Text on background20.19:1AAA
Text on card20.19:1AAA
Primary button3.13:1AA Large
Secondary button6.63:1AA
Muted text7.25:1AAA
Accent3.62:1AA Large
Destructive7.13:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.164 0.024 179.088);
  --muted: oklch(0.879 0.013 318.885);
  --muted-foreground: oklch(0.399 0.029 318.863);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.164 0.024 179.088);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.164 0.024 179.088);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.642 0.126 170.581);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.452 0.22 315.889);
  --secondary-foreground: oklch(0.927 0.054 318.869);
  --accent: oklch(0.622 0.126 89.477);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.475 0.125 45.57);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.642 0.126 170.581);
  --chart-1: oklch(0.642 0.126 170.581);
  --chart-2: oklch(0.452 0.22 315.889);
  --chart-3: oklch(0.622 0.126 89.477);
  --chart-4: oklch(0.482 0.234 315.806);
  --chart-5: oklch(0.649 0.128 170.294);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.011 181.988);
  --foreground: oklch(0.993 0.001 182.037);
  --muted: oklch(0.263 0.018 318.865);
  --muted-foreground: oklch(0.764 0.024 318.879);
  --popover: oklch(0.099 0.011 181.988);
  --popover-foreground: oklch(0.993 0.001 182.037);
  --card: oklch(0.099 0.011 181.988);
  --card-foreground: oklch(0.993 0.001 182.037);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.642 0.126 170.581);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.452 0.22 315.889);
  --secondary-foreground: oklch(0.927 0.054 318.869);
  --accent: oklch(0.622 0.126 89.477);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.689 0.161 47.559);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.642 0.126 170.581);
  --chart-1: oklch(0.642 0.126 170.581);
  --chart-2: oklch(0.452 0.22 315.889);
  --chart-3: oklch(0.622 0.126 89.477);
  --chart-4: oklch(0.482 0.234 315.806);
  --chart-5: oklch(0.649 0.128 170.294);
}