Regal is a shadcn/ui theme built around a deep teal primary color (#0f5745) with deep red accents (#570f21). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep teal primary (#0f5745) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #05100dblack | #ffffffwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #05100dblack | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #05100dblack | #ffffffwhite |
| Primary | #0f5745darkslategray | #0f5745darkslategray |
| Primary foreground | #a8f0depaleturquoise | #a8f0depaleturquoise |
| Secondary | #570f21maroon | #570f21maroon |
| Secondary foreground | #f0a8balightpink | #f0a8balightpink |
| Muted | #f1e9eblinen | #160e10black |
| Muted foreground | #60484edimgray | #b79fa5darkgray |
| Accent | #570f21maroon | #570f21maroon |
| Accent foreground | #f0a8balightpink | #f0a8balightpink |
| Destructive | #a02208firebrick | #e9310corangered |
| Destructive foreground | #fde2ddmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0f5745darkslategray | #0f5745darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.33:1 | AAA |
| Text on card | 19.33:1 | AAA |
| Primary button | 6.53:1 | AA |
| Secondary button | 7.36:1 | AAA |
| Muted text | 6.96:1 | AA |
| Accent | 7.36:1 | AAA |
| Destructive | 6.28:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.53:1 | AA |
| Secondary button | 7.36:1 | AAA |
| Muted text | 7.71:1 | AAA |
| Accent | 7.36:1 | AAA |
| Destructive | 4.29:1 | AA Large |
Paste this into your globals.css to use Regal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.159 0.018 177.556);
--muted: oklch(0.942 0.008 0.119);
--muted-foreground: oklch(0.43 0.033 1.975);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.159 0.018 177.556);
--card: oklch(1 0 180);
--card-foreground: oklch(0.159 0.018 177.556);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.41 0.074 171.235);
--primary-foreground: oklch(0.903 0.076 177.162);
--secondary: oklch(0.305 0.104 11.882);
--secondary-foreground: oklch(0.805 0.088 2.838);
--accent: oklch(0.305 0.104 11.882);
--accent-foreground: oklch(0.805 0.088 2.838);
--destructive: oklch(0.461 0.165 32.545);
--destructive-foreground: oklch(0.934 0.031 31.138);
--ring: oklch(0.41 0.074 171.235);
--chart-1: oklch(0.41 0.074 171.235);
--chart-2: oklch(0.305 0.104 11.882);
--chart-3: oklch(0.305 0.104 11.882);
--chart-4: oklch(0.334 0.116 12.316);
--chart-5: oklch(0.415 0.076 170.895);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.175 0.013 1.931);
--muted-foreground: oklch(0.725 0.029 0.964);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.41 0.074 171.235);
--primary-foreground: oklch(0.903 0.076 177.162);
--secondary: oklch(0.305 0.104 11.882);
--secondary-foreground: oklch(0.805 0.088 2.838);
--accent: oklch(0.305 0.104 11.882);
--accent-foreground: oklch(0.805 0.088 2.838);
--destructive: oklch(0.605 0.222 32.274);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.41 0.074 171.235);
--chart-1: oklch(0.41 0.074 171.235);
--chart-2: oklch(0.305 0.104 11.882);
--chart-3: oklch(0.305 0.104 11.882);
--chart-4: oklch(0.334 0.116 12.316);
--chart-5: oklch(0.415 0.076 170.895);
}