Disgust is a shadcn/ui theme built around a deep green primary color (#051505) with deep teal accents (#05150e). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#051505) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010402black |
| Foreground | #041005black | #f9fbf9mintcream |
| Card | #ffffffwhite | #010402black |
| Card foreground | #041005black | #f9fbf9mintcream |
| Popover | #ffffffwhite | #010402black |
| Popover foreground | #041005black | #f9fbf9mintcream |
| Primary | #051505black | #051505black |
| Primary foreground | #29bc31limegreen | #29bc31limegreen |
| Secondary | #0c1505black | #0c1505black |
| Secondary foreground | #6bbc29olivedrab | #6bbc29olivedrab |
| Muted | #e7efe1beige | #161e10black |
| Muted foreground | #4e5a44darkolivegreen | #afbba5darkgray |
| Accent | #05150eblack | #05150eblack |
| Accent foreground | #29bc7amediumseagreen | #29bc7amediumseagreen |
| Destructive | #98250bbrown | #ef4e2atomato |
| Destructive foreground | #fcdfd9mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #051505black | #051505black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.41:1 | AAA |
| Text on card | 19.41:1 | AAA |
| Primary button | 7.47:1 | AAA |
| Secondary button | 7.87:1 | AAA |
| Muted text | 6.23:1 | AA |
| Accent | 7.65:1 | AAA |
| Destructive | 6.41:1 | AA |
| Text on background | 19.83:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 7.47:1 | AAA |
| Secondary button | 7.87:1 | AAA |
| Muted text | 8.51:1 | AAA |
| Accent | 7.65:1 | AAA |
| Destructive | 3.63:1 | AA Large |
Paste this into your globals.css to use Disgust in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.158 0.033 145.232);
--muted: oklch(0.943 0.021 130.651);
--muted-foreground: oklch(0.451 0.038 131.276);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.158 0.033 145.232);
--card: oklch(1 0 180);
--card-foreground: oklch(0.158 0.033 145.232);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.175 0.04 144.925);
--primary-foreground: oklch(0.696 0.213 143.369);
--secondary: oklch(0.181 0.035 131.554);
--secondary-foreground: oklch(0.717 0.191 134.692);
--accent: oklch(0.178 0.028 163.606);
--accent-foreground: oklch(0.706 0.154 157.938);
--destructive: oklch(0.449 0.154 33.445);
--destructive-foreground: oklch(0.927 0.033 32.709);
--ring: oklch(0.175 0.04 144.925);
--chart-1: oklch(0.175 0.04 144.925);
--chart-2: oklch(0.181 0.035 131.554);
--chart-3: oklch(0.178 0.028 163.606);
--chart-4: oklch(0.229 0.05 133.047);
--chart-5: oklch(0.176 0.042 144.837);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.014 145.953);
--foreground: oklch(0.986 0.003 147.012);
--muted: oklch(0.223 0.03 131.837);
--muted-foreground: oklch(0.776 0.034 130.852);
--popover: oklch(0.096 0.014 145.953);
--popover-foreground: oklch(0.986 0.003 147.012);
--card: oklch(0.096 0.014 145.953);
--card-foreground: oklch(0.986 0.003 147.012);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.175 0.04 144.925);
--primary-foreground: oklch(0.696 0.213 143.369);
--secondary: oklch(0.181 0.035 131.554);
--secondary-foreground: oklch(0.717 0.191 134.692);
--accent: oklch(0.178 0.028 163.606);
--accent-foreground: oklch(0.706 0.154 157.938);
--destructive: oklch(0.644 0.204 33.957);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.175 0.04 144.925);
--chart-1: oklch(0.175 0.04 144.925);
--chart-2: oklch(0.181 0.035 131.554);
--chart-3: oklch(0.178 0.028 163.606);
--chart-4: oklch(0.229 0.05 133.047);
--chart-5: oklch(0.176 0.042 144.837);
}