Regulator for shadcn/ui

Regulator is a shadcn/ui theme built around a vivid light cyan primary color (#dbf7ff) with vivid light blue accents (#dbe5ff). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light cyan primary (#dbf7ff) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#020708black
#f9fafbghostwhite
Card
#ffffffwhite
#000000black
Card foreground
#020708black
#f9fafbghostwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#020708black
#f9fafbghostwhite
Primary
#dbf7fflightcyan
#dbf7fflightcyan
Primary foreground
#003342darkslategray
#003342darkslategray
Secondary
#dbfff5lightcyan
#dbfff5lightcyan
Secondary foreground
#004231darkslategray
#004231darkslategray
Muted
#d6e0degainsboro
#1f2926darkslategray
Muted foreground
#3c4945darkslategray
#b6c3c0silver
Accent
#dbe5fflavender
#dbe5fflavender
Accent foreground
#002da8darkblue
#002da8darkblue
Destructive
#912d08saddlebrown
#f14b0eorangered
Destructive foreground
#fcdbcfbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dbf7fflightcyan
#dbf7fflightcyan

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card20.26:1AAA
Primary button12.06:1AAA
Secondary button10.77:1AAA
Muted text6.99:1AA
Accent8.58:1AAA
Destructive6.28:1AA
Dark mode
Text on background20.09:1AAA
Text on card20.09:1AAA
Primary button12.06:1AAA
Secondary button10.77:1AAA
Muted text8.26:1AAA
Accent8.58:1AAA
Destructive3.65:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.12 0.013 212.864);
  --muted: oklch(0.899 0.011 178.418);
  --muted-foreground: oklch(0.392 0.018 177.393);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.12 0.013 212.864);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.12 0.013 212.864);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.958 0.031 217.983);
  --primary-foreground: oklch(0.298 0.056 224.745);
  --secondary: oklch(0.972 0.039 177.584);
  --secondary-foreground: oklch(0.338 0.068 168.216);
  --accent: oklch(0.922 0.037 269.746);
  --accent-foreground: oklch(0.376 0.199 263.442);
  --destructive: oklch(0.444 0.141 37.372);
  --destructive-foreground: oklch(0.916 0.041 41.031);
  --ring: oklch(0.958 0.031 217.983);
  --chart-1: oklch(0.958 0.031 217.983);
  --chart-2: oklch(0.972 0.039 177.584);
  --chart-3: oklch(0.922 0.037 269.746);
  --chart-4: oklch(0.984 0.022 178.114);
  --chart-5: oklch(0.958 0.032 217.992);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.985 0.002 217.753);
  --muted: oklch(0.269 0.015 177.096);
  --muted-foreground: oklch(0.807 0.015 178.227);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.985 0.002 217.753);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.985 0.002 217.753);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.958 0.031 217.983);
  --primary-foreground: oklch(0.298 0.056 224.745);
  --secondary: oklch(0.972 0.039 177.584);
  --secondary-foreground: oklch(0.338 0.068 168.216);
  --accent: oklch(0.922 0.037 269.746);
  --accent-foreground: oklch(0.376 0.199 263.442);
  --destructive: oklch(0.642 0.211 36.627);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.958 0.031 217.983);
  --chart-1: oklch(0.958 0.031 217.983);
  --chart-2: oklch(0.972 0.039 177.584);
  --chart-3: oklch(0.922 0.037 269.746);
  --chart-4: oklch(0.984 0.022 178.114);
  --chart-5: oklch(0.958 0.032 217.992);
}