Almost Royal Cardinal is a shadcn/ui theme built around a vivid violet primary color (#7622ec) with muted light violet accents (#dbd8df). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid violet primary (#7622ec) on a violet-tinted background (#0f0a16).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0f0a16black |
| Foreground | #07030cblack | #fcfcfdwhite |
| Card | #fcfcfcsnow | #0f0a16black |
| Card foreground | #050208black | #ffffffwhite |
| Popover | #ffffffwhite | #0f0a16black |
| Popover foreground | #07030cblack | #fcfcfdwhite |
| Primary | #7622ecblueviolet | #7622ecblueviolet |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #dbd8dfgainsboro | #19181bblack |
| Secondary foreground | #413c48darkslategray | #b2aeb7darkgray |
| Muted | #efedf2whitesmoke | #0f0d12black |
| Muted foreground | #65606cdimgray | #98939fdarkgray |
| Accent | #dbd8dfgainsboro | #19181bblack |
| Accent foreground | #413c48darkslategray | #b2aeb7darkgray |
| Destructive | #702900saddlebrown | #ff6e19darkorange |
| Destructive foreground | #ffc5a3navajowhite | #000000black |
| Border | #e8e8e9lavender | #1c1b1dblack |
| Input | #e8e8e9lavender | #1c1b1dblack |
| Ring | #7622ecblueviolet | #7622ecblueviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.44:1 | AAA |
| Text on card | 20.17:1 | AAA |
| Primary button | 6.52:1 | AA |
| Secondary button | 7.58:1 | AAA |
| Muted text | 5.26:1 | AA |
| Accent | 7.58:1 | AAA |
| Destructive | 6.84:1 | AA |
| Text on background | 19.06:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 6.52:1 | AA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 6.45:1 | AA |
| Accent | 8.10:1 | AAA |
| Destructive | 7.48:1 | AAA |
Paste this into your globals.css to use Almost Royal Cardinal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.115 0.027 306.012);
--muted: oklch(0.95 0.006 304.951);
--muted-foreground: oklch(0.498 0.02 304.485);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.115 0.027 306.012);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.1 0.023 306.295);
--border: oklch(0.93 0.001 305.026);
--input: oklch(0.93 0.001 305.026);
--primary: oklch(0.514 0.264 292.986);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.886 0.009 304.902);
--secondary-foreground: oklch(0.367 0.021 304.246);
--accent: oklch(0.886 0.009 304.902);
--accent-foreground: oklch(0.367 0.021 304.246);
--destructive: oklch(0.381 0.111 43.977);
--destructive-foreground: oklch(0.867 0.081 51.387);
--ring: oklch(0.514 0.264 292.986);
--chart-1: oklch(0.514 0.264 292.986);
--chart-2: oklch(0.886 0.009 304.902);
--chart-3: oklch(0.886 0.009 304.902);
--chart-4: oklch(0.911 0.007 304.936);
--chart-5: oklch(0.515 0.269 292.333);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.157 0.025 302.75);
--foreground: oklch(0.992 0.001 305.03);
--muted: oklch(0.164 0.01 304.202);
--muted-foreground: oklch(0.671 0.019 304.66);
--popover: oklch(0.158 0.026 302.691);
--popover-foreground: oklch(0.992 0.001 305.03);
--card: oklch(0.158 0.026 302.691);
--card-foreground: oklch(1 0 180);
--border: oklch(0.225 0.002 304.907);
--input: oklch(0.225 0.002 304.907);
--primary: oklch(0.514 0.264 292.986);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.212 0.006 304.638);
--secondary-foreground: oklch(0.756 0.014 304.796);
--accent: oklch(0.212 0.006 304.638);
--accent-foreground: oklch(0.756 0.014 304.796);
--destructive: oklch(0.706 0.196 44.321);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.514 0.264 292.986);
--chart-1: oklch(0.514 0.264 292.986);
--chart-2: oklch(0.212 0.006 304.638);
--chart-3: oklch(0.212 0.006 304.638);
--chart-4: oklch(0.243 0.008 304.6);
--chart-5: oklch(0.515 0.269 292.333);
}