Weary for shadcn/ui

Weary is a shadcn/ui theme built around a muted violet primary color (#694c85) with muted teal accents (#4c8569). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the muted violet primary (#694c85) on a neutral background (#030203).

Color palette

TokenLightDark
Background
#fcfcfdwhite
#030203black
Foreground
#0d0515black
#faf9fbghostwhite
Card
#faf8fcghostwhite
#050407black
Card foreground
#0a0411black
#fcfcfdwhite
Popover
#faf8fcghostwhite
#050407black
Popover foreground
#0a0411black
#fcfcfdwhite
Primary
#694c85rebeccapurple
#694c85rebeccapurple
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#85694cdimgray
#85694cdimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f4f0eblinen
#140f0bblack
Muted foreground
#6a645cdimgray
#a39c95darkgray
Accent
#4c8569seagreen
#4c8569seagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#ae1a0afirebrick
#e3230dorangered
Destructive foreground
#feeeecseashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#694c85rebeccapurple
#694c85rebeccapurple

Contrast

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

Light mode
Text on background19.48:1AAA
Text on card19.17:1AAA
Primary button7.03:1AAA
Secondary button5.07:1AA
Muted text5.15:1AA
Accent4.32:1AA Large
Destructive6.33:1AA
Dark mode
Text on background19.76:1AAA
Text on card19.98:1AAA
Primary button7.03:1AAA
Secondary button5.07:1AA
Muted text7.01:1AAA
Accent4.32:1AA Large
Destructive4.67:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 309.1);
  --foreground: oklch(0.138 0.038 307.511);
  --muted: oklch(0.957 0.008 69.571);
  --muted-foreground: oklch(0.506 0.014 69.357);
  --popover: oklch(0.982 0.005 309.073);
  --popover-foreground: oklch(0.127 0.034 308.968);
  --card: oklch(0.982 0.005 309.073);
  --card-foreground: oklch(0.127 0.034 308.968);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.473 0.094 306.93);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.542 0.055 68.12);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.569 0.074 161.818);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.481 0.183 30.493);
  --destructive-foreground: oklch(0.96 0.018 25.151);
  --ring: oklch(0.473 0.094 306.93);
  --chart-1: oklch(0.473 0.094 306.93);
  --chart-2: oklch(0.542 0.055 68.12);
  --chart-3: oklch(0.569 0.074 161.818);
  --chart-4: oklch(0.57 0.058 68.102);
  --chart-5: oklch(0.469 0.104 306.635);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.009 309.924);
  --foreground: oklch(0.983 0.002 309.101);
  --muted: oklch(0.174 0.012 68.819);
  --muted-foreground: oklch(0.696 0.013 69.459);
  --popover: oklch(0.109 0.011 309.924);
  --popover-foreground: oklch(0.992 0.001 309.113);
  --card: oklch(0.109 0.011 309.924);
  --card-foreground: oklch(0.992 0.001 309.113);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.473 0.094 306.93);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.542 0.055 68.12);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.569 0.074 161.818);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.586 0.225 30.45);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.473 0.094 306.93);
  --chart-1: oklch(0.473 0.094 306.93);
  --chart-2: oklch(0.542 0.055 68.12);
  --chart-3: oklch(0.569 0.074 161.818);
  --chart-4: oklch(0.57 0.058 68.102);
  --chart-5: oklch(0.469 0.104 306.635);
}