Monthly for shadcn/ui

Monthly is a shadcn/ui theme built around a deep green primary color (#1b792a) with deep teal accents (#1b795a). The light mode uses a neutral background (#fbfefc). Dark mode keeps the deep green primary (#1b792a) on a green-tinted background (#040c05).

Color palette

TokenLightDark
Background
#fbfefcwhite
#040c05black
Foreground
#061408black
#f6f8f7whitesmoke
Card
#fbfefcwhite
#040c05black
Card foreground
#061408black
#f6f8f7whitesmoke
Popover
#fbfefcwhite
#040c05black
Popover foreground
#061408black
#f6f8f7whitesmoke
Primary
#1b792aforestgreen
#1b792aforestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#3a791bforestgreen
#3a791bforestgreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d6e1d1gainsboro
#242e1edarkslategray
Muted foreground
#40493cdarkslategray
#bac3b6silver
Accent
#1b795aseagreen
#1b795aseagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#602506maroon
#de560dchocolate
Destructive foreground
#f9be9flightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1b792aforestgreen
#1b792aforestgreen

Contrast

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

Light mode
Text on background18.57:1AAA
Text on card18.57:1AAA
Primary button5.48:1AA
Secondary button5.32:1AA
Muted text6.94:1AA
Accent5.32:1AA
Destructive7.27:1AAA
Dark mode
Text on background18.60:1AAA
Text on card18.60:1AAA
Primary button5.48:1AA
Secondary button5.32:1AA
Muted text7.77:1AAA
Accent5.32:1AA
Destructive3.86:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 150.773);
  --foreground: oklch(0.172 0.031 148.691);
  --muted: oklch(0.897 0.024 134.964);
  --muted-foreground: oklch(0.393 0.025 135.153);
  --popover: oklch(0.994 0.003 150.773);
  --popover-foreground: oklch(0.172 0.031 148.691);
  --card: oklch(0.994 0.003 150.773);
  --card-foreground: oklch(0.172 0.031 148.691);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.506 0.143 145.435);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.516 0.142 137.492);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.516 0.099 165.409);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.348 0.095 44.15);
  --destructive-foreground: oklch(0.848 0.081 49.541);
  --ring: oklch(0.506 0.143 145.435);
  --chart-1: oklch(0.506 0.143 145.435);
  --chart-2: oklch(0.516 0.142 137.492);
  --chart-3: oklch(0.516 0.099 165.409);
  --chart-4: oklch(0.553 0.153 137.543);
  --chart-5: oklch(0.512 0.148 145.246);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.023 149.811);
  --foreground: oklch(0.978 0.003 150.782);
  --muted: oklch(0.287 0.032 135.445);
  --muted-foreground: oklch(0.808 0.021 134.955);
  --popover: oklch(0.14 0.023 149.811);
  --popover-foreground: oklch(0.978 0.003 150.782);
  --card: oklch(0.14 0.023 149.811);
  --card-foreground: oklch(0.978 0.003 150.782);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.506 0.143 145.435);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.516 0.142 137.492);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.516 0.099 165.409);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.624 0.184 41.975);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.506 0.143 145.435);
  --chart-1: oklch(0.506 0.143 145.435);
  --chart-2: oklch(0.516 0.142 137.492);
  --chart-3: oklch(0.516 0.099 165.409);
  --chart-4: oklch(0.553 0.153 137.543);
  --chart-5: oklch(0.512 0.148 145.246);
}