Only is a shadcn/ui theme built around a neutral gray primary color (#929290) with neutral gray accents (#919290). The light mode uses a neutral background (#fefefb). Dark mode keeps the neutral gray primary (#929290) on a neutral background (#030302).
| Token | Light | Dark |
|---|---|---|
| Background | #fefefbwhite | #030302black |
| Foreground | #040401black | #f8f8f7whitesmoke |
| Card | #fdfdf7snow | #060703black |
| Card foreground | #000000black | #fafaf9snow |
| Popover | #fdfdf7snow | #060703black |
| Popover foreground | #000000black | #fafaf9snow |
| Primary | #929290gray | #929290gray |
| Primary foreground | #000000black | #000000black |
| Secondary | #929290gray | #929290gray |
| Secondary foreground | #000000black | #000000black |
| Muted | #f5f1ealinen | #15100ablack |
| Muted foreground | #534e46darkolivegreen | #b9b4acdarkgray |
| Accent | #919290lightslategray | #919290lightslategray |
| Accent foreground | #000000black | #000000black |
| Destructive | #6c1d04maroon | #f0400aorangered |
| Destructive foreground | #fbbba7lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #929290gray | #929290gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.32:1 | AAA |
| Text on card | 20.58:1 | AAA |
| Primary button | 6.76:1 | AA |
| Secondary button | 6.71:1 | AA |
| Muted text | 7.32:1 | AAA |
| Accent | 6.74:1 | AA |
| Destructive | 7.06:1 | AAA |
| Text on background | 19.38:1 | AAA |
| Text on card | 19.35:1 | AAA |
| Primary button | 6.76:1 | AA |
| Secondary button | 6.71:1 | AA |
| Muted text | 9.15:1 | AAA |
| Accent | 6.74:1 | AA |
| Destructive | 3.86:1 | AA Large |
Paste this into your globals.css to use Only in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.004 111.097);
--foreground: oklch(0.107 0.019 112.68);
--muted: oklch(0.959 0.01 78.278);
--muted-foreground: oklch(0.425 0.014 78.173);
--popover: oklch(0.992 0.009 111.181);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0.009 111.181);
--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.661 0.003 111.105);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.659 0.002 78.302);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.66 0.004 132.398);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.356 0.116 36.063);
--destructive-foreground: oklch(0.845 0.08 37.611);
--ring: oklch(0.661 0.003 111.105);
--chart-1: oklch(0.661 0.003 111.105);
--chart-2: oklch(0.659 0.002 78.302);
--chart-3: oklch(0.66 0.004 132.398);
--chart-4: oklch(0.684 0.002 78.303);
--chart-5: oklch(0.669 0.013 111.369);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.008 111.867);
--foreground: oklch(0.979 0.002 111.053);
--muted: oklch(0.178 0.015 77.639);
--muted-foreground: oklch(0.771 0.012 78.259);
--popover: oklch(0.124 0.011 111.867);
--popover-foreground: oklch(0.986 0.001 111.039);
--card: oklch(0.124 0.011 111.867);
--card-foreground: oklch(0.986 0.001 111.039);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.661 0.003 111.105);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.659 0.002 78.302);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.66 0.004 132.398);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.63 0.219 34.645);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.661 0.003 111.105);
--chart-1: oklch(0.661 0.003 111.105);
--chart-2: oklch(0.659 0.002 78.302);
--chart-3: oklch(0.66 0.004 132.398);
--chart-4: oklch(0.684 0.002 78.303);
--chart-5: oklch(0.669 0.013 111.369);
}