Only is a shadcn/ui theme built around a vivid red primary color (#eb4833) with vivid orange accents (#eba433). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid red primary (#eb4833) on a red-tinted background (#100604).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #100604black |
| Foreground | #110503black | #fdfcfcsnow |
| Card | #fcfcfcsnow | #140705black |
| Card foreground | #0d0403black | #ffffffwhite |
| Popover | #fcfcfcsnow | #140705black |
| Popover foreground | #0d0403black | #ffffffwhite |
| Primary | #eb4833tomato | #eb4833tomato |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #eb3379deeppink | #eb3379deeppink |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e5d6dcgainsboro | #291a1fblack |
| Muted foreground | #6e5e64dimgray | #a19197rosybrown |
| Accent | #eba433goldenrod | #eba433goldenrod |
| Accent foreground | #000000black | #000000black |
| Destructive | #b52812firebrick | #ec5841tomato |
| Destructive foreground | #fffbfasnow | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #eb4833tomato | #eb4833tomato |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.06:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 3.81:1 | AA Large |
| Secondary button | 3.98:1 | AA Large |
| Muted text | 4.35:1 | AA Large |
| Accent | 9.90:1 | AAA |
| Destructive | 6.24:1 | AA |
| Text on background | 19.55:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 3.81:1 | AA Large |
| Secondary button | 3.98:1 | AA Large |
| Muted text | 5.57:1 | AA |
| Accent | 9.90:1 | AAA |
| Destructive | 6.03:1 | AA |
Paste this into your globals.css to use Only in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.136 0.025 32.466);
--muted: oklch(0.891 0.018 352.176);
--muted-foreground: oklch(0.499 0.023 352.868);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.122 0.021 33.128);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.122 0.021 33.128);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.632 0.203 30.801);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.627 0.221 3.741);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.77 0.147 74.207);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.505 0.18 31.592);
--destructive-foreground: oklch(0.99 0.004 27.953);
--ring: oklch(0.632 0.203 30.801);
--chart-1: oklch(0.632 0.203 30.801);
--chart-2: oklch(0.627 0.221 3.741);
--chart-3: oklch(0.77 0.147 74.207);
--chart-4: oklch(0.642 0.212 2.149);
--chart-5: oklch(0.635 0.209 30.885);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.021 31.331);
--foreground: oklch(0.992 0.001 26.449);
--muted: oklch(0.238 0.026 354.561);
--muted-foreground: oklch(0.672 0.021 352.476);
--popover: oklch(0.149 0.025 30.6);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.149 0.025 30.6);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.632 0.203 30.801);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.627 0.221 3.741);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.77 0.147 74.207);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.653 0.188 31.301);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.632 0.203 30.801);
--chart-1: oklch(0.632 0.203 30.801);
--chart-2: oklch(0.627 0.221 3.741);
--chart-3: oklch(0.77 0.147 74.207);
--chart-4: oklch(0.642 0.212 2.149);
--chart-5: oklch(0.635 0.209 30.885);
}