Shoddy is a shadcn/ui theme built around a light green primary color (#cff7d2) with light purple accents (#f7cff4). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#cff7d2) on a neutral background (#020803).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020803black |
| Foreground | #010401black | #ffffffwhite |
| Card | #fcfcfcsnow | #030c04black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030c04black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #cff7d2gainsboro | #cff7d2gainsboro |
| Primary foreground | #072709black | #072709black |
| Secondary | #f7cff4lavender | #f7cff4lavender |
| Secondary foreground | #7e1677purple | #7e1677purple |
| Muted | #e5cce4gainsboro | #331a31darkslategray |
| Muted foreground | #585058dimgray | #afa7aedarkgray |
| Accent | #f7cff4lavender | #f7cff4lavender |
| Accent foreground | #7e1677purple | #7e1677purple |
| Destructive | #752b00saddlebrown | #ff7e33coral |
| Destructive foreground | #ffc8a8navajowhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cff7d2gainsboro | #cff7d2gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.60:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 13.69:1 | AAA |
| Secondary button | 6.70:1 | AA |
| Muted text | 5.21:1 | AA |
| Accent | 6.70:1 | AA |
| Destructive | 6.68:1 | AA |
| Text on background | 20.21:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 13.69:1 | AAA |
| Secondary button | 6.70:1 | AA |
| Muted text | 6.74:1 | AA |
| Accent | 6.70:1 | AA |
| Destructive | 8.27:1 | AAA |
Paste this into your globals.css to use Shoddy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.097 0.017 146.23);
--muted: oklch(0.874 0.042 328.009);
--muted-foreground: oklch(0.442 0.017 327.91);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.937 0.064 146.847);
--primary-foreground: oklch(0.241 0.065 144.375);
--secondary: oklch(0.9 0.065 328.231);
--secondary-foreground: oklch(0.421 0.172 331.224);
--accent: oklch(0.9 0.065 328.231);
--accent-foreground: oklch(0.421 0.172 331.224);
--destructive: oklch(0.393 0.115 43.745);
--destructive-foreground: oklch(0.874 0.076 51.47);
--ring: oklch(0.937 0.064 146.847);
--chart-1: oklch(0.937 0.064 146.847);
--chart-2: oklch(0.9 0.065 328.231);
--chart-3: oklch(0.9 0.065 328.231);
--chart-4: oklch(0.927 0.047 328.032);
--chart-5: oklch(0.938 0.066 146.817);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.023 146.103);
--foreground: oklch(1 0 180);
--muted: oklch(0.261 0.055 329.446);
--muted-foreground: oklch(0.737 0.015 327.74);
--popover: oklch(0.14 0.027 146.063);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.14 0.027 146.063);
--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.937 0.064 146.847);
--primary-foreground: oklch(0.241 0.065 144.375);
--secondary: oklch(0.9 0.065 328.231);
--secondary-foreground: oklch(0.421 0.172 331.224);
--accent: oklch(0.9 0.065 328.231);
--accent-foreground: oklch(0.421 0.172 331.224);
--destructive: oklch(0.731 0.178 46.912);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.937 0.064 146.847);
--chart-1: oklch(0.937 0.064 146.847);
--chart-2: oklch(0.9 0.065 328.231);
--chart-3: oklch(0.9 0.065 328.231);
--chart-4: oklch(0.927 0.047 328.032);
--chart-5: oklch(0.938 0.066 146.817);
}