Only is a shadcn/ui theme built around a neutral gray primary color (#535a5a) with muted light teal accents (#bdd6d6). The light mode uses a neutral background (#fbfefe). Dark mode keeps the neutral gray primary (#535a5a) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefewhite | #000000black |
| Foreground | #030c0cblack | #f6f8f8whitesmoke |
| Card | #f7fdfdmintcream | #030303black |
| Card foreground | #020808black | #f9fbfbghostwhite |
| Popover | #f7fdfdmintcream | #030303black |
| Popover foreground | #020808black | #f9fbfbghostwhite |
| Primary | #535a5adimgray | #535a5adimgray |
| Primary foreground | #eff0f0whitesmoke | #eff0f0whitesmoke |
| Secondary | #dce5e5gainsboro | #1b2828darkslategray |
| Secondary foreground | #3d5151darkslategray | #acc8c8lightsteelblue |
| Muted | #eaf1f1whitesmoke | #0e1515black |
| Muted foreground | #636969dimgray | #969c9cdarkgray |
| Accent | #bdd6d6lightgrey | #264545darkslategray |
| Accent foreground | #253c3cdarkslategray | #c0ddddpowderblue |
| Destructive | #7e1507maroon | #f43d25orangered |
| Destructive foreground | #fbc3bblightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #535a5adimgray | #535a5adimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.50:1 | AAA |
| Text on card | 19.61:1 | AAA |
| Primary button | 6.15:1 | AA |
| Secondary button | 6.55:1 | AA |
| Muted text | 4.86:1 | AA |
| Accent | 7.69:1 | AAA |
| Destructive | 6.83:1 | AA |
| Text on background | 19.70:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 6.15:1 | AA |
| Secondary button | 8.61:1 | AAA |
| Muted text | 6.61:1 | AA |
| Accent | 7.23:1 | AAA |
| Destructive | 3.80:1 | AA Large |
Paste this into your globals.css to use Only in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 197.104);
--foreground: oklch(0.145 0.017 195.438);
--muted: oklch(0.952 0.007 197.035);
--muted-foreground: oklch(0.516 0.008 196.922);
--popover: oklch(0.989 0.007 197.05);
--popover-foreground: oklch(0.126 0.015 195.446);
--card: oklch(0.989 0.007 197.05);
--card-foreground: oklch(0.126 0.015 195.446);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.462 0.009 196.854);
--primary-foreground: oklch(0.955 0.001 197.136);
--secondary: oklch(0.914 0.009 196.995);
--secondary-foreground: oklch(0.42 0.025 196.249);
--accent: oklch(0.858 0.027 196.651);
--accent-foreground: oklch(0.337 0.029 195.86);
--destructive: oklch(0.384 0.142 31.084);
--destructive-foreground: oklch(0.865 0.066 27.141);
--ring: oklch(0.462 0.009 196.854);
--chart-1: oklch(0.462 0.009 196.854);
--chart-2: oklch(0.914 0.009 196.995);
--chart-3: oklch(0.858 0.027 196.651);
--chart-4: oklch(0.936 0.007 197.039);
--chart-5: oklch(0.467 0.015 196.647);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.979 0.002 197.12);
--muted: oklch(0.19 0.01 196.317);
--muted-foreground: oklch(0.688 0.007 196.992);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.986 0.002 197.133);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.986 0.002 197.133);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.462 0.009 196.854);
--primary-foreground: oklch(0.955 0.001 197.136);
--secondary: oklch(0.264 0.018 196.106);
--secondary-foreground: oklch(0.812 0.03 196.582);
--accent: oklch(0.367 0.037 195.661);
--accent-foreground: oklch(0.876 0.03 196.62);
--destructive: oklch(0.635 0.222 31.027);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.462 0.009 196.854);
--chart-1: oklch(0.462 0.009 196.854);
--chart-2: oklch(0.264 0.018 196.106);
--chart-3: oklch(0.367 0.037 195.661);
--chart-4: oklch(0.299 0.022 196.058);
--chart-5: oklch(0.467 0.015 196.647);
}