Usable is a shadcn/ui theme built around a muted red primary color (#705153) with muted light red accents (#dccbcd). The light mode uses a neutral background (#fefbfb). Dark mode keeps the muted red primary (#705153) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #000000black |
| Foreground | #000000black | #fbf9f9snow |
| Card | #fefbfbsnow | #000000black |
| Card foreground | #000000black | #fbf9f9snow |
| Popover | #fefbfbsnow | #000000black |
| Popover foreground | #000000black | #fbf9f9snow |
| Primary | #705153dimgray | #705153dimgray |
| Primary foreground | #fbf9f9snow | #fbf9f9snow |
| Secondary | #dccbcdlightgrey | #332e2edarkslategray |
| Secondary foreground | #463031darkslategray | #cdc6c7silver |
| Muted | #efe6e7linen | #191010black |
| Muted foreground | #626060dimgray | #9f9d9ddarkgray |
| Accent | #dccbcdlightgrey | #332e2edarkslategray |
| Accent foreground | #463031darkslategray | #cdc6c7silver |
| Destructive | #812b08saddlebrown | #e14a0eorangered |
| Destructive foreground | #fbd1c1peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #705153dimgray | #705153dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.41:1 | AAA |
| Text on card | 20.41:1 | AAA |
| Primary button | 6.65:1 | AA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 5.09:1 | AA |
| Accent | 7.81:1 | AAA |
| Destructive | 6.56:1 | AA |
| Text on background | 20.02:1 | AAA |
| Text on card | 20.02:1 | AAA |
| Primary button | 6.65:1 | AA |
| Secondary button | 7.98:1 | AAA |
| Muted text | 6.93:1 | AA |
| Accent | 7.98:1 | AAA |
| Destructive | 4.03:1 | AA Large |
Paste this into your globals.css to use Usable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 12.487);
--foreground: oklch(0 0 0);
--muted: oklch(0.932 0.01 12.656);
--muted-foreground: oklch(0.491 0.002 12.532);
--popover: oklch(0.991 0.003 12.487);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.991 0.003 12.487);
--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.47 0.042 14.343);
--primary-foreground: oklch(0.984 0.002 12.464);
--secondary: oklch(0.857 0.018 12.878);
--secondary-foreground: oklch(0.334 0.033 14.558);
--accent: oklch(0.857 0.018 12.878);
--accent-foreground: oklch(0.334 0.033 14.558);
--destructive: oklch(0.414 0.127 38.677);
--destructive-foreground: oklch(0.893 0.052 42.713);
--ring: oklch(0.47 0.042 14.343);
--chart-1: oklch(0.47 0.042 14.343);
--chart-2: oklch(0.857 0.018 12.878);
--chart-3: oklch(0.857 0.018 12.878);
--chart-4: oklch(0.883 0.015 12.784);
--chart-5: oklch(0.467 0.05 14.763);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.003 12.485);
--muted: oklch(0.184 0.016 14.289);
--muted-foreground: oklch(0.698 0.002 12.494);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.983 0.003 12.485);
--card: oklch(0 0 0);
--card-foreground: oklch(0.983 0.003 12.485);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.47 0.042 14.343);
--primary-foreground: oklch(0.984 0.002 12.464);
--secondary: oklch(0.306 0.008 13.008);
--secondary-foreground: oklch(0.833 0.007 12.607);
--accent: oklch(0.306 0.008 13.008);
--accent-foreground: oklch(0.833 0.007 12.607);
--destructive: oklch(0.616 0.197 37.77);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.47 0.042 14.343);
--chart-1: oklch(0.47 0.042 14.343);
--chart-2: oklch(0.306 0.008 13.008);
--chart-3: oklch(0.306 0.008 13.008);
--chart-4: oklch(0.335 0.01 13.027);
--chart-5: oklch(0.467 0.05 14.763);
}