Noxious is a shadcn/ui theme built around a muted violet primary color (#836892) with muted light violet accents (#d2cdd5). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the muted violet primary (#836892) on a violet-tinted background (#09040b).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #09040bblack |
| Foreground | #030104black | #ffffffwhite |
| Card | #fdfbfewhite | #09040bblack |
| Card foreground | #030104black | #ffffffwhite |
| Popover | #fdfbfewhite | #09040bblack |
| Popover foreground | #030104black | #ffffffwhite |
| Primary | #836892gray | #836892gray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d2cdd5lightgrey | #141414black |
| Secondary foreground | #39343ddarkslategray | #adadaddarkgray |
| Muted | #ece6eflavender | #191010black |
| Muted foreground | #605865dimgray | #a79a9adarkgray |
| Accent | #d2cdd5lightgrey | #141414black |
| Accent foreground | #39343ddarkslategray | #adadaddarkgray |
| Destructive | #7c2f0esaddlebrown | #dc5318chocolate |
| Destructive foreground | #f8d3c3peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #836892gray | #836892gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.20:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 4.83:1 | AA |
| Secondary button | 7.77:1 | AAA |
| Muted text | 5.56:1 | AA |
| Accent | 7.77:1 | AAA |
| Destructive | 6.66:1 | AA |
| Text on background | 20.32:1 | AAA |
| Text on card | 20.32:1 | AAA |
| Primary button | 4.83:1 | AA |
| Secondary button | 8.18:1 | AAA |
| Muted text | 6.89:1 | AA |
| Accent | 8.18:1 | AAA |
| Destructive | 3.95:1 | AA Large |
Paste this into your globals.css to use Noxious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 313.58);
--foreground: oklch(0.083 0.017 315.383);
--muted: oklch(0.932 0.013 313.517);
--muted-foreground: oklch(0.472 0.023 313.302);
--popover: oklch(0.99 0.004 313.58);
--popover-foreground: oklch(0.083 0.017 315.383);
--card: oklch(0.99 0.004 313.58);
--card-foreground: oklch(0.083 0.017 315.383);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.558 0.071 312.81);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.856 0.011 313.525);
--secondary-foreground: oklch(0.333 0.017 313.286);
--accent: oklch(0.856 0.011 313.525);
--accent-foreground: oklch(0.333 0.017 313.286);
--destructive: oklch(0.411 0.116 40.744);
--destructive-foreground: oklch(0.895 0.047 44.527);
--ring: oklch(0.558 0.071 312.81);
--chart-1: oklch(0.558 0.071 312.81);
--chart-2: oklch(0.856 0.011 313.525);
--chart-3: oklch(0.856 0.011 313.525);
--chart-4: oklch(0.88 0.009 313.541);
--chart-5: oklch(0.554 0.084 312.652);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.023 315.068);
--foreground: oklch(1 0 180);
--muted: oklch(0.185 0.015 18.632);
--muted-foreground: oklch(0.698 0.016 17.532);
--popover: oklch(0.121 0.023 315.068);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.121 0.023 315.068);
--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.558 0.071 312.81);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.193 0 164.055);
--secondary-foreground: oklch(0.749 0 158.199);
--accent: oklch(0.193 0 164.055);
--accent-foreground: oklch(0.749 0 158.199);
--destructive: oklch(0.619 0.183 39.935);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.558 0.071 312.81);
--chart-1: oklch(0.558 0.071 312.81);
--chart-2: oklch(0.193 0 164.055);
--chart-3: oklch(0.193 0 164.055);
--chart-4: oklch(0.227 0 164.055);
--chart-5: oklch(0.554 0.084 312.652);
}