Monthly for shadcn/ui

Monthly is a shadcn/ui theme built around a light violet primary color (#d0a3ef) with muted light violet accents (#c6bacf). The light mode uses a neutral background (#faf6fd). Dark mode keeps the light violet primary (#d0a3ef) on a violet-tinted background (#0b0410).

Color palette

TokenLightDark
Background
#faf6fdghostwhite
#0b0410black
Foreground
#09030dblack
#ffffffwhite
Card
#faf6fdghostwhite
#0b0410black
Card foreground
#09030dblack
#ffffffwhite
Popover
#faf6fdghostwhite
#0b0410black
Popover foreground
#09030dblack
#ffffffwhite
Primary
#d0a3efplum
#d0a3efplum
Primary foreground
#360e53midnightblue
#360e53midnightblue
Secondary
#dcd7e0gainsboro
#242324black
Secondary foreground
#443a4bdarkslategray
#bdbcbdsilver
Muted
#e7ddeelavender
#1b1122black
Muted foreground
#504955darkslategray
#b1aab6darkgray
Accent
#c6bacfsilver
#3c3541darkslategray
Accent foreground
#2d2433darkslategray
#d4cfd8lightgrey
Destructive
#bd4500firebrick
#ff6e19darkorange
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d0a3efplum
#d0a3efplum

Contrast

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

Light mode
Text on background19.15:1AAA
Text on card19.15:1AAA
Primary button7.58:1AAA
Secondary button7.58:1AAA
Muted text6.57:1AA
Accent8.01:1AAA
Destructive5.23:1AA
Dark mode
Text on background20.17:1AAA
Text on card20.17:1AAA
Primary button7.58:1AAA
Secondary button8.25:1AAA
Muted text8.09:1AAA
Accent7.74:1AAA
Destructive7.48:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.979 0.01 311.64);
  --foreground: oklch(0.115 0.032 313.5);
  --muted: oklch(0.91 0.026 311.49);
  --muted-foreground: oklch(0.416 0.023 311.286);
  --popover: oklch(0.979 0.01 311.64);
  --popover-foreground: oklch(0.115 0.032 313.5);
  --card: oklch(0.979 0.01 311.64);
  --card-foreground: oklch(0.115 0.032 313.5);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.784 0.115 310.517);
  --primary-foreground: oklch(0.273 0.117 306.492);
  --secondary: oklch(0.885 0.014 311.598);
  --secondary-foreground: oklch(0.365 0.032 311.019);
  --accent: oklch(0.805 0.032 311.403);
  --accent-foreground: oklch(0.276 0.031 310.817);
  --destructive: oklch(0.549 0.166 41.819);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.784 0.115 310.517);
  --chart-1: oklch(0.784 0.115 310.517);
  --chart-2: oklch(0.885 0.014 311.598);
  --chart-3: oklch(0.805 0.032 311.403);
  --chart-4: oklch(0.91 0.011 311.629);
  --chart-5: oklch(0.782 0.12 310.46);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.13 0.031 311.748);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.199 0.038 310.126);
  --muted-foreground: oklch(0.747 0.02 311.512);
  --popover: oklch(0.13 0.031 311.748);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.13 0.031 311.748);
  --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.784 0.115 310.517);
  --primary-foreground: oklch(0.273 0.117 306.492);
  --secondary: oklch(0.258 0.001 311.679);
  --secondary-foreground: oklch(0.796 0.002 311.704);
  --accent: oklch(0.34 0.022 311.2);
  --accent-foreground: oklch(0.862 0.013 311.603);
  --destructive: oklch(0.706 0.196 44.321);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.784 0.115 310.517);
  --chart-1: oklch(0.784 0.115 310.517);
  --chart-2: oklch(0.258 0.001 311.679);
  --chart-3: oklch(0.34 0.022 311.2);
  --chart-4: oklch(0.29 0.002 311.677);
  --chart-5: oklch(0.782 0.12 310.46);
}