Splendid Royal is a shadcn/ui theme built around a vivid deep blue primary color (#001694) with vivid deep green accents (#169400). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep blue primary (#001694) on a blue-tinted background (#07080e).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #07080eblack |
| Foreground | #010204black | #f7f7f8whitesmoke |
| Card | #ffffffwhite | #07080eblack |
| Card foreground | #010204black | #f7f7f8whitesmoke |
| Popover | #ffffffwhite | #07080eblack |
| Popover foreground | #010204black | #f7f7f8whitesmoke |
| Primary | #001694darkblue | #001694darkblue |
| Primary foreground | #c7cffflightblue | #c7cffflightblue |
| Secondary | #940016darkred | #940016darkred |
| Secondary foreground | #ffc7cfpink | #ffc7cfpink |
| Muted | #ebdbddgainsboro | #241417black |
| Muted foreground | #656162dimgray | #9e9a9adarkgray |
| Accent | #169400green | #169400green |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d11a0afirebrick | #f4311forangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #f1f2f3whitesmoke | #1c1d21black |
| Input | #f1f2f3whitesmoke | #1c1d21black |
| Ring | #001694darkblue | #001694darkblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.75:1 | AAA |
| Text on card | 20.75:1 | AAA |
| Primary button | 8.94:1 | AAA |
| Secondary button | 6.31:1 | AA |
| Muted text | 4.56:1 | AA |
| Accent | 3.98:1 | AA Large |
| Destructive | 5.41:1 | AA |
| Text on background | 18.69:1 | AAA |
| Text on card | 18.69:1 | AAA |
| Primary button | 8.94:1 | AAA |
| Secondary button | 6.31:1 | AA |
| Muted text | 6.34:1 | AA |
| Accent | 3.98:1 | AA Large |
| Destructive | 3.94:1 | AA Large |
Paste this into your globals.css to use Splendid Royal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.081 0.012 272.616);
--muted: oklch(0.905 0.018 7.081);
--muted-foreground: oklch(0.498 0.005 6.854);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.081 0.012 272.616);
--card: oklch(1 0 180);
--card-foreground: oklch(0.081 0.012 272.616);
--border: oklch(0.96 0.002 278.287);
--input: oklch(0.96 0.002 278.287);
--primary: oklch(0.32 0.196 264.173);
--primary-foreground: oklch(0.865 0.067 277.074);
--secondary: oklch(0.42 0.17 24.515);
--secondary-foreground: oklch(0.881 0.065 8.425);
--accent: oklch(0.579 0.194 141.682);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.55 0.214 30.072);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.32 0.196 264.173);
--chart-1: oklch(0.32 0.196 264.173);
--chart-2: oklch(0.42 0.17 24.515);
--chart-3: oklch(0.579 0.194 141.682);
--chart-4: oklch(0.451 0.183 24.813);
--chart-5: oklch(0.32 0.2 263.769);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.135 0.013 275.448);
--foreground: oklch(0.976 0.002 278.292);
--muted: oklch(0.214 0.026 9.673);
--muted-foreground: oklch(0.688 0.005 6.768);
--popover: oklch(0.135 0.013 275.448);
--popover-foreground: oklch(0.976 0.002 278.292);
--card: oklch(0.135 0.013 275.448);
--card-foreground: oklch(0.976 0.002 278.292);
--border: oklch(0.232 0.007 277.861);
--input: oklch(0.232 0.007 277.861);
--primary: oklch(0.32 0.196 264.173);
--primary-foreground: oklch(0.865 0.067 277.074);
--secondary: oklch(0.42 0.17 24.515);
--secondary-foreground: oklch(0.881 0.065 8.425);
--accent: oklch(0.579 0.194 141.682);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.627 0.231 30.006);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.32 0.196 264.173);
--chart-1: oklch(0.32 0.196 264.173);
--chart-2: oklch(0.42 0.17 24.515);
--chart-3: oklch(0.579 0.194 141.682);
--chart-4: oklch(0.451 0.183 24.813);
--chart-5: oklch(0.32 0.2 263.769);
}