Weary for shadcn/ui

Weary is a shadcn/ui theme built around a light teal primary color (#d9ede6) with light cyan accents (#d9eaed). The light mode uses a neutral background (#ffffff). Dark mode keeps the light teal primary (#d9ede6) on a neutral background (#020303).

Color palette

TokenLightDark
Background
#ffffffwhite
#020303black
Foreground
#02120dblack
#fcfdfdwhite
Card
#fcfcfcsnow
#030706black
Card foreground
#020d09black
#ffffffwhite
Popover
#ffffffwhite
#020303black
Popover foreground
#02120dblack
#fcfdfdwhite
Primary
#d9ede6gainsboro
#d9ede6gainsboro
Primary foreground
#0f1f19black
#0f1f19black
Secondary
#d9eddcgainsboro
#d9eddcgainsboro
Secondary foreground
#0f1f11black
#0f1f11black
Muted
#e7f3e9honeydew
#0c180eblack
Muted foreground
#576b5adimgray
#94a897darkseagreen
Accent
#d9eaedlavender
#d9eaedlavender
Accent foreground
#0f1d1fblack
#0f1d1fblack
Destructive
#cb2006firebrick
#f8391borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d9ede6gainsboro
#d9ede6gainsboro

Contrast

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

Light mode
Text on background19.17:1AAA
Text on card19.31:1AAA
Primary button13.96:1AAA
Secondary button13.94:1AAA
Muted text5.03:1AA
Accent13.91:1AAA
Destructive5.60:1AA
Dark mode
Text on background20.23:1AAA
Text on card20.25:1AAA
Primary button13.96:1AAA
Secondary button13.94:1AAA
Muted text7.22:1AAA
Accent13.91:1AAA
Destructive3.75:1AA Large

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.165 0.027 170.356);
  --muted: oklch(0.952 0.018 150.003);
  --muted-foreground: oklch(0.505 0.035 149.309);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.165 0.027 170.356);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.146 0.023 172.78);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.929 0.023 172.846);
  --primary-foreground: oklch(0.223 0.025 169.74);
  --secondary: oklch(0.926 0.03 149.81);
  --secondary-foreground: oklch(0.22 0.034 147.939);
  --accent: oklch(0.925 0.018 209.432);
  --accent-foreground: oklch(0.218 0.02 209.797);
  --destructive: oklch(0.54 0.206 31.183);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.929 0.023 172.846);
  --chart-1: oklch(0.929 0.023 172.846);
  --chart-2: oklch(0.926 0.03 149.81);
  --chart-3: oklch(0.925 0.018 209.432);
  --chart-4: oklch(0.946 0.022 149.939);
  --chart-5: oklch(0.93 0.025 172.784);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.008 173.741);
  --foreground: oklch(0.993 0.001 173.533);
  --muted: oklch(0.193 0.026 148.332);
  --muted-foreground: oklch(0.711 0.032 149.642);
  --popover: oklch(0.096 0.008 173.741);
  --popover-foreground: oklch(0.993 0.001 173.533);
  --card: oklch(0.121 0.01 173.741);
  --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.929 0.023 172.846);
  --primary-foreground: oklch(0.223 0.025 169.74);
  --secondary: oklch(0.926 0.03 149.81);
  --secondary-foreground: oklch(0.22 0.034 147.939);
  --accent: oklch(0.925 0.018 209.432);
  --accent-foreground: oklch(0.218 0.02 209.797);
  --destructive: oklch(0.639 0.229 31.572);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.929 0.023 172.846);
  --chart-1: oklch(0.929 0.023 172.846);
  --chart-2: oklch(0.926 0.03 149.81);
  --chart-3: oklch(0.925 0.018 209.432);
  --chart-4: oklch(0.946 0.022 149.939);
  --chart-5: oklch(0.93 0.025 172.784);
}