March for shadcn/ui

March is a shadcn/ui theme built around a yellow primary color (#ab853b) with green accents (#98ab3b). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#ab853b) on a neutral background (#080603).

Color palette

TokenLightDark
Background
#ffffffwhite
#080603black
Foreground
#140f05black
#ffffffwhite
Card
#ffffffwhite
#080603black
Card foreground
#140f05black
#ffffffwhite
Popover
#ffffffwhite
#080603black
Popover foreground
#140f05black
#ffffffwhite
Primary
#ab853bperu
#ab853bperu
Primary foreground
#000000black
#000000black
Secondary
#ab4d3bsienna
#ab4d3bsienna
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eedcd8gainsboro
#271511black
Muted foreground
#665957dimgray
#a89c99darkgray
Accent
#98ab3byellowgreen
#98ab3byellowgreen
Accent foreground
#111307black
#111307black
Destructive
#a54209saddlebrown
#f36a1bchocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ab853bperu
#ab853bperu

Contrast

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

Light mode
Text on background19.08:1AAA
Text on card19.08:1AAA
Primary button6.17:1AA
Secondary button5.43:1AA
Muted text5.05:1AA
Accent7.34:1AAA
Destructive6.22:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button6.17:1AA
Secondary button5.43:1AA
Muted text6.56:1AA
Accent7.34:1AAA
Destructive6.90:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.172 0.021 85.465);
  --muted: oklch(0.907 0.021 31.1);
  --muted-foreground: oklch(0.477 0.017 31.151);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.172 0.021 85.465);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.172 0.021 85.465);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.639 0.103 82.26);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.537 0.127 32.887);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.705 0.138 118.189);
  --accent-foreground: oklch(0.18 0.024 116.405);
  --destructive: oklch(0.506 0.144 43.667);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.639 0.103 82.26);
  --chart-1: oklch(0.639 0.103 82.26);
  --chart-2: oklch(0.537 0.127 32.887);
  --chart-3: oklch(0.705 0.138 118.189);
  --chart-4: oklch(0.563 0.134 32.9);
  --chart-5: oklch(0.645 0.108 81.904);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.012 89.771);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.219 0.031 31.958);
  --muted-foreground: oklch(0.702 0.015 31.096);
  --popover: oklch(0.122 0.012 89.771);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.122 0.012 89.771);
  --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.639 0.103 82.26);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.537 0.127 32.887);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.705 0.138 118.189);
  --accent-foreground: oklch(0.18 0.024 116.405);
  --destructive: oklch(0.684 0.187 44.754);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.639 0.103 82.26);
  --chart-1: oklch(0.639 0.103 82.26);
  --chart-2: oklch(0.537 0.127 32.887);
  --chart-3: oklch(0.705 0.138 118.189);
  --chart-4: oklch(0.563 0.134 32.9);
  --chart-5: oklch(0.645 0.108 81.904);
}