Shoddy is a shadcn/ui theme built around a muted blue primary color (#3e566a) with muted indigo accents (#3e406a). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the muted blue primary (#3e566a) on a neutral background (#030507).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #030507black |
| Foreground | #03080dblack | #f5f8fawhitesmoke |
| Card | #fbfdfewhite | #030507black |
| Card foreground | #03080dblack | #f5f8fawhitesmoke |
| Popover | #fbfdfewhite | #030507black |
| Popover foreground | #03080dblack | #f5f8fawhitesmoke |
| Primary | #3e566adarkslategray | #3e566adarkslategray |
| Primary foreground | #e9eef2lavender | #e9eef2lavender |
| Secondary | #3e6a68darkslategray | #3e6a68darkslategray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ebefefwhitesmoke | #101414black |
| Muted foreground | #525b5bdimgray | #a4adacdarkgray |
| Accent | #3e406adarkslategray | #3e406adarkslategray |
| Accent foreground | #e9e9f2lavender | #e9e9f2lavender |
| Destructive | #871f08darkred | #e7350dorangered |
| Destructive foreground | #fccfc5pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3e566adarkslategray | #3e566adarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.65:1 | AAA |
| Text on card | 19.65:1 | AAA |
| Primary button | 6.52:1 | AA |
| Secondary button | 6.05:1 | AA |
| Muted text | 6.04:1 | AA |
| Accent | 8.06:1 | AAA |
| Destructive | 6.66:1 | AA |
| Text on background | 19.11:1 | AAA |
| Text on card | 19.11:1 | AAA |
| Primary button | 6.52:1 | AA |
| Secondary button | 6.05:1 | AA |
| Muted text | 8.08:1 | AAA |
| Accent | 8.06:1 | AAA |
| Destructive | 4.25:1 | AA Large |
Paste this into your globals.css to use Shoddy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.003 242.232);
--foreground: oklch(0.13 0.017 234.35);
--muted: oklch(0.95 0.005 193.512);
--muted-foreground: oklch(0.464 0.011 193.143);
--popover: oklch(0.992 0.003 242.232);
--popover-foreground: oklch(0.13 0.017 234.35);
--card: oklch(0.992 0.003 242.232);
--card-foreground: oklch(0.13 0.017 234.35);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.443 0.044 243.66);
--primary-foreground: oklch(0.945 0.008 242.303);
--secondary: oklch(0.492 0.049 191.599);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.391 0.07 280.333);
--accent-foreground: oklch(0.936 0.012 283.75);
--destructive: oklch(0.411 0.143 33.402);
--destructive-foreground: oklch(0.891 0.052 32.797);
--ring: oklch(0.443 0.044 243.66);
--chart-1: oklch(0.443 0.044 243.66);
--chart-2: oklch(0.492 0.049 191.599);
--chart-3: oklch(0.391 0.07 280.333);
--chart-4: oklch(0.523 0.052 191.58);
--chart-5: oklch(0.443 0.049 243.867);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.114 0.009 236.354);
--foreground: oklch(0.976 0.005 242.258);
--muted: oklch(0.187 0.007 192.9);
--muted-foreground: oklch(0.739 0.01 193.345);
--popover: oklch(0.114 0.009 236.354);
--popover-foreground: oklch(0.976 0.005 242.258);
--card: oklch(0.114 0.009 236.354);
--card-foreground: oklch(0.976 0.005 242.258);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.443 0.044 243.66);
--primary-foreground: oklch(0.945 0.008 242.303);
--secondary: oklch(0.492 0.049 191.599);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.391 0.07 280.333);
--accent-foreground: oklch(0.936 0.012 283.75);
--destructive: oklch(0.607 0.218 32.933);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.443 0.044 243.66);
--chart-1: oklch(0.443 0.044 243.66);
--chart-2: oklch(0.492 0.049 191.599);
--chart-3: oklch(0.391 0.07 280.333);
--chart-4: oklch(0.523 0.052 191.58);
--chart-5: oklch(0.443 0.049 243.867);
}