Usable is a shadcn/ui theme built around a red primary color (#8e402f) with muted red accents (#bdb4b2). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#8e402f) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #170603black | #fdfcfbsnow |
| Card | #ffffffwhite | #000000black |
| Card foreground | #170603black | #fdfcfbsnow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #170603black | #fdfcfbsnow |
| Primary | #8e402fsienna | #8e402fsienna |
| Primary foreground | #fbf5f4whitesmoke | #fbf5f4whitesmoke |
| Secondary | #cdcbcblightgrey | #1b1413black |
| Secondary foreground | #343232darkslategray | #bea7a2darkgray |
| Muted | #ece6e4linen | #1b1413black |
| Muted foreground | #6d5954dimgray | #ab9692rosybrown |
| Accent | #bdb4b2silver | #34221ddarkslategray |
| Accent foreground | #211d1cblack | #d3b7b1silver |
| Destructive | #712804saddlebrown | #f65809orangered |
| Destructive foreground | #fcc6abnavajowhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8e402fsienna | #8e402fsienna |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.74:1 | AAA |
| Text on card | 19.74:1 | AAA |
| Primary button | 6.65:1 | AA |
| Secondary button | 7.90:1 | AAA |
| Muted text | 5.28:1 | AA |
| Accent | 8.22:1 | AAA |
| Destructive | 6.84:1 | AA |
| Text on background | 20.49:1 | AAA |
| Text on card | 20.49:1 | AAA |
| Primary button | 6.65:1 | AA |
| Secondary button | 7.97:1 | AAA |
| Muted text | 6.47:1 | AA |
| Accent | 8.04:1 | AAA |
| Destructive | 3.32:1 | AA Large |
Paste this into your globals.css to use Usable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.151 0.033 40.119);
--muted: oklch(0.928 0.007 32.661);
--muted-foreground: oklch(0.483 0.028 32.795);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.151 0.033 40.119);
--card: oklch(1 0 180);
--card-foreground: oklch(0.151 0.033 40.119);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.47 0.109 34.007);
--primary-foreground: oklch(0.974 0.007 32.661);
--secondary: oklch(0.844 0.002 32.661);
--secondary-foreground: oklch(0.32 0.002 32.661);
--accent: oklch(0.777 0.011 32.666);
--accent-foreground: oklch(0.235 0.006 32.688);
--destructive: oklch(0.382 0.112 41.967);
--destructive-foreground: oklch(0.868 0.072 47.877);
--ring: oklch(0.47 0.109 34.007);
--chart-1: oklch(0.47 0.109 34.007);
--chart-2: oklch(0.844 0.002 32.661);
--chart-3: oklch(0.777 0.011 32.666);
--chart-4: oklch(0.868 0.002 32.661);
--chart-5: oklch(0.472 0.115 34.071);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.002 32.661);
--muted: oklch(0.201 0.011 32.776);
--muted-foreground: oklch(0.69 0.026 32.713);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.002 32.661);
--card: oklch(0 0 0);
--card-foreground: oklch(0.992 0.002 32.661);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.47 0.109 34.007);
--primary-foreground: oklch(0.974 0.007 32.661);
--secondary: oklch(0.201 0.012 32.791);
--secondary-foreground: oklch(0.747 0.028 32.716);
--accent: oklch(0.272 0.03 33.105);
--accent-foreground: oklch(0.802 0.034 32.729);
--destructive: oklch(0.665 0.206 39.94);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.47 0.109 34.007);
--chart-1: oklch(0.47 0.109 34.007);
--chart-2: oklch(0.201 0.012 32.791);
--chart-3: oklch(0.272 0.03 33.105);
--chart-4: oklch(0.233 0.015 32.82);
--chart-5: oklch(0.472 0.115 34.071);
}