Shoddy is a shadcn/ui theme built around a red primary color (#bf4a4e) with teal accents (#4abfbb). The light mode uses a neutral background (#fefbfb). Dark mode keeps the red primary (#bf4a4e) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #000000black |
| Foreground | #100505black | #ffffffwhite |
| Card | #fdf7f7snow | #030303black |
| Card foreground | #0c0404black | #ffffffwhite |
| Popover | #fefbfbsnow | #000000black |
| Popover foreground | #100505black | #ffffffwhite |
| Primary | #bf4a4eindianred | #bf4a4eindianred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #4abfbbmediumturquoise | #4abfbbmediumturquoise |
| Secondary foreground | #102d2cdarkslategray | #102d2cdarkslategray |
| Muted | #edf7f7whitesmoke | #081212black |
| Muted foreground | #526b6adimgray | #94adacdarkgray |
| Accent | #4abfbbmediumturquoise | #4abfbbmediumturquoise |
| Accent foreground | #102d2cdarkslategray | #102d2cdarkslategray |
| Destructive | #a61a07firebrick | #e12309orangered |
| Destructive foreground | #fee5e2mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bf4a4eindianred | #bf4a4eindianred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.48:1 | AAA |
| Text on card | 19.11:1 | AAA |
| Primary button | 4.87:1 | AA |
| Secondary button | 6.62:1 | AA |
| Muted text | 5.25:1 | AA |
| Accent | 6.62:1 | AA |
| Destructive | 6.30:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 4.87:1 | AA |
| Secondary button | 6.62:1 | AA |
| Muted text | 8.00:1 | AAA |
| Accent | 6.62:1 | AA |
| Destructive | 4.72:1 | AA |
Paste this into your globals.css to use Shoddy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 14.857);
--foreground: oklch(0.133 0.022 17.642);
--muted: oklch(0.969 0.011 194.583);
--muted-foreground: oklch(0.507 0.029 193.736);
--popover: oklch(0.99 0.004 14.857);
--popover-foreground: oklch(0.133 0.022 17.642);
--card: oklch(0.98 0.007 14.926);
--card-foreground: oklch(0.12 0.019 17.299);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.567 0.151 21.338);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.739 0.104 192.038);
--secondary-foreground: oklch(0.276 0.035 192.369);
--accent: oklch(0.739 0.104 192.038);
--accent-foreground: oklch(0.276 0.035 192.369);
--destructive: oklch(0.467 0.177 30.914);
--destructive-foreground: oklch(0.941 0.028 26.662);
--ring: oklch(0.567 0.151 21.338);
--chart-1: oklch(0.567 0.151 21.338);
--chart-2: oklch(0.739 0.104 192.038);
--chart-3: oklch(0.739 0.104 192.038);
--chart-4: oklch(0.754 0.1 192.234);
--chart-5: oklch(0.568 0.16 21.864);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.171 0.015 193.187);
--muted-foreground: oklch(0.728 0.027 194.102);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.567 0.151 21.338);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.739 0.104 192.038);
--secondary-foreground: oklch(0.276 0.035 192.369);
--accent: oklch(0.739 0.104 192.038);
--accent-foreground: oklch(0.276 0.035 192.369);
--destructive: oklch(0.583 0.224 30.765);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.567 0.151 21.338);
--chart-1: oklch(0.567 0.151 21.338);
--chart-2: oklch(0.739 0.104 192.038);
--chart-3: oklch(0.739 0.104 192.038);
--chart-4: oklch(0.754 0.1 192.234);
--chart-5: oklch(0.568 0.16 21.864);
}