Dame is a shadcn/ui theme built around a violet primary color (#a73bce) with teal accents (#3bcea7). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the violet primary (#a73bce) on a neutral background (#060308).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #060308black |
| Foreground | #000000black | #fbf8fcghostwhite |
| Card | #fbf7fdghostwhite | #09040bblack |
| Card foreground | #000000black | #fdfcfdwhite |
| Popover | #fdfbfewhite | #060308black |
| Popover foreground | #000000black | #fbf8fcghostwhite |
| Primary | #a73bcedarkorchid | #a73bcedarkorchid |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #cea73bgoldenrod | #cea73bgoldenrod |
| Secondary foreground | #31270cblack | #31270cblack |
| Muted | #f1efe9linen | #16140eblack |
| Muted foreground | #656053dimgray | #aca79adarkgray |
| Accent | #3bcea7lightseagreen | #3bcea7lightseagreen |
| Accent foreground | #0c3127darkslategray | #0c3127darkslategray |
| Destructive | #a52612firebrick | #eb5d47tomato |
| Destructive foreground | #fdefedseashell | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a73bcedarkorchid | #a73bcedarkorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.40:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 5.04:1 | AA |
| Secondary button | 6.45:1 | AA |
| Muted text | 5.44:1 | AA |
| Accent | 7.12:1 | AAA |
| Destructive | 6.48:1 | AA |
| Text on background | 19.48:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 5.04:1 | AA |
| Secondary button | 6.45:1 | AA |
| Muted text | 7.69:1 | AAA |
| Accent | 7.12:1 | AAA |
| Destructive | 6.18:1 | AA |
Paste this into your globals.css to use Dame in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.005 317.178);
--foreground: oklch(0 0 0);
--muted: oklch(0.952 0.008 90.181);
--muted-foreground: oklch(0.49 0.022 90.383);
--popover: oklch(0.99 0.005 317.178);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.009 317.167);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.569 0.224 315.382);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.744 0.13 88.337);
--secondary-foreground: oklch(0.278 0.044 89.243);
--accent: oklch(0.765 0.135 170.77);
--accent-foreground: oklch(0.284 0.045 172.14);
--destructive: oklch(0.475 0.166 31.637);
--destructive-foreground: oklch(0.962 0.016 28.021);
--ring: oklch(0.569 0.224 315.382);
--chart-1: oklch(0.569 0.224 315.382);
--chart-2: oklch(0.744 0.13 88.337);
--chart-3: oklch(0.765 0.135 170.77);
--chart-4: oklch(0.76 0.125 88.919);
--chart-5: oklch(0.571 0.232 315.21);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.02 318.818);
--foreground: oklch(0.983 0.005 317.177);
--muted: oklch(0.19 0.011 90.422);
--muted-foreground: oklch(0.73 0.02 90.304);
--popover: oklch(0.107 0.02 318.818);
--popover-foreground: oklch(0.983 0.005 317.177);
--card: oklch(0.122 0.023 318.663);
--card-foreground: oklch(0.991 0.003 317.183);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.569 0.224 315.382);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.744 0.13 88.337);
--secondary-foreground: oklch(0.278 0.044 89.243);
--accent: oklch(0.765 0.135 170.77);
--accent-foreground: oklch(0.284 0.045 172.14);
--destructive: oklch(0.658 0.18 31.119);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.569 0.224 315.382);
--chart-1: oklch(0.569 0.224 315.382);
--chart-2: oklch(0.744 0.13 88.337);
--chart-3: oklch(0.765 0.135 170.77);
--chart-4: oklch(0.76 0.125 88.919);
--chart-5: oklch(0.571 0.232 315.21);
}