Homely is a shadcn/ui theme built around a light red primary color (#f8f2f3) with light blue accents (#f2f3f8). The light mode uses a neutral background (#ffffff). Dark mode keeps the light red primary (#f8f2f3) on a neutral background (#030202).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030202black |
| Foreground | #000000black | #fdfbfcsnow |
| Card | #ffffffwhite | #030202black |
| Card foreground | #000000black | #fdfbfcsnow |
| Popover | #ffffffwhite | #030202black |
| Popover foreground | #000000black | #fdfbfcsnow |
| Primary | #f8f2f3whitesmoke | #f8f2f3whitesmoke |
| Primary foreground | #783f48sienna | #783f48sienna |
| Secondary | #f3f8f2whitesmoke | #f3f8f2whitesmoke |
| Secondary foreground | #20351cdarkslategray | #20351cdarkslategray |
| Muted | #e3e9e2gainsboro | #171d16black |
| Muted foreground | #5d6c5adimgray | #95a593darkseagreen |
| Accent | #f2f3f8whitesmoke | #f2f3f8whitesmoke |
| Accent foreground | #3f4878darkslateblue | #3f4878darkslateblue |
| Destructive | #862203darkred | #e53a06orangered |
| Destructive foreground | #fdcdbepeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f8f2f3whitesmoke | #f8f2f3whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.27:1 | AAA |
| Secondary button | 12.28:1 | AAA |
| Muted text | 4.52:1 | AA |
| Accent | 7.83:1 | AAA |
| Destructive | 6.51:1 | AA |
| Text on background | 20.12:1 | AAA |
| Text on card | 20.12:1 | AAA |
| Primary button | 7.27:1 | AAA |
| Secondary button | 12.28:1 | AAA |
| Muted text | 6.62:1 | AA |
| Accent | 7.83:1 | AAA |
| Destructive | 4.26:1 | AA Large |
Paste this into your globals.css to use Homely in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.927 0.01 141.042);
--muted-foreground: oklch(0.514 0.033 140.925);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.965 0.007 6.775);
--primary-foreground: oklch(0.442 0.079 11.293);
--secondary: oklch(0.973 0.01 141.043);
--secondary-foreground: oklch(0.305 0.052 140.748);
--accent: oklch(0.964 0.007 278.209);
--accent-foreground: oklch(0.417 0.081 274.745);
--destructive: oklch(0.412 0.14 35.4);
--destructive-foreground: oklch(0.887 0.059 37.592);
--ring: oklch(0.965 0.007 6.775);
--chart-1: oklch(0.965 0.007 6.775);
--chart-2: oklch(0.973 0.01 141.043);
--chart-3: oklch(0.964 0.007 278.209);
--chart-4: oklch(0.993 0.003 141.06);
--chart-5: oklch(0.965 0.008 6.793);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.007 6.939);
--foreground: oklch(0.991 0.002 6.648);
--muted: oklch(0.221 0.014 140.928);
--muted-foreground: oklch(0.703 0.031 140.97);
--popover: oklch(0.087 0.007 6.939);
--popover-foreground: oklch(0.991 0.002 6.648);
--card: oklch(0.087 0.007 6.939);
--card-foreground: oklch(0.991 0.002 6.648);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.965 0.007 6.775);
--primary-foreground: oklch(0.442 0.079 11.293);
--secondary: oklch(0.973 0.01 141.043);
--secondary-foreground: oklch(0.305 0.052 140.748);
--accent: oklch(0.964 0.007 278.209);
--accent-foreground: oklch(0.417 0.081 274.745);
--destructive: oklch(0.606 0.213 34.396);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.965 0.007 6.775);
--chart-1: oklch(0.965 0.007 6.775);
--chart-2: oklch(0.973 0.01 141.043);
--chart-3: oklch(0.964 0.007 278.209);
--chart-4: oklch(0.993 0.003 141.06);
--chart-5: oklch(0.965 0.008 6.793);
}