Weary for shadcn/ui

Weary is a shadcn/ui theme built around a near-black primary color (#0d0c02) with near-black accents (#090d02). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#0d0c02) on a neutral background (#070603).

Color palette

TokenLightDark
Background
#ffffffwhite
#070603black
Foreground
#090801black
#fdfdfbsnow
Card
#ffffffwhite
#070603black
Card foreground
#090801black
#fdfdfbsnow
Popover
#ffffffwhite
#070603black
Popover foreground
#090801black
#fdfdfbsnow
Primary
#0d0c02black
#0d0c02black
Primary foreground
#bda51fgoldenrod
#bda51fgoldenrod
Secondary
#0d0602black
#0d0602black
Secondary foreground
#e58c5dsandybrown
#e58c5dsandybrown
Muted
#f0ecealinen
#15110fblack
Muted foreground
#605148darkolivegreen
#b7a79fdarkgray
Accent
#090d02black
#090d02black
Accent foreground
#85bd1fyellowgreen
#85bd1fyellowgreen
Destructive
#7d270csaddlebrown
#ec6941tomato
Destructive foreground
#f9cfc3peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0d0c02black
#0d0c02black

Contrast

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

Light mode
Text on background20.06:1AAA
Text on card20.06:1AAA
Primary button8.01:1AAA
Secondary button7.89:1AAA
Muted text6.47:1AA
Accent8.67:1AAA
Destructive6.79:1AA
Dark mode
Text on background19.87:1AAA
Text on card19.87:1AAA
Primary button8.01:1AAA
Secondary button7.89:1AAA
Muted text8.08:1AAA
Accent8.67:1AAA
Destructive6.65:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.131 0.021 102.926);
  --muted: oklch(0.946 0.005 50.593);
  --muted-foreground: oklch(0.446 0.024 50.007);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.131 0.021 102.926);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.131 0.021 102.926);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.15 0.024 102.059);
  --primary-foreground: oklch(0.721 0.142 98.164);
  --secondary: oklch(0.132 0.02 60.938);
  --secondary-foreground: oklch(0.724 0.125 48.276);
  --accent: oklch(0.151 0.028 122.278);
  --accent-foreground: oklch(0.732 0.183 128.329);
  --destructive: oklch(0.402 0.125 36.329);
  --destructive-foreground: oklch(0.888 0.05 37.594);
  --ring: oklch(0.15 0.024 102.059);
  --chart-1: oklch(0.15 0.024 102.059);
  --chart-2: oklch(0.132 0.02 60.938);
  --chart-3: oklch(0.151 0.028 122.278);
  --chart-4: oklch(0.173 0.03 52.086);
  --chart-5: oklch(0.151 0.025 102.151);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.009 100.62);
  --foreground: oklch(0.994 0.002 98.35);
  --muted: oklch(0.181 0.007 50.164);
  --muted-foreground: oklch(0.74 0.021 50.301);
  --popover: oklch(0.123 0.009 100.62);
  --popover-foreground: oklch(0.994 0.002 98.35);
  --card: oklch(0.123 0.009 100.62);
  --card-foreground: oklch(0.994 0.002 98.35);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.15 0.024 102.059);
  --primary-foreground: oklch(0.721 0.142 98.164);
  --secondary: oklch(0.132 0.02 60.938);
  --secondary-foreground: oklch(0.724 0.125 48.276);
  --accent: oklch(0.151 0.028 122.278);
  --accent-foreground: oklch(0.732 0.183 128.329);
  --destructive: oklch(0.675 0.172 37.421);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.15 0.024 102.059);
  --chart-1: oklch(0.15 0.024 102.059);
  --chart-2: oklch(0.132 0.02 60.938);
  --chart-3: oklch(0.151 0.028 122.278);
  --chart-4: oklch(0.173 0.03 52.086);
  --chart-5: oklch(0.151 0.025 102.151);
}