Usable is a shadcn/ui theme built around a light cyan primary color (#ebf6fa) with light green accents (#f6faeb). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the light cyan primary (#ebf6fa) on a cyan-tinted background (#030a0c).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #030a0cblack |
| Foreground | #010304black | #f6f8f8whitesmoke |
| Card | #fbfdfewhite | #030a0cblack |
| Card foreground | #010304black | #f6f8f8whitesmoke |
| Popover | #fbfdfewhite | #030a0cblack |
| Popover foreground | #010304black | #f6f8f8whitesmoke |
| Primary | #ebf6faaliceblue | #ebf6faaliceblue |
| Primary foreground | #0f313ddarkslategray | #0f313ddarkslategray |
| Secondary | #faebf6lavenderblush | #faebf6lavenderblush |
| Secondary foreground | #8f2472purple | #8f2472purple |
| Muted | #f1e0ecmistyrose | #1f0e1bblack |
| Muted foreground | #4c3e48darkslategray | #c1b3bdsilver |
| Accent | #f6faebhoneydew | #f6faebhoneydew |
| Accent foreground | #313d0fdarkgreen | #313d0fdarkgreen |
| Destructive | #a8280bfirebrick | #f25836tomato |
| Destructive foreground | #fdebe7linen | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ebf6faaliceblue | #ebf6faaliceblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.28:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 12.48:1 | AAA |
| Secondary button | 6.84:1 | AA |
| Muted text | 7.91:1 | AAA |
| Accent | 10.95:1 | AAA |
| Destructive | 6.14:1 | AA |
| Text on background | 18.73:1 | AAA |
| Text on card | 18.73:1 | AAA |
| Primary button | 12.48:1 | AAA |
| Secondary button | 6.84:1 | AA |
| Muted text | 9.16:1 | AAA |
| Accent | 10.95:1 | AAA |
| Destructive | 6.23:1 | AA |
Paste this into your globals.css to use Usable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 221.33);
--foreground: oklch(0.094 0.009 216.39);
--muted: oklch(0.923 0.025 334.99);
--muted-foreground: oklch(0.382 0.025 335.633);
--popover: oklch(0.993 0.003 221.33);
--popover-foreground: oklch(0.094 0.009 216.39);
--card: oklch(0.993 0.003 221.33);
--card-foreground: oklch(0.094 0.009 216.39);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.965 0.013 221.428);
--primary-foreground: oklch(0.295 0.044 225.424);
--secondary: oklch(0.954 0.022 334.928);
--secondary-foreground: oklch(0.458 0.165 340.827);
--accent: oklch(0.978 0.021 118.934);
--accent-foreground: oklch(0.339 0.069 122.951);
--destructive: oklch(0.481 0.169 33.247);
--destructive-foreground: oklch(0.954 0.021 32.677);
--ring: oklch(0.965 0.013 221.428);
--chart-1: oklch(0.965 0.013 221.428);
--chart-2: oklch(0.954 0.022 334.928);
--chart-3: oklch(0.978 0.021 118.934);
--chart-4: oklch(0.982 0.009 334.683);
--chart-5: oklch(0.966 0.014 221.435);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.136 0.014 217.019);
--foreground: oklch(0.978 0.002 221.321);
--muted: oklch(0.196 0.036 337.496);
--muted-foreground: oklch(0.782 0.021 334.989);
--popover: oklch(0.136 0.014 217.019);
--popover-foreground: oklch(0.978 0.002 221.321);
--card: oklch(0.136 0.014 217.019);
--card-foreground: oklch(0.978 0.002 221.321);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.965 0.013 221.428);
--primary-foreground: oklch(0.295 0.044 225.424);
--secondary: oklch(0.954 0.022 334.928);
--secondary-foreground: oklch(0.458 0.165 340.827);
--accent: oklch(0.978 0.021 118.934);
--accent-foreground: oklch(0.339 0.069 122.951);
--destructive: oklch(0.662 0.196 34.113);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.965 0.013 221.428);
--chart-1: oklch(0.965 0.013 221.428);
--chart-2: oklch(0.954 0.022 334.928);
--chart-3: oklch(0.978 0.021 118.934);
--chart-4: oklch(0.982 0.009 334.683);
--chart-5: oklch(0.966 0.014 221.435);
}