Monthly for shadcn/ui

Monthly is a shadcn/ui theme built around a neutral gray primary color (#c9c8cb) with neutral gray accents (#c9cbc8). The light mode uses a neutral background (#faf6fd). Dark mode keeps the neutral gray primary (#c9c8cb) on a neutral background (#030104).

Color palette

TokenLightDark
Background
#faf6fdghostwhite
#030104black
Foreground
#030104black
#ffffffwhite
Card
#f7f2fdghostwhite
#050208black
Card foreground
#000000black
#ffffffwhite
Popover
#f7f2fdghostwhite
#050208black
Popover foreground
#000000black
#ffffffwhite
Primary
#c9c8cbsilver
#c9c8cbsilver
Primary foreground
#302f31darkslategray
#302f31darkslategray
Secondary
#c9cbc8silver
#c9cbc8silver
Secondary foreground
#30312fdarkslategray
#30312fdarkslategray
Muted
#dbe3d3gainsboro
#242c1cdarkslategray
Muted foreground
#575e50dimgray
#a8afa1darkgray
Accent
#c9cbc8silver
#c9cbc8silver
Accent foreground
#30312fdarkslategray
#30312fdarkslategray
Destructive
#ca0e07firebrick
#f61109red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c9c8cbsilver
#c9c8cbsilver

Contrast

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

Light mode
Text on background19.52:1AAA
Text on card19.09:1AAA
Primary button8.02:1AAA
Secondary button7.98:1AAA
Muted text5.11:1AA
Accent7.98:1AAA
Destructive5.88:1AA
Dark mode
Text on background20.79:1AAA
Text on card20.59:1AAA
Primary button8.02:1AAA
Secondary button7.98:1AAA
Muted text6.44:1AA
Accent7.98:1AAA
Destructive4.19: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.979 0.01 308.349);
  --foreground: oklch(0.079 0.02 310.329);
  --muted: oklch(0.906 0.023 128.742);
  --muted-foreground: oklch(0.47 0.023 129.031);
  --popover: oklch(0.969 0.015 308.291);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.969 0.015 308.291);
  --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.835 0.003 308.418);
  --primary-foreground: oklch(0.309 0.004 308.328);
  --secondary: oklch(0.839 0.003 128.502);
  --secondary-foreground: oklch(0.313 0.004 128.591);
  --accent: oklch(0.839 0.003 128.502);
  --accent-foreground: oklch(0.313 0.004 128.591);
  --destructive: oklch(0.53 0.212 29.289);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.835 0.003 308.418);
  --chart-1: oklch(0.835 0.003 308.418);
  --chart-2: oklch(0.839 0.003 128.502);
  --chart-3: oklch(0.839 0.003 128.502);
  --chart-4: oklch(0.863 0.003 128.495);
  --chart-5: oklch(0.833 0.008 308.355);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.081 0.018 310.04);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.279 0.03 129.746);
  --muted-foreground: oklch(0.745 0.021 128.778);
  --popover: oklch(0.102 0.022 310.04);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.102 0.022 310.04);
  --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.835 0.003 308.418);
  --primary-foreground: oklch(0.309 0.004 308.328);
  --secondary: oklch(0.839 0.003 128.502);
  --secondary-foreground: oklch(0.313 0.004 128.591);
  --accent: oklch(0.839 0.003 128.502);
  --accent-foreground: oklch(0.313 0.004 128.591);
  --destructive: oklch(0.615 0.247 29.305);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.835 0.003 308.418);
  --chart-1: oklch(0.835 0.003 308.418);
  --chart-2: oklch(0.839 0.003 128.502);
  --chart-3: oklch(0.839 0.003 128.502);
  --chart-4: oklch(0.863 0.003 128.495);
  --chart-5: oklch(0.833 0.008 308.355);
}