Subsequent Royalty is a shadcn/ui theme built around a violet primary color (#5e36b0) with muted light violet accents (#dfdce5). The light mode uses a neutral background (#f9f7fd). Dark mode keeps the violet primary (#5e36b0) on a violet-tinted background (#07040b).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f7fdghostwhite | #07040bblack |
| Foreground | #0a0415black | #f9f9fbghostwhite |
| Card | #f6f3fbwhitesmoke | #09060fblack |
| Card foreground | #080311black | #fcfcfdwhite |
| Popover | #f6f3fbwhitesmoke | #09060fblack |
| Popover foreground | #080311black | #fcfcfdwhite |
| Primary | #5e36b0rebeccapurple | #5e36b0rebeccapurple |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #dfdce5gainsboro | #161618black |
| Secondary foreground | #443c53darkslategray | #aeabb5darkgray |
| Muted | #dfd8eegainsboro | #181127black |
| Muted foreground | #524a64dimgray | #a49bb5darkgray |
| Accent | #dfdce5gainsboro | #161618black |
| Accent foreground | #443c53darkslategray | #aeabb5darkgray |
| Destructive | #bd3014firebrick | #eb5a3dtomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e2dfe7gainsboro | #18161dblack |
| Input | #e2dfe7gainsboro | #18161dblack |
| Ring | #5e36b0rebeccapurple | #5e36b0rebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.98:1 | AAA |
| Text on card | 18.58:1 | AAA |
| Primary button | 7.98:1 | AAA |
| Secondary button | 7.65:1 | AAA |
| Muted text | 6.01:1 | AA |
| Accent | 7.65:1 | AAA |
| Destructive | 5.82:1 | AA |
| Text on background | 19.35:1 | AAA |
| Text on card | 19.64:1 | AAA |
| Primary button | 7.98:1 | AAA |
| Secondary button | 8.00:1 | AAA |
| Muted text | 6.90:1 | AA |
| Accent | 8.00:1 | AAA |
| Destructive | 6.05:1 | AA |
Paste this into your globals.css to use Subsequent Royalty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.007 301.372);
--foreground: oklch(0.133 0.039 298.666);
--muted: oklch(0.894 0.031 300.928);
--muted-foreground: oklch(0.427 0.044 299.821);
--popover: oklch(0.969 0.011 301.309);
--popover-foreground: oklch(0.122 0.034 300.399);
--card: oklch(0.969 0.011 301.309);
--card-foreground: oklch(0.122 0.034 300.399);
--border: oklch(0.907 0.012 301.285);
--input: oklch(0.907 0.012 301.285);
--primary: oklch(0.454 0.182 293.008);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.898 0.014 301.248);
--secondary-foreground: oklch(0.373 0.04 299.755);
--accent: oklch(0.898 0.014 301.248);
--accent-foreground: oklch(0.373 0.04 299.755);
--destructive: oklch(0.528 0.182 32.871);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.454 0.182 293.008);
--chart-1: oklch(0.454 0.182 293.008);
--chart-2: oklch(0.898 0.014 301.248);
--chart-3: oklch(0.898 0.014 301.248);
--chart-4: oklch(0.924 0.01 301.316);
--chart-5: oklch(0.451 0.19 292.294);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.019 301.824);
--foreground: oklch(0.982 0.003 301.438);
--muted: oklch(0.199 0.045 297.585);
--muted-foreground: oklch(0.706 0.039 300.611);
--popover: oklch(0.131 0.022 300.769);
--popover-foreground: oklch(0.991 0.002 301.466);
--card: oklch(0.131 0.022 300.769);
--card-foreground: oklch(0.991 0.002 301.466);
--border: oklch(0.205 0.015 300.272);
--input: oklch(0.205 0.015 300.272);
--primary: oklch(0.454 0.182 293.008);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.201 0.006 301.044);
--secondary-foreground: oklch(0.747 0.014 301.194);
--accent: oklch(0.201 0.006 301.044);
--accent-foreground: oklch(0.747 0.014 301.194);
--destructive: oklch(0.653 0.185 33.18);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.454 0.182 293.008);
--chart-1: oklch(0.454 0.182 293.008);
--chart-2: oklch(0.201 0.006 301.044);
--chart-3: oklch(0.201 0.006 301.044);
--chart-4: oklch(0.233 0.007 300.995);
--chart-5: oklch(0.451 0.19 292.294);
}