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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.26:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 12.06:1 | AAA |
| Secondary button | 10.77:1 | AAA |
| Muted text | 6.99:1 | AA |
| Accent | 8.58:1 | AAA |
| Destructive | 6.28:1 | AA |
| Text on background | 20.09:1 | AAA |
| Text on card | 20.09:1 | AAA |
| Primary button | 12.06:1 | AAA |
| Secondary button | 10.77:1 | AAA |
| Muted text | 8.26:1 | AAA |
| Accent | 8.58:1 | AAA |
| Destructive | 3.65:1 | AA Large |
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);
}