Weary for shadcn/ui

Weary is a shadcn/ui theme built around a deep teal primary color (#060f0d) with deep blue accents (#060c0f). The light mode uses a neutral background (#fbfdfd). Dark mode keeps the deep teal primary (#060f0d) on a neutral background (#010403).

Color palette

TokenLightDark
Background
#fbfdfdwhite
#010403black
Foreground
#000000black
#fcfdfdwhite
Card
#f8fcfbmintcream
#030807black
Card foreground
#000000black
#ffffffwhite
Popover
#f8fcfbmintcream
#030807black
Popover foreground
#000000black
#ffffffwhite
Primary
#060f0dblack
#060f0dblack
Primary foreground
#3ea394cadetblue
#3ea394cadetblue
Secondary
#060f09black
#060f09black
Secondary foreground
#3ea361mediumseagreen
#3ea361mediumseagreen
Muted
#e5ebe7lavender
#141a16black
Muted foreground
#4f4f4fdarkslategray
#b0b0b0darkgray
Accent
#060c0fblack
#060c0fblack
Accent foreground
#7ab0cdskyblue
#7ab0cdskyblue
Destructive
#ac3202firebrick
#fd510dorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#060f0dblack
#060f0dblack

Contrast

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

Light mode
Text on background20.64:1AAA
Text on card20.28:1AAA
Primary button6.35:1AA
Secondary button6.13:1AA
Muted text6.79:1AA
Accent8.37:1AAA
Destructive6.55:1AA
Dark mode
Text on background20.20:1AAA
Text on card20.20:1AAA
Primary button6.35:1AA
Secondary button6.13:1AA
Muted text8.12:1AAA
Accent8.37:1AAA
Destructive3.31:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 186.542);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.935 0.009 157.772);
  --muted-foreground: oklch(0.428 0 180);
  --popover: oklch(0.988 0.004 186.488);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.004 186.488);
  --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.157 0.015 184.702);
  --primary-foreground: oklch(0.652 0.096 181.599);
  --secondary: oklch(0.155 0.02 156.638);
  --secondary-foreground: oklch(0.639 0.136 151.976);
  --accent: oklch(0.147 0.013 229.21);
  --accent-foreground: oklch(0.729 0.07 232.532);
  --destructive: oklch(0.498 0.165 37.095);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.157 0.015 184.702);
  --chart-1: oklch(0.157 0.015 184.702);
  --chart-2: oklch(0.155 0.02 156.638);
  --chart-3: oklch(0.147 0.013 229.21);
  --chart-4: oklch(0.199 0.031 154.132);
  --chart-5: oklch(0.158 0.016 184.595);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.01 186.215);
  --foreground: oklch(0.993 0.001 186.578);
  --muted: oklch(0.211 0.014 156.56);
  --muted-foreground: oklch(0.757 0 180);
  --popover: oklch(0.124 0.012 186.215);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.124 0.012 186.215);
  --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.157 0.015 184.702);
  --primary-foreground: oklch(0.652 0.096 181.599);
  --secondary: oklch(0.155 0.02 156.638);
  --secondary-foreground: oklch(0.639 0.136 151.976);
  --accent: oklch(0.147 0.013 229.21);
  --accent-foreground: oklch(0.729 0.07 232.532);
  --destructive: oklch(0.668 0.218 37.273);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.157 0.015 184.702);
  --chart-1: oklch(0.157 0.015 184.702);
  --chart-2: oklch(0.155 0.02 156.638);
  --chart-3: oklch(0.147 0.013 229.21);
  --chart-4: oklch(0.199 0.031 154.132);
  --chart-5: oklch(0.158 0.016 184.595);
}