Only is a shadcn/ui theme built around a pink primary color (#dd5a95) with blue accents (#5a95dd). The light mode uses a neutral background (#ffffff). Dark mode keeps the pink primary (#dd5a95) on a pink-tinted background (#0e060a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0e060ablack |
| Foreground | #0d0207black | #fbf9fasnow |
| Card | #fcfcfcsnow | #12080cblack |
| Card foreground | #090205black | #fdfcfcsnow |
| Popover | #fcfcfcsnow | #12080cblack |
| Popover foreground | #090205black | #fdfcfcsnow |
| Primary | #dd5a95palevioletred | #dd5a95palevioletred |
| Primary foreground | #000000black | #000000black |
| Secondary | #95dd5ayellowgreen | #95dd5ayellowgreen |
| Secondary foreground | #020401black | #020401black |
| Muted | #e2eadcgainsboro | #1b2315black |
| Muted foreground | #657458dimgray | #98a78bdarkseagreen |
| Accent | #5a95ddcornflowerblue | #5a95ddcornflowerblue |
| Accent foreground | #010204black | #010204black |
| Destructive | #a22901firebrick | #fe4c10orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dd5a95palevioletred | #dd5a95palevioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.41:1 | AAA |
| Text on card | 20.09:1 | AAA |
| Primary button | 5.97:1 | AA |
| Secondary button | 12.53:1 | AAA |
| Muted text | 4.05:1 | AA Large |
| Accent | 6.69:1 | AA |
| Destructive | 7.33:1 | AAA |
| Text on background | 19.07:1 | AAA |
| Text on card | 19.27:1 | AAA |
| Primary button | 5.97:1 | AA |
| Secondary button | 12.53:1 | AAA |
| Muted text | 6.35:1 | AA |
| Accent | 6.69:1 | AA |
| Destructive | 3.36:1 | AA Large |
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.119 0.029 347.943);
--muted: oklch(0.927 0.02 130.638);
--muted-foreground: oklch(0.539 0.047 131.306);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.104 0.025 347.424);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.104 0.025 347.424);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.652 0.174 354.992);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.823 0.179 133.228);
--secondary-foreground: oklch(0.102 0.019 128.928);
--accent: oklch(0.661 0.125 254.351);
--accent-foreground: oklch(0.087 0.012 243.524);
--destructive: oklch(0.472 0.163 35.505);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.652 0.174 354.992);
--chart-1: oklch(0.652 0.174 354.992);
--chart-2: oklch(0.823 0.179 133.228);
--chart-3: oklch(0.661 0.125 254.351);
--chart-4: oklch(0.836 0.168 132.883);
--chart-5: oklch(0.652 0.181 355.346);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.018 349.109);
--foreground: oklch(0.984 0.002 347.864);
--muted: oklch(0.243 0.027 131.564);
--muted-foreground: oklch(0.709 0.044 131.043);
--popover: oklch(0.15 0.021 350.768);
--popover-foreground: oklch(0.992 0.001 347.838);
--card: oklch(0.15 0.021 350.768);
--card-foreground: oklch(0.992 0.001 347.838);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.652 0.174 354.992);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.823 0.179 133.228);
--secondary-foreground: oklch(0.102 0.019 128.928);
--accent: oklch(0.661 0.125 254.351);
--accent-foreground: oklch(0.087 0.012 243.524);
--destructive: oklch(0.665 0.222 35.86);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.652 0.174 354.992);
--chart-1: oklch(0.652 0.174 354.992);
--chart-2: oklch(0.823 0.179 133.228);
--chart-3: oklch(0.661 0.125 254.351);
--chart-4: oklch(0.836 0.168 132.883);
--chart-5: oklch(0.652 0.181 355.346);
}