Tender Dark Royalty is a shadcn/ui theme built around a vivid deep indigo primary color (#070a74) with vivid deep violet accents (#3a0774). The light mode uses a neutral background (#f7f7fd). Dark mode keeps the vivid deep indigo primary (#070a74) on an indigo-tinted background (#050510).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f7fdghostwhite | #050510black |
| Foreground | #040411black | #f9f9faghostwhite |
| Card | #f7f7fdghostwhite | #050510black |
| Card foreground | #040411black | #f9f9faghostwhite |
| Popover | #f7f7fdghostwhite | #050510black |
| Popover foreground | #040411black | #f9f9faghostwhite |
| Primary | #070a74navy | #070a74navy |
| Primary foreground | #b2b4fblightsteelblue | #b2b4fblightsteelblue |
| Secondary | #074174midnightblue | #074174midnightblue |
| Secondary foreground | #b2d9fblightblue | #b2d9fblightblue |
| Muted | #f0f2f4whitesmoke | #0b0d0fblack |
| Muted foreground | #4e4f50darkslategray | #afb0b1darkgray |
| Accent | #3a0774indigo | #3a0774indigo |
| Accent foreground | #d4b2fbplum | #d4b2fbplum |
| Destructive | #903304saddlebrown | #f95a0borangered |
| Destructive foreground | #fedac8bisque | #000000black |
| Border | #e3e3e8gainsboro | #202028black |
| Input | #e3e3e8gainsboro | #202028black |
| Ring | #070a74navy | #070a74navy |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.11:1 | AAA |
| Text on card | 19.11:1 | AAA |
| Primary button | 8.29:1 | AAA |
| Secondary button | 7.06:1 | AAA |
| Muted text | 7.33:1 | AAA |
| Accent | 7.93:1 | AAA |
| Destructive | 6.05:1 | AA |
| Text on background | 19.27:1 | AAA |
| Text on card | 19.27:1 | AAA |
| Primary button | 8.29:1 | AAA |
| Secondary button | 7.06:1 | AAA |
| Muted text | 8.97:1 | AAA |
| Accent | 7.93:1 | AAA |
| Destructive | 6.50:1 | AA |
Paste this into your globals.css to use Tender Dark Royalty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.978 0.007 284.675);
--foreground: oklch(0.117 0.032 277.981);
--muted: oklch(0.961 0.003 244.134);
--muted-foreground: oklch(0.427 0.002 244.137);
--popover: oklch(0.978 0.007 284.675);
--popover-foreground: oklch(0.117 0.032 277.981);
--card: oklch(0.978 0.007 284.675);
--card-foreground: oklch(0.117 0.032 277.981);
--border: oklch(0.917 0.007 284.667);
--input: oklch(0.917 0.007 284.667);
--primary: oklch(0.265 0.166 266.469);
--primary-foreground: oklch(0.795 0.099 282.361);
--secondary: oklch(0.37 0.103 251.245);
--secondary-foreground: oklch(0.868 0.062 245.014);
--accent: oklch(0.305 0.159 295.383);
--accent-foreground: oklch(0.818 0.106 305.503);
--destructive: oklch(0.45 0.136 40.935);
--destructive-foreground: oklch(0.914 0.046 48.19);
--ring: oklch(0.265 0.166 266.469);
--chart-1: oklch(0.265 0.166 266.469);
--chart-2: oklch(0.37 0.103 251.245);
--chart-3: oklch(0.305 0.159 295.383);
--chart-4: oklch(0.401 0.113 251.521);
--chart-5: oklch(0.265 0.169 265.833);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.026 279.717);
--foreground: oklch(0.984 0.001 284.782);
--muted: oklch(0.157 0.005 244.519);
--muted-foreground: oklch(0.757 0.001 244.113);
--popover: oklch(0.122 0.026 279.717);
--popover-foreground: oklch(0.984 0.001 284.782);
--card: oklch(0.122 0.026 279.717);
--card-foreground: oklch(0.984 0.001 284.782);
--border: oklch(0.247 0.014 283.733);
--input: oklch(0.247 0.014 283.733);
--primary: oklch(0.265 0.166 266.469);
--primary-foreground: oklch(0.795 0.099 282.361);
--secondary: oklch(0.37 0.103 251.245);
--secondary-foreground: oklch(0.868 0.062 245.014);
--accent: oklch(0.305 0.159 295.383);
--accent-foreground: oklch(0.818 0.106 305.503);
--destructive: oklch(0.672 0.207 40.219);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.265 0.166 266.469);
--chart-1: oklch(0.265 0.166 266.469);
--chart-2: oklch(0.37 0.103 251.245);
--chart-3: oklch(0.305 0.159 295.383);
--chart-4: oklch(0.401 0.113 251.521);
--chart-5: oklch(0.265 0.169 265.833);
}