Irony is a shadcn/ui theme built around a muted green primary color (#7b8650) with muted purple accents (#86507b). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#7b8650) on a green-tinted background (#0a0b04).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a0b04black |
| Foreground | #0b0d03black | #fbfbf9snow |
| Card | #ffffffwhite | #0a0b04black |
| Card foreground | #0b0d03black | #fbfbf9snow |
| Popover | #ffffffwhite | #0a0b04black |
| Popover foreground | #0b0d03black | #fbfbf9snow |
| Primary | #7b8650dimgray | #7b8650dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #507b86slategray | #507b86slategray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e4eaeclavender | #13191bblack |
| Muted foreground | #55686ddimgray | #92a5aadarkgray |
| Accent | #86507bdimgray | #86507bdimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b44613sienna | #e9672bchocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7b8650dimgray | #7b8650dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.56:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 3.91:1 | AA Large |
| Secondary button | 4.63:1 | AA |
| Muted text | 4.83:1 | AA |
| Accent | 6.07:1 | AA |
| Destructive | 5.49:1 | AA |
| Text on background | 19.04:1 | AAA |
| Text on card | 19.04:1 | AAA |
| Primary button | 3.91:1 | AA Large |
| Secondary button | 4.63:1 | AA |
| Muted text | 6.90:1 | AA |
| Accent | 6.07:1 | AA |
| Destructive | 6.42:1 | AA |
Paste this into your globals.css to use Irony in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.151 0.024 116.748);
--muted: oklch(0.934 0.007 214.337);
--muted-foreground: oklch(0.503 0.024 214.569);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.151 0.024 116.748);
--card: oklch(1 0 180);
--card-foreground: oklch(0.151 0.024 116.748);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.597 0.076 118.005);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.556 0.05 215.201);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.509 0.093 334.513);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.537 0.155 41.21);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.597 0.076 118.005);
--chart-1: oklch(0.597 0.076 118.005);
--chart-2: oklch(0.556 0.05 215.201);
--chart-3: oklch(0.509 0.093 334.513);
--chart-4: oklch(0.584 0.053 215.213);
--chart-5: oklch(0.606 0.084 118.249);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.146 0.018 116.294);
--foreground: oklch(0.987 0.003 115.629);
--muted: oklch(0.209 0.01 214.572);
--muted-foreground: oklch(0.709 0.022 214.446);
--popover: oklch(0.146 0.018 116.294);
--popover-foreground: oklch(0.987 0.003 115.629);
--card: oklch(0.146 0.018 116.294);
--card-foreground: oklch(0.987 0.003 115.629);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.597 0.076 118.005);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.556 0.05 215.201);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.509 0.093 334.513);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.665 0.176 42.531);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.597 0.076 118.005);
--chart-1: oklch(0.597 0.076 118.005);
--chart-2: oklch(0.556 0.05 215.201);
--chart-3: oklch(0.509 0.093 334.513);
--chart-4: oklch(0.584 0.053 215.213);
--chart-5: oklch(0.606 0.084 118.249);
}