Dangerous is a shadcn/ui theme built around a blue primary color (#313981) with violet accents (#513181). The light mode uses a neutral background (#f6f7fd). Dark mode keeps the blue primary (#313981) on a blue-tinted background (#04050b).
| Token | Light | Dark |
|---|---|---|
| Background | #f6f7fdghostwhite | #04050bblack |
| Foreground | #02030dblack | #f7f7f8whitesmoke |
| Card | #f2f3fcaliceblue | #06070fblack |
| Card foreground | #010209black | #f9f9faghostwhite |
| Popover | #f6f7fdghostwhite | #04050bblack |
| Popover foreground | #02030dblack | #f7f7f8whitesmoke |
| Primary | #313981darkslateblue | #313981darkslateblue |
| Primary foreground | #edeef8lavender | #edeef8lavender |
| Secondary | #316181darkslateblue | #316181darkslateblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dbdee1gainsboro | #1e2224black |
| Muted foreground | #5c6870dimgray | #8f9ba3darkgray |
| Accent | #513181darkslateblue | #513181darkslateblue |
| Accent foreground | #f1edf8whitesmoke | #f1edf8whitesmoke |
| Destructive | #b13c06firebrick | #f6570eorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #313981darkslateblue | #313981darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.27:1 | AAA |
| Text on card | 18.78:1 | AAA |
| Primary button | 8.92:1 | AAA |
| Secondary button | 6.62:1 | AA |
| Muted text | 4.24:1 | AA Large |
| Accent | 8.62:1 | AAA |
| Destructive | 5.94:1 | AA |
| Text on background | 19.00:1 | AAA |
| Text on card | 19.13:1 | AAA |
| Primary button | 8.92:1 | AAA |
| Secondary button | 6.62:1 | AA |
| Muted text | 5.64:1 | AA |
| Accent | 8.62:1 | AAA |
| Destructive | 3.32:1 | AA Large |
Paste this into your globals.css to use Dangerous in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.978 0.008 281.151);
--foreground: oklch(0.104 0.031 271.338);
--muted: oklch(0.9 0.005 236.516);
--muted-foreground: oklch(0.51 0.02 237.025);
--popover: oklch(0.978 0.008 281.151);
--popover-foreground: oklch(0.104 0.031 271.338);
--card: oklch(0.967 0.012 281.079);
--card-foreground: oklch(0.091 0.026 271.28);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.381 0.121 274.386);
--primary-foreground: oklch(0.95 0.014 281.048);
--secondary: oklch(0.474 0.074 240.021);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.396 0.13 298.73);
--accent-foreground: oklch(0.951 0.016 304.104);
--destructive: oklch(0.519 0.161 39.509);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.381 0.121 274.386);
--chart-1: oklch(0.381 0.121 274.386);
--chart-2: oklch(0.474 0.074 240.021);
--chart-3: oklch(0.396 0.13 298.73);
--chart-4: oklch(0.502 0.079 240.076);
--chart-5: oklch(0.377 0.128 273.735);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.118 0.016 277.062);
--foreground: oklch(0.975 0.002 281.254);
--muted: oklch(0.248 0.007 236.851);
--muted-foreground: oklch(0.682 0.018 236.836);
--popover: oklch(0.118 0.016 277.062);
--popover-foreground: oklch(0.975 0.002 281.254);
--card: oklch(0.13 0.019 277.261);
--card-foreground: oklch(0.984 0.001 281.265);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.381 0.121 274.386);
--primary-foreground: oklch(0.95 0.014 281.048);
--secondary: oklch(0.474 0.074 240.021);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.396 0.13 298.73);
--accent-foreground: oklch(0.951 0.016 304.104);
--destructive: oklch(0.665 0.206 39.469);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.381 0.121 274.386);
--chart-1: oklch(0.381 0.121 274.386);
--chart-2: oklch(0.474 0.074 240.021);
--chart-3: oklch(0.396 0.13 298.73);
--chart-4: oklch(0.502 0.079 240.076);
--chart-5: oklch(0.377 0.128 273.735);
}