Dynasty is a shadcn/ui theme built around a cyan primary color (#4f98b0) with blue accents (#4f67b0). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the cyan primary (#4f98b0) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #000000black |
| Foreground | #050d10black | #f6f8f9whitesmoke |
| Card | #f7fbfcghostwhite | #030303black |
| Card foreground | #040a0cblack | #f9fbfbghostwhite |
| Popover | #fbfdfewhite | #000000black |
| Popover foreground | #050d10black | #f6f8f9whitesmoke |
| Primary | #4f98b0cadetblue | #4f98b0cadetblue |
| Primary foreground | #000000black | #000000black |
| Secondary | #4fb098cadetblue | #4fb098cadetblue |
| Secondary foreground | #10231eblack | #10231eblack |
| Muted | #e7f4f0honeydew | #0b1815black |
| Muted foreground | #636363dimgray | #9c9c9cdarkgray |
| Accent | #4f67b0steelblue | #4f67b0steelblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #bd2300firebrick | #ff5833tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4f98b0cadetblue | #4f98b0cadetblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.22:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 6.43:1 | AA |
| Secondary button | 6.23:1 | AA |
| Muted text | 5.30:1 | AA |
| Accent | 5.37:1 | AA |
| Destructive | 6.19:1 | AA |
| Text on background | 19.71:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 6.43:1 | AA |
| Secondary button | 6.23:1 | AA |
| Muted text | 6.59:1 | AA |
| Accent | 5.37:1 | AA |
| Destructive | 6.70:1 | AA |
Paste this into your globals.css to use Dynasty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 219.523);
--foreground: oklch(0.151 0.015 218.407);
--muted: oklch(0.956 0.015 179.425);
--muted-foreground: oklch(0.501 0 180);
--popover: oklch(0.993 0.002 219.523);
--popover-foreground: oklch(0.151 0.015 218.407);
--card: oklch(0.986 0.004 219.538);
--card-foreground: oklch(0.136 0.013 215.582);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.641 0.081 222.114);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.692 0.099 174.429);
--secondary-foreground: oklch(0.239 0.027 175.924);
--accent: oklch(0.53 0.118 268.307);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.515 0.192 32.551);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.641 0.081 222.114);
--chart-1: oklch(0.641 0.081 222.114);
--chart-2: oklch(0.692 0.099 174.429);
--chart-3: oklch(0.53 0.118 268.307);
--chart-4: oklch(0.709 0.094 174.996);
--chart-5: oklch(0.646 0.086 222.453);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.978 0.003 219.531);
--muted: oklch(0.197 0.02 176.516);
--muted-foreground: oklch(0.691 0 180);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.978 0.003 219.531);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.985 0.002 219.523);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.641 0.081 222.114);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.692 0.099 174.429);
--secondary-foreground: oklch(0.239 0.027 175.924);
--accent: oklch(0.53 0.118 268.307);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.682 0.209 34.051);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.641 0.081 222.114);
--chart-1: oklch(0.641 0.081 222.114);
--chart-2: oklch(0.692 0.099 174.429);
--chart-3: oklch(0.53 0.118 268.307);
--chart-4: oklch(0.709 0.094 174.996);
--chart-5: oklch(0.646 0.086 222.453);
}