Maintenance for shadcn/ui

Maintenance is a shadcn/ui theme built around a vivid violet primary color (#711ff4) with vivid green accents (#a3f41f). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the vivid violet primary (#711ff4) on a violet-tinted background (#07030c).

Color palette

TokenLightDark
Background
#f9f8fcghostwhite
#07030cblack
Foreground
#07030cblack
#f7f6f8whitesmoke
Card
#f9f8fcghostwhite
#07030cblack
Card foreground
#07030cblack
#f7f6f8whitesmoke
Popover
#f9f8fcghostwhite
#07030cblack
Popover foreground
#07030cblack
#f7f6f8whitesmoke
Primary
#711ff4blueviolet
#711ff4blueviolet
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#a3f41fgreenyellow
#a3f41fgreenyellow
Secondary foreground
#2b4403darkgreen
#2b4403darkgreen
Muted
#e3e5e1gainsboro
#1c1e1ablack
Muted foreground
#44483ddarkslategray
#bec2b7silver
Accent
#a3f41fgreenyellow
#a3f41fgreenyellow
Accent foreground
#2b4403darkgreen
#2b4403darkgreen
Destructive
#a71906firebrick
#f8503atomato
Destructive foreground
#fee5e1mistyrose
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#711ff4blueviolet
#711ff4blueviolet

Contrast

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

Light mode
Text on background19.34:1AAA
Text on card19.34:1AAA
Primary button6.54:1AA
Secondary button8.05:1AAA
Muted text7.38:1AAA
Accent8.05:1AAA
Destructive6.27:1AA
Dark mode
Text on background18.95:1AAA
Text on card18.95:1AAA
Primary button6.54:1AA
Secondary button8.05:1AAA
Muted text9.28:1AAA
Accent8.05:1AAA
Destructive6.20:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.005 303.559);
  --foreground: oklch(0.113 0.028 304.403);
  --muted: oklch(0.919 0.005 123.715);
  --muted-foreground: oklch(0.393 0.018 124.337);
  --popover: oklch(0.981 0.005 303.559);
  --popover-foreground: oklch(0.113 0.028 304.403);
  --card: oklch(0.981 0.005 303.559);
  --card-foreground: oklch(0.113 0.028 304.403);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.515 0.274 289.766);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.882 0.232 130.259);
  --secondary-foreground: oklch(0.354 0.092 129.642);
  --accent: oklch(0.882 0.232 130.259);
  --accent-foreground: oklch(0.354 0.092 129.642);
  --destructive: oklch(0.468 0.178 30.908);
  --destructive-foreground: oklch(0.941 0.028 26.665);
  --ring: oklch(0.515 0.274 289.766);
  --chart-1: oklch(0.515 0.274 289.766);
  --chart-2: oklch(0.882 0.232 130.259);
  --chart-3: oklch(0.882 0.232 130.259);
  --chart-4: oklch(0.888 0.225 129.558);
  --chart-5: oklch(0.515 0.279 289.082);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.115 0.025 304.36);
  --foreground: oklch(0.975 0.003 303.601);
  --muted: oklch(0.231 0.007 124.067);
  --muted-foreground: oklch(0.808 0.015 123.921);
  --popover: oklch(0.115 0.025 304.36);
  --popover-foreground: oklch(0.975 0.003 303.601);
  --card: oklch(0.115 0.025 304.36);
  --card-foreground: oklch(0.975 0.003 303.601);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.515 0.274 289.766);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.882 0.232 130.259);
  --secondary-foreground: oklch(0.354 0.092 129.642);
  --accent: oklch(0.882 0.232 130.259);
  --accent-foreground: oklch(0.354 0.092 129.642);
  --destructive: oklch(0.662 0.207 30.713);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.515 0.274 289.766);
  --chart-1: oklch(0.515 0.274 289.766);
  --chart-2: oklch(0.882 0.232 130.259);
  --chart-3: oklch(0.882 0.232 130.259);
  --chart-4: oklch(0.888 0.225 129.558);
  --chart-5: oklch(0.515 0.279 289.082);
}