bajafacility-cmms-v1 for shadcn/ui

bajafacility-cmms-v1 is a shadcn/ui theme built around a vivid blue primary color (#0884ef) with vivid blue accents (#5281ed). The light mode uses a blue-tinted background (#eaf0f5). Dark mode keeps the vivid blue primary (#409ced) on a blue-tinted background (#051b2f).

Color palette

TokenLightDark
Background
#eaf0f5lavender
#051b2fblack
Foreground
#002f68midnightblue
#f5f8fawhitesmoke
Card
#eff5f9aliceblue
#041b2fblack
Card foreground
#003f76midnightblue
#f5f8fawhitesmoke
Popover
#e0f0fflavender
#1a476edarkslategray
Popover foreground
#000000black
#f5f8fawhitesmoke
Primary
#0884efdodgerblue
#409cedcornflowerblue
Primary foreground
#eff1f5whitesmoke
#000c1dblack
Secondary
#bbddfbpowderblue
#aad7fflightblue
Secondary foreground
#01203bmidnightblue
#001c35black
Muted
#b7d7f3lightblue
#00417amidnightblue
Muted foreground
#002341midnightblue
#bbd9f3powderblue
Accent
#5281edcornflowerblue
#bea350darkkhaki
Accent foreground
#edf7ffaliceblue
#1d1a00black
Destructive
#d83a22firebrick
#f83012orangered
Destructive foreground
#ffefecseashell
#ffffffwhite
Border
#c0e2ffpaleturquoise
#0362b4darkcyan
Input
#c4e3ffpaleturquoise
#0161b4darkcyan
Ring
#409cedcornflowerblue
#409cedcornflowerblue

Contrast

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

Light mode
Text on background11.40:1AAA
Text on card9.65:1AAA
Primary button3.35:1AA Large
Secondary button11.71:1AAA
Muted text10.69:1AAA
Accent3.37:1AA Large
Destructive4.13:1AA Large
Dark mode
Text on background16.29:1AAA
Text on card16.34:1AAA
Primary button6.73:1AA
Secondary button11.42:1AAA
Muted text7.05:1AAA
Accent7.14:1AAA
Destructive3.87:1AA Large

CSS variables

Paste this into your globals.css to use bajafacility-cmms-v1 in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.953 0.009 244.209);
  --foreground: oklch(0.315 0.111 256.714);
  --muted: oklch(0.866 0.052 244.842);
  --muted-foreground: oklch(0.249 0.069 249.221);
  --popover: oklch(0.948 0.027 244.437);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.966 0.008 244.197);
  --card-foreground: oklch(0.365 0.11 252.139);
  --border: oklch(0.897 0.054 244.844);
  --input: oklch(0.903 0.051 244.796);
  --primary: oklch(0.612 0.187 253.138);
  --primary-foreground: oklch(0.958 0.006 260.511);
  --secondary: oklch(0.883 0.055 244.876);
  --secondary-foreground: oklch(0.237 0.064 248.638);
  --accent: oklch(0.625 0.171 264.42);
  --accent-foreground: oklch(0.97 0.015 244.283);
  --destructive: oklch(0.585 0.198 31.66);
  --destructive-foreground: oklch(0.963 0.018 28.038);
  --ring: oklch(0.676 0.148 248.452);
  --chart-1: oklch(0.676 0.148 248.452);
  --chart-2: oklch(0.82 0.117 94.976);
  --chart-3: oklch(0.726 0.107 19.991);
  --chart-4: oklch(0.855 0.103 144.608);
  --chart-5: oklch(0.677 0.153 248.701);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.218 0.048 247.685);
  --foreground: oklch(0.976 0.005 244.147);
  --muted: oklch(0.373 0.113 252.256);
  --muted-foreground: oklch(0.871 0.049 244.794);
  --popover: oklch(0.386 0.083 248.303);
  --popover-foreground: oklch(0.976 0.005 244.147);
  --card: oklch(0.217 0.049 247.645);
  --card-foreground: oklch(0.976 0.005 244.147);
  --border: oklch(0.495 0.151 253.047);
  --input: oklch(0.493 0.153 253.312);
  --primary: oklch(0.676 0.148 248.452);
  --primary-foreground: oklch(0.153 0.044 250.362);
  --secondary: oklch(0.862 0.073 245.198);
  --secondary-foreground: oklch(0.222 0.059 247.816);
  --accent: oklch(0.723 0.108 91.542);
  --accent-foreground: oklch(0.214 0.045 101.765);
  --destructive: oklch(0.632 0.235 31.368);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.676 0.148 248.452);
  --chart-1: oklch(0.901 0.135 196.91);
  --chart-2: oklch(0.904 0.194 115.28);
  --chart-3: oklch(0.629 0.171 325.212);
  --chart-4: oklch(0.638 0.134 139.862);
  --chart-5: oklch(0.677 0.153 248.701);
}