Only is a shadcn/ui theme built around a light green primary color (#d6e7c5) with muted light green accents (#c2cdb7). The light mode uses a neutral background (#fafdf7). Dark mode keeps the light green primary (#d6e7c5) on a neutral background (#030401).
| Token | Light | Dark |
|---|---|---|
| Background | #fafdf7mintcream | #030401black |
| Foreground | #080e02black | #fafbf9snow |
| Card | #f7fcf3whitesmoke | #050802black |
| Card foreground | #050901black | #fcfdfcwhite |
| Popover | #fafdf7mintcream | #030401black |
| Popover foreground | #080e02black | #fafbf9snow |
| Primary | #d6e7c5lightgrey | #d6e7c5lightgrey |
| Primary foreground | #3d5624darkolivegreen | #3d5624darkolivegreen |
| Secondary | #d4d8d0lightgrey | #333432darkslategray |
| Secondary foreground | #3b4035darkslategray | #cccdcblightgrey |
| Muted | #deebd1gainsboro | #212e14black |
| Muted foreground | #546148darkolivegreen | #abb79edarkgray |
| Accent | #c2cdb7silver | #42483cdarkslategray |
| Accent foreground | #293021darkslategray | #dbdfd8gainsboro |
| Destructive | #ab2807firebrick | #f54519orangered |
| Destructive foreground | #feebe7linen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d6e7c5lightgrey | #d6e7c5lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.03:1 | AAA |
| Text on card | 19.28:1 | AAA |
| Primary button | 6.30:1 | AA |
| Secondary button | 7.34:1 | AAA |
| Muted text | 5.31:1 | AA |
| Accent | 8.24:1 | AAA |
| Destructive | 5.99:1 | AA |
| Text on background | 19.82:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 6.30:1 | AA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 6.79:1 | AA |
| Accent | 6.96:1 | AA |
| Destructive | 3.64:1 | AA Large |
Paste this into your globals.css to use Only in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.009 128.557);
--foreground: oklch(0.151 0.032 127.479);
--muted: oklch(0.923 0.038 128.928);
--muted-foreground: oklch(0.474 0.042 129.512);
--popover: oklch(0.99 0.009 128.557);
--popover-foreground: oklch(0.151 0.032 127.479);
--card: oklch(0.985 0.013 128.606);
--card-foreground: oklch(0.131 0.027 126.948);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.906 0.048 129.067);
--primary-foreground: oklch(0.421 0.081 131.162);
--secondary: oklch(0.876 0.011 128.606);
--secondary-foreground: oklch(0.363 0.019 129.061);
--accent: oklch(0.833 0.032 128.901);
--accent-foreground: oklch(0.298 0.028 129.555);
--destructive: oklch(0.487 0.172 33.639);
--destructive-foreground: oklch(0.954 0.021 34.297);
--ring: oklch(0.906 0.048 129.067);
--chart-1: oklch(0.906 0.048 129.067);
--chart-2: oklch(0.876 0.011 128.606);
--chart-3: oklch(0.833 0.032 128.901);
--chart-4: oklch(0.898 0.009 128.576);
--chart-5: oklch(0.909 0.051 129.11);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.1 0.014 127.418);
--foreground: oklch(0.987 0.003 128.493);
--muted: oklch(0.283 0.048 130.733);
--muted-foreground: oklch(0.764 0.038 129.026);
--popover: oklch(0.1 0.014 127.418);
--popover-foreground: oklch(0.987 0.003 128.493);
--card: oklch(0.126 0.018 127.418);
--card-foreground: oklch(0.993 0.001 128.477);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.906 0.048 129.067);
--primary-foreground: oklch(0.421 0.081 131.162);
--secondary: oklch(0.323 0.004 128.593);
--secondary-foreground: oklch(0.847 0.003 128.5);
--accent: oklch(0.393 0.021 129.075);
--accent-foreground: oklch(0.898 0.009 128.576);
--destructive: oklch(0.645 0.219 34.128);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.906 0.048 129.067);
--chart-1: oklch(0.906 0.048 129.067);
--chart-2: oklch(0.323 0.004 128.593);
--chart-3: oklch(0.393 0.021 129.075);
--chart-4: oklch(0.354 0.004 128.596);
--chart-5: oklch(0.909 0.051 129.11);
}