Dame is a shadcn/ui theme built around a vivid deep blue primary color (#031a2a) with vivid deep orange accents (#2a1403). The light mode uses a neutral background (#f6fafd). Dark mode keeps the vivid deep blue primary (#031a2a) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f6fafdghostwhite | #000000black |
| Foreground | #03080cblack | #fcfdfdwhite |
| Card | #f6fafdghostwhite | #000000black |
| Card foreground | #03080cblack | #fcfdfdwhite |
| Popover | #f6fafdghostwhite | #000000black |
| Popover foreground | #03080cblack | #fcfdfdwhite |
| Primary | #031a2ablack | #031a2ablack |
| Primary foreground | #6dbbf3lightskyblue | #6dbbf3lightskyblue |
| Secondary | #2a1403black | #2a1403black |
| Secondary foreground | #f3a56dsandybrown | #f3a56dsandybrown |
| Muted | #e7d9d0gainsboro | #2f2218black |
| Muted foreground | #534b46darkslategray | #b9b1acdarkgray |
| Accent | #2a1403black | #2a1403black |
| Accent foreground | #f3a56dsandybrown | #f3a56dsandybrown |
| Destructive | #6b0c05maroon | #f42010red |
| Destructive foreground | #fbada7lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #031a2ablack | #031a2ablack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.24:1 | AAA |
| Text on card | 19.24:1 | AAA |
| Primary button | 8.46:1 | AAA |
| Secondary button | 8.67:1 | AAA |
| Muted text | 6.19:1 | AA |
| Accent | 8.67:1 | AAA |
| Destructive | 6.92:1 | AA |
| Text on background | 20.60:1 | AAA |
| Text on card | 20.60:1 | AAA |
| Primary button | 8.46:1 | AAA |
| Secondary button | 8.67:1 | AAA |
| Muted text | 7.30:1 | AAA |
| Accent | 8.67:1 | AAA |
| Destructive | 4.16:1 | AA Large |
Paste this into your globals.css to use Dame in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.984 0.006 238.448);
--foreground: oklch(0.131 0.014 231.945);
--muted: oklch(0.895 0.02 58.048);
--muted-foreground: oklch(0.42 0.014 57.889);
--popover: oklch(0.984 0.006 238.448);
--popover-foreground: oklch(0.131 0.014 231.945);
--card: oklch(0.984 0.006 238.448);
--card-foreground: oklch(0.131 0.014 231.945);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.21 0.044 242.353);
--primary-foreground: oklch(0.764 0.112 241.366);
--secondary: oklch(0.219 0.047 55.318);
--secondary-foreground: oklch(0.786 0.118 55.623);
--accent: oklch(0.219 0.047 55.318);
--accent-foreground: oklch(0.786 0.118 55.623);
--destructive: oklch(0.339 0.129 29.886);
--destructive-foreground: oklch(0.821 0.093 23.815);
--ring: oklch(0.21 0.044 242.353);
--chart-1: oklch(0.21 0.044 242.353);
--chart-2: oklch(0.219 0.047 55.318);
--chart-3: oklch(0.219 0.047 55.318);
--chart-4: oklch(0.258 0.058 53.024);
--chart-5: oklch(0.21 0.045 242.382);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 238.376);
--muted: oklch(0.264 0.027 56.756);
--muted-foreground: oklch(0.767 0.012 58.14);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.001 238.376);
--card: oklch(0 0 0);
--card-foreground: oklch(0.992 0.001 238.376);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.21 0.044 242.353);
--primary-foreground: oklch(0.764 0.112 241.366);
--secondary: oklch(0.219 0.047 55.318);
--secondary-foreground: oklch(0.786 0.118 55.623);
--accent: oklch(0.219 0.047 55.318);
--accent-foreground: oklch(0.786 0.118 55.623);
--destructive: oklch(0.616 0.24 29.75);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.21 0.044 242.353);
--chart-1: oklch(0.21 0.044 242.353);
--chart-2: oklch(0.219 0.047 55.318);
--chart-3: oklch(0.219 0.047 55.318);
--chart-4: oklch(0.258 0.058 53.024);
--chart-5: oklch(0.21 0.045 242.382);
}