Regal is a shadcn/ui theme built around a light indigo primary color (#f4f4fb) with neutral gray accents (#d0d0d2). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the light indigo primary (#f4f4fb) on an indigo-tinted background (#040410).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #040410black |
| Foreground | #050514black | #f9f9fbghostwhite |
| Card | #f8f8fcghostwhite | #060514black |
| Card foreground | #040410black | #fcfcfdwhite |
| Popover | #f8f8fcghostwhite | #060514black |
| Popover foreground | #040410black | #fcfcfdwhite |
| Primary | #f4f4fbwhitesmoke | #f4f4fbwhitesmoke |
| Primary foreground | #33318cdarkslateblue | #33318cdarkslateblue |
| Secondary | #d0d0d2lightgrey | #24242edarkslategray |
| Secondary foreground | #36363adarkslategray | #bbbac9silver |
| Muted | #f1f1f3whitesmoke | #0c0c0eblack |
| Muted foreground | #4a4a64darkslategray | #9c9bb5darkgray |
| Accent | #d0d0d2lightgrey | #24242edarkslategray |
| Accent foreground | #36363adarkslategray | #bbbac9silver |
| Destructive | #863309saddlebrown | #f1783bcoral |
| Destructive foreground | #fbd8c6bisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f4f4fbwhitesmoke | #f4f4fbwhitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.65:1 | AAA |
| Text on card | 19.24:1 | AAA |
| Primary button | 9.76:1 | AAA |
| Secondary button | 7.79:1 | AAA |
| Muted text | 7.60:1 | AAA |
| Accent | 7.79:1 | AAA |
| Destructive | 6.35:1 | AA |
| Text on background | 19.35:1 | AAA |
| Text on card | 19.68:1 | AAA |
| Primary button | 9.76:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 7.24:1 | AAA |
| Accent | 8.04:1 | AAA |
| Destructive | 7.51:1 | AAA |
Paste this into your globals.css to use Regal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.002 287.124);
--foreground: oklch(0.128 0.035 281.183);
--muted: oklch(0.959 0.003 287.118);
--muted-foreground: oklch(0.419 0.043 285.149);
--popover: oklch(0.98 0.005 287.076);
--popover-foreground: oklch(0.118 0.031 281.69);
--card: oklch(0.98 0.005 287.076);
--card-foreground: oklch(0.118 0.031 281.69);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.968 0.01 286.984);
--primary-foreground: oklch(0.375 0.146 277.45);
--secondary: oklch(0.858 0.004 287.089);
--secondary-foreground: oklch(0.336 0.006 286.848);
--accent: oklch(0.858 0.004 287.089);
--accent-foreground: oklch(0.336 0.006 286.848);
--destructive: oklch(0.432 0.124 42.105);
--destructive-foreground: oklch(0.906 0.046 48.185);
--ring: oklch(0.968 0.01 286.984);
--chart-1: oklch(0.968 0.01 286.984);
--chart-2: oklch(0.858 0.004 287.089);
--chart-3: oklch(0.858 0.004 287.089);
--chart-4: oklch(0.882 0.003 287.105);
--chart-5: oklch(0.968 0.01 286.972);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.03 282.007);
--foreground: oklch(0.983 0.002 287.137);
--muted: oklch(0.154 0.004 286.649);
--muted-foreground: oklch(0.7 0.038 286.145);
--popover: oklch(0.129 0.034 281.518);
--popover-foreground: oklch(0.992 0.001 287.153);
--card: oklch(0.129 0.034 281.518);
--card-foreground: oklch(0.992 0.001 287.153);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.968 0.01 286.984);
--primary-foreground: oklch(0.375 0.146 277.45);
--secondary: oklch(0.264 0.018 285.852);
--secondary-foreground: oklch(0.795 0.021 286.688);
--accent: oklch(0.264 0.018 285.852);
--accent-foreground: oklch(0.795 0.021 286.688);
--destructive: oklch(0.704 0.166 44.906);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.968 0.01 286.984);
--chart-1: oklch(0.968 0.01 286.984);
--chart-2: oklch(0.264 0.018 285.852);
--chart-3: oklch(0.264 0.018 285.852);
--chart-4: oklch(0.293 0.021 285.789);
--chart-5: oklch(0.968 0.01 286.972);
}