Poison is a shadcn/ui theme built around a purple primary color (#6a395c) with neutral gray accents (#dcdbdc). The light mode uses a neutral background (#fcf7fb). Dark mode keeps the purple primary (#6a395c) on a neutral background (#080206).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf7fbsnow | #080206black |
| Foreground | #130610black | #ffffffwhite |
| Card | #fbf4f9lavenderblush | #0c030ablack |
| Card foreground | #10050cblack | #ffffffwhite |
| Popover | #fcf7fbsnow | #080206black |
| Popover foreground | #130610black | #ffffffwhite |
| Primary | #6a395cdimgray | #6a395cdimgray |
| Primary foreground | #f1e4edlinen | #f1e4edlinen |
| Secondary | #dcdbdcgainsboro | #34232fdarkslategray |
| Secondary foreground | #444143darkslategray | #cfb9c9thistle |
| Muted | #f4f0f3whitesmoke | #0f0b0eblack |
| Muted foreground | #5c575adimgray | #a8a3a7darkgray |
| Accent | #dcdbdcgainsboro | #34232fdarkslategray |
| Accent foreground | #444143darkslategray | #cfb9c9thistle |
| Destructive | #8f2d0asaddlebrown | #e04710orangered |
| Destructive foreground | #fcdbcfbisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6a395cdimgray | #6a395cdimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.75:1 | AAA |
| Text on card | 18.46:1 | AAA |
| Primary button | 7.23:1 | AAA |
| Secondary button | 7.27:1 | AAA |
| Muted text | 6.28:1 | AA |
| Accent | 7.27:1 | AAA |
| Destructive | 6.32:1 | AA |
| Text on background | 20.53:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 7.23:1 | AAA |
| Secondary button | 8.01:1 | AAA |
| Muted text | 7.88:1 | AAA |
| Accent | 8.01:1 | AAA |
| Destructive | 4.12:1 | AA Large |
Paste this into your globals.css to use Poison in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.007 335.322);
--foreground: oklch(0.15 0.031 338.111);
--muted: oklch(0.96 0.005 335.294);
--muted-foreground: oklch(0.462 0.009 335.549);
--popover: oklch(0.982 0.007 335.322);
--popover-foreground: oklch(0.15 0.031 338.111);
--card: oklch(0.973 0.011 335.389);
--card-foreground: oklch(0.137 0.027 337.278);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.419 0.085 338.582);
--primary-foreground: oklch(0.933 0.018 335.531);
--secondary: oklch(0.892 0.002 335.233);
--secondary-foreground: oklch(0.378 0.005 335.419);
--accent: oklch(0.892 0.002 335.233);
--accent-foreground: oklch(0.378 0.005 335.419);
--destructive: oklch(0.442 0.139 37.595);
--destructive-foreground: oklch(0.916 0.04 41.035);
--ring: oklch(0.419 0.085 338.582);
--chart-1: oklch(0.419 0.085 338.582);
--chart-2: oklch(0.892 0.002 335.233);
--chart-3: oklch(0.892 0.002 335.233);
--chart-4: oklch(0.915 0.002 335.223);
--chart-5: oklch(0.418 0.093 338.901);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.023 335.808);
--foreground: oklch(1 0 180);
--muted: oklch(0.155 0.009 336.17);
--muted-foreground: oklch(0.721 0.008 335.397);
--popover: oklch(0.107 0.023 335.808);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.123 0.027 336.169);
--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.419 0.085 338.582);
--primary-foreground: oklch(0.933 0.018 335.531);
--secondary: oklch(0.281 0.032 337.135);
--secondary-foreground: oklch(0.81 0.033 335.919);
--accent: oklch(0.281 0.032 337.135);
--accent-foreground: oklch(0.81 0.033 335.919);
--destructive: oklch(0.611 0.198 36.971);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.419 0.085 338.582);
--chart-1: oklch(0.419 0.085 338.582);
--chart-2: oklch(0.281 0.032 337.135);
--chart-3: oklch(0.281 0.032 337.135);
--chart-4: oklch(0.311 0.037 337.207);
--chart-5: oklch(0.418 0.093 338.901);
}