Regulator is a shadcn/ui theme built around a vivid light orange primary color (#fcded5) with vivid light yellow accents (#fcf2d5). The light mode uses a neutral background (#fefcfb). Dark mode keeps the vivid light orange primary (#fcded5) on an orange-tinted background (#0e0806).
| Token | Light | Dark |
|---|---|---|
| Background | #fefcfbsnow | #0e0806black |
| Foreground | #0c0503black | #ffffffwhite |
| Card | #fefcfbsnow | #0e0806black |
| Card foreground | #0c0503black | #ffffffwhite |
| Popover | #fefcfbsnow | #0e0806black |
| Popover foreground | #0c0503black | #ffffffwhite |
| Primary | #fcded5antiquewhite | #fcded5antiquewhite |
| Primary foreground | #922d0csaddlebrown | #922d0csaddlebrown |
| Secondary | #fcd5demistyrose | #fcd5demistyrose |
| Secondary foreground | #920c2dbrown | #920c2dbrown |
| Muted | #f2eeefwhitesmoke | #110d0eblack |
| Muted foreground | #73595fdimgray | #a68c92rosybrown |
| Accent | #fcf2d5papayawhip | #fcf2d5papayawhip |
| Accent foreground | #342804black | #342804black |
| Destructive | #a23311brown | #eb663dtomato |
| Destructive foreground | #fdede8linen | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fcded5antiquewhite | #fcded5antiquewhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.74:1 | AAA |
| Text on card | 19.74:1 | AAA |
| Primary button | 6.36:1 | AA |
| Secondary button | 6.76:1 | AA |
| Muted text | 5.47:1 | AA |
| Accent | 12.92:1 | AAA |
| Destructive | 6.14:1 | AA |
| Text on background | 19.86:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 6.36:1 | AA |
| Secondary button | 6.76:1 | AA |
| Muted text | 6.22:1 | AA |
| Accent | 12.92:1 | AAA |
| Destructive | 6.47:1 | AA |
Paste this into your globals.css to use Regulator in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 39.494);
--foreground: oklch(0.128 0.017 47.552);
--muted: oklch(0.952 0.004 359.999);
--muted-foreground: oklch(0.492 0.036 1.87);
--popover: oklch(0.992 0.002 39.494);
--popover-foreground: oklch(0.128 0.017 47.552);
--card: oklch(0.992 0.002 39.494);
--card-foreground: oklch(0.128 0.017 47.552);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.923 0.035 39.32);
--primary-foreground: oklch(0.448 0.142 36.818);
--secondary: oklch(0.907 0.045 1.239);
--secondary-foreground: oklch(0.424 0.163 16.381);
--accent: oklch(0.961 0.04 91.71);
--accent-foreground: oklch(0.283 0.053 89.668);
--destructive: oklch(0.481 0.152 36.144);
--destructive-foreground: oklch(0.957 0.018 37.66);
--ring: oklch(0.923 0.035 39.32);
--chart-1: oklch(0.923 0.035 39.32);
--chart-2: oklch(0.907 0.045 1.239);
--chart-3: oklch(0.961 0.04 91.71);
--chart-4: oklch(0.938 0.03 0.745);
--chart-5: oklch(0.923 0.036 39.315);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.012 42.834);
--foreground: oklch(1 0 180);
--muted: oklch(0.166 0.007 1.036);
--muted-foreground: oklch(0.665 0.033 1.241);
--popover: oklch(0.143 0.012 42.834);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.143 0.012 42.834);
--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.923 0.035 39.32);
--primary-foreground: oklch(0.448 0.142 36.818);
--secondary: oklch(0.907 0.045 1.239);
--secondary-foreground: oklch(0.424 0.163 16.381);
--accent: oklch(0.961 0.04 91.71);
--accent-foreground: oklch(0.283 0.053 89.668);
--destructive: oklch(0.668 0.174 37.358);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.923 0.035 39.32);
--chart-1: oklch(0.923 0.035 39.32);
--chart-2: oklch(0.907 0.045 1.239);
--chart-3: oklch(0.961 0.04 91.71);
--chart-4: oklch(0.938 0.03 0.745);
--chart-5: oklch(0.923 0.036 39.315);
}