Dangerous is a shadcn/ui theme built around a muted light purple primary color (#e8e3e7) with neutral gray accents (#ded9dd). The light mode uses a neutral background (#fefbfe). Dark mode keeps the muted light purple primary (#e8e3e7) on a neutral background (#070307).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfewhite | #070307black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fefbfewhite | #070307black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fefbfewhite | #070307black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #e8e3e7gainsboro | #e8e3e7gainsboro |
| Primary foreground | #534651darkslategray | #534651darkslategray |
| Secondary | #ded9ddgainsboro | #1c1c1cblack |
| Secondary foreground | #473e46darkslategray | #b5b5b5silver |
| Muted | #f6eff5whitesmoke | #100909black |
| Muted foreground | #484748darkslategray | #b8b7b7silver |
| Accent | #ded9ddgainsboro | #1c1c1cblack |
| Accent foreground | #473e46darkslategray | #b5b5b5silver |
| Destructive | #b23a0afirebrick | #f14e0eorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e8e3e7gainsboro | #e8e3e7gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.42:1 | AAA |
| Text on card | 20.42:1 | AAA |
| Primary button | 7.02:1 | AAA |
| Secondary button | 7.35:1 | AAA |
| Muted text | 8.17:1 | AAA |
| Accent | 7.35:1 | AAA |
| Destructive | 5.98:1 | AA |
| Text on background | 20.48:1 | AAA |
| Text on card | 20.48:1 | AAA |
| Primary button | 7.02:1 | AAA |
| Secondary button | 8.30:1 | AAA |
| Muted text | 9.83:1 | AAA |
| Accent | 8.30:1 | AAA |
| Destructive | 3.59:1 | AA Large |
Paste this into your globals.css to use Dangerous in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.005 328.65);
--foreground: oklch(0 0 0);
--muted: oklch(0.959 0.011 328.714);
--muted-foreground: oklch(0.399 0.003 328.671);
--popover: oklch(0.991 0.005 328.65);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.991 0.005 328.65);
--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.921 0.007 328.672);
--primary-foreground: oklch(0.412 0.024 329.221);
--secondary: oklch(0.89 0.008 328.694);
--secondary-foreground: oklch(0.375 0.019 329.131);
--accent: oklch(0.89 0.008 328.694);
--accent-foreground: oklch(0.375 0.019 329.131);
--destructive: oklch(0.519 0.164 37.979);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.921 0.007 328.672);
--chart-1: oklch(0.921 0.007 328.672);
--chart-2: oklch(0.89 0.008 328.694);
--chart-3: oklch(0.89 0.008 328.694);
--chart-4: oklch(0.914 0.006 328.669);
--chart-5: oklch(0.921 0.009 328.701);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.11 0.018 329.536);
--foreground: oklch(1 0 180);
--muted: oklch(0.151 0.012 18.547);
--muted-foreground: oklch(0.78 0.002 17.192);
--popover: oklch(0.11 0.018 329.536);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.11 0.018 329.536);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.921 0.007 328.672);
--primary-foreground: oklch(0.412 0.024 329.221);
--secondary: oklch(0.227 0 164.055);
--secondary-foreground: oklch(0.773 0 180);
--accent: oklch(0.227 0 164.055);
--accent-foreground: oklch(0.773 0 180);
--destructive: oklch(0.646 0.209 37.542);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.921 0.007 328.672);
--chart-1: oklch(0.921 0.007 328.672);
--chart-2: oklch(0.227 0 164.055);
--chart-3: oklch(0.227 0 164.055);
--chart-4: oklch(0.259 0 167.471);
--chart-5: oklch(0.921 0.009 328.701);
}