Dreary for shadcn/ui

Dreary is a shadcn/ui theme built around a muted green primary color (#98c08c) with muted light green accents (#becaba). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the muted green primary (#98c08c) on a green-tinted background (#080e07).

Color palette

TokenLightDark
Background
#f8fdf7mintcream
#080e07black
Foreground
#030802black
#f9fcf8mintcream
Card
#f8fdf7mintcream
#080e07black
Card foreground
#030802black
#f9fcf8mintcream
Popover
#f8fdf7mintcream
#080e07black
Popover foreground
#030802black
#f9fcf8mintcream
Primary
#98c08cdarkseagreen
#98c08cdarkseagreen
Primary foreground
#0b1009black
#0b1009black
Secondary
#d2d7d1lightgrey
#151a14black
Secondary foreground
#383f37darkslategray
#aabca4darkgray
Muted
#e0e9ddgainsboro
#192216black
Muted foreground
#5f6b5bdimgray
#97a494darkseagreen
Accent
#becabasilver
#24321fdarkslategray
Accent foreground
#262e23darkslategray
#bad0b4silver
Destructive
#722c03saddlebrown
#f9620borangered
Destructive foreground
#fdc9aanavajowhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#98c08cdarkseagreen
#98c08cdarkseagreen

Contrast

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

Light mode
Text on background19.60:1AAA
Text on card19.60:1AAA
Primary button9.35:1AAA
Secondary button7.41:1AAA
Muted text4.49:1AA Large
Accent8.22:1AAA
Destructive6.78:1AA
Dark mode
Text on background18.89:1AAA
Text on card18.89:1AAA
Primary button9.35:1AAA
Secondary button8.74:1AAA
Muted text6.30:1AA
Accent8.21:1AAA
Destructive6.78:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.009 138.34);
  --foreground: oklch(0.125 0.024 136.42);
  --muted: oklch(0.923 0.018 138.35);
  --muted-foreground: oklch(0.514 0.029 138.393);
  --popover: oklch(0.989 0.009 138.34);
  --popover-foreground: oklch(0.125 0.024 136.42);
  --card: oklch(0.989 0.009 138.34);
  --card-foreground: oklch(0.125 0.024 136.42);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.764 0.084 138.479);
  --primary-foreground: oklch(0.166 0.018 138.392);
  --secondary: oklch(0.873 0.01 138.342);
  --secondary-foreground: oklch(0.358 0.016 138.38);
  --accent: oklch(0.824 0.026 138.363);
  --accent-foreground: oklch(0.29 0.022 138.421);
  --destructive: oklch(0.389 0.11 44.253);
  --destructive-foreground: oklch(0.873 0.072 51.528);
  --ring: oklch(0.764 0.084 138.479);
  --chart-1: oklch(0.764 0.084 138.479);
  --chart-2: oklch(0.873 0.01 138.342);
  --chart-3: oklch(0.824 0.026 138.363);
  --chart-4: oklch(0.896 0.008 138.339);
  --chart-5: oklch(0.769 0.092 138.5);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.017 137.66);
  --foreground: oklch(0.987 0.005 138.335);
  --muted: oklch(0.238 0.024 138.465);
  --muted-foreground: oklch(0.703 0.027 138.371);
  --popover: oklch(0.154 0.017 137.66);
  --popover-foreground: oklch(0.987 0.005 138.335);
  --card: oklch(0.154 0.017 137.66);
  --card-foreground: oklch(0.987 0.005 138.335);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.764 0.084 138.479);
  --primary-foreground: oklch(0.166 0.018 138.392);
  --secondary: oklch(0.211 0.015 138.417);
  --secondary-foreground: oklch(0.774 0.039 138.386);
  --accent: oklch(0.299 0.038 138.518);
  --accent-foreground: oklch(0.833 0.045 138.391);
  --destructive: oklch(0.682 0.2 42.578);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.764 0.084 138.479);
  --chart-1: oklch(0.764 0.084 138.479);
  --chart-2: oklch(0.211 0.015 138.417);
  --chart-3: oklch(0.299 0.038 138.518);
  --chart-4: oklch(0.247 0.02 138.428);
  --chart-5: oklch(0.769 0.092 138.5);
}