Dungeon is a shadcn/ui theme built around a vivid red primary color (#b71018) with vivid teal accents (#10b7af). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid red primary (#b71018) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #040101black | #fdfcfcsnow |
| Card | #ffffffwhite | #000000black |
| Card foreground | #040101black | #fdfcfcsnow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #040101black | #fdfcfcsnow |
| Primary | #b71018firebrick | #b71018firebrick |
| Primary foreground | #fffafbsnow | #fffafbsnow |
| Secondary | #10b7aflightseagreen | #10b7aflightseagreen |
| Secondary foreground | #000000black | #000000black |
| Muted | #e7eeeelavender | #111818black |
| Muted foreground | #526060dimgray | #9fadacdarkgray |
| Accent | #10b7aflightseagreen | #10b7aflightseagreen |
| Accent foreground | #000000black | #000000black |
| Destructive | #8c3208saddlebrown | #f37135tomato |
| Destructive foreground | #fcdacabisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b71018firebrick | #b71018firebrick |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.79:1 | AAA |
| Text on card | 20.79:1 | AAA |
| Primary button | 6.55:1 | AA |
| Secondary button | 8.41:1 | AAA |
| Muted text | 5.58:1 | AA |
| Accent | 8.41:1 | AAA |
| Destructive | 6.23:1 | AA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.50:1 | AAA |
| Primary button | 6.55:1 | AA |
| Secondary button | 8.41:1 | AAA |
| Muted text | 7.74:1 | AAA |
| Accent | 8.41:1 | AAA |
| Destructive | 7.22:1 | AAA |
Paste this into your globals.css to use Dungeon in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.079 0.019 17.162);
--muted: oklch(0.944 0.008 193.443);
--muted-foreground: oklch(0.478 0.018 192.882);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.079 0.019 17.162);
--card: oklch(1 0 180);
--card-foreground: oklch(0.079 0.019 17.162);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.495 0.195 26.901);
--primary-foreground: oklch(0.989 0.005 13.699);
--secondary: oklch(0.704 0.12 188.96);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.704 0.12 188.96);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.442 0.131 40.563);
--destructive-foreground: oklch(0.912 0.044 46.377);
--ring: oklch(0.495 0.195 26.901);
--chart-1: oklch(0.495 0.195 26.901);
--chart-2: oklch(0.704 0.12 188.96);
--chart-3: oklch(0.704 0.12 188.96);
--chart-4: oklch(0.744 0.127 188.934);
--chart-5: oklch(0.5 0.198 27.255);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 13.621);
--muted: oklch(0.202 0.011 192.53);
--muted-foreground: oklch(0.736 0.016 193.177);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.001 13.621);
--card: oklch(0 0 0);
--card-foreground: oklch(0.992 0.001 13.621);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.495 0.195 26.901);
--primary-foreground: oklch(0.989 0.005 13.699);
--secondary: oklch(0.704 0.12 188.96);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.704 0.12 188.96);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.695 0.176 43.053);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.495 0.195 26.901);
--chart-1: oklch(0.495 0.195 26.901);
--chart-2: oklch(0.704 0.12 188.96);
--chart-3: oklch(0.704 0.12 188.96);
--chart-4: oklch(0.744 0.127 188.934);
--chart-5: oklch(0.5 0.198 27.255);
}