Royal is a shadcn/ui theme built around a muted pink primary color (#5e5054) with muted blue accents (#50545e). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted pink primary (#5e5054) on a pink-tinted background (#0f0508).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0f0508black |
| Foreground | #090104black | #fdfcfcsnow |
| Card | #ffffffwhite | #0f0508black |
| Card foreground | #090104black | #fdfcfcsnow |
| Popover | #ffffffwhite | #0f0508black |
| Popover foreground | #090104black | #fdfcfcsnow |
| Primary | #5e5054dimgray | #5e5054dimgray |
| Primary foreground | #f1eeefwhitesmoke | #f1eeefwhitesmoke |
| Secondary | #545e50dimgray | #545e50dimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ebf2e9linen | #10160dblack |
| Muted foreground | #576850dimgray | #9faf97darkgray |
| Accent | #50545edimgray | #50545edimgray |
| Accent foreground | #eeeff1whitesmoke | #eeeff1whitesmoke |
| Destructive | #6d1603maroon | #fa5833tomato |
| Destructive foreground | #fdb5a5lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5e5054dimgray | #5e5054dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.63:1 | AAA |
| Text on card | 20.63:1 | AAA |
| Primary button | 6.64:1 | AA |
| Secondary button | 6.81:1 | AA |
| Muted text | 5.25:1 | AA |
| Accent | 6.58:1 | AA |
| Destructive | 6.95:1 | AA |
| Text on background | 19.59:1 | AAA |
| Text on card | 19.59:1 | AAA |
| Primary button | 6.64:1 | AA |
| Secondary button | 6.81:1 | AA |
| Muted text | 7.89:1 | AAA |
| Accent | 6.58:1 | AA |
| Destructive | 6.48:1 | AA |
Paste this into your globals.css to use Royal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.101 0.028 355.109);
--muted: oklch(0.953 0.014 135.491);
--muted-foreground: oklch(0.496 0.042 135.821);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.101 0.028 355.109);
--card: oklch(1 0 180);
--card-foreground: oklch(0.101 0.028 355.109);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.446 0.02 356.852);
--primary-foreground: oklch(0.953 0.003 355.701);
--secondary: oklch(0.468 0.025 135.665);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.446 0.016 265.8);
--accent-foreground: oklch(0.953 0.002 265.995);
--destructive: oklch(0.352 0.124 33.753);
--destructive-foreground: oklch(0.837 0.087 33.055);
--ring: oklch(0.446 0.02 356.852);
--chart-1: oklch(0.446 0.02 356.852);
--chart-2: oklch(0.468 0.025 135.665);
--chart-3: oklch(0.446 0.016 265.8);
--chart-4: oklch(0.496 0.027 135.668);
--chart-5: oklch(0.442 0.027 357.324);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.135 0.023 356.898);
--foreground: oklch(0.991 0.002 355.665);
--muted: oklch(0.192 0.021 135.943);
--muted-foreground: oklch(0.735 0.038 135.66);
--popover: oklch(0.135 0.023 356.898);
--popover-foreground: oklch(0.991 0.002 355.665);
--card: oklch(0.135 0.023 356.898);
--card-foreground: oklch(0.991 0.002 355.665);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.446 0.02 356.852);
--primary-foreground: oklch(0.953 0.003 355.701);
--secondary: oklch(0.468 0.025 135.665);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.446 0.016 265.8);
--accent-foreground: oklch(0.953 0.002 265.995);
--destructive: oklch(0.673 0.204 34.068);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.446 0.02 356.852);
--chart-1: oklch(0.446 0.02 356.852);
--chart-2: oklch(0.468 0.025 135.665);
--chart-3: oklch(0.446 0.016 265.8);
--chart-4: oklch(0.496 0.027 135.668);
--chart-5: oklch(0.442 0.027 357.324);
}