Lonely is a shadcn/ui theme built around an orange primary color (#8b7041) with green accents (#818b41). The light mode uses a neutral background (#fdfbf6). Dark mode keeps the orange primary (#8b7041) on a neutral background (#040301).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbf6snow | #040301black |
| Foreground | #000000black | #faf8f5whitesmoke |
| Card | #fdf9f2floralwhite | #080602black |
| Card foreground | #000000black | #fcfaf8snow |
| Popover | #fdfbf6snow | #040301black |
| Popover foreground | #000000black | #faf8f5whitesmoke |
| Primary | #8b7041sienna | #8b7041sienna |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #8b4b41sienna | #8b4b41sienna |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f3eeedlinen | #120d0cblack |
| Muted foreground | #423e3edarkslategray | #c1bebdsilver |
| Accent | #818b41olivedrab | #818b41olivedrab |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #690b07maroon | #f13d37tomato |
| Destructive foreground | #f9aca9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8b7041sienna | #8b7041sienna |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.30:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 4.68:1 | AA |
| Secondary button | 6.60:1 | AA |
| Muted text | 9.14:1 | AAA |
| Accent | 3.69:1 | AA Large |
| Destructive | 6.97:1 | AA |
| Text on background | 19.45:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 4.68:1 | AA |
| Secondary button | 6.60:1 | AA |
| Muted text | 10.42:1 | AAA |
| Accent | 3.69:1 | AA Large |
| Destructive | 3.84:1 | AA Large |
Paste this into your globals.css to use Lonely in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.007 81.512);
--foreground: oklch(0 0 0);
--muted: oklch(0.952 0.006 27.962);
--muted-foreground: oklch(0.368 0.005 28);
--popover: oklch(0.988 0.007 81.512);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.983 0.01 81.51);
--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.56 0.072 80.118);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.487 0.088 29.823);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.611 0.099 115.673);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.334 0.127 28.776);
--destructive-foreground: oklch(0.817 0.091 21.446);
--ring: oklch(0.56 0.072 80.118);
--chart-1: oklch(0.56 0.072 80.118);
--chart-2: oklch(0.487 0.088 29.823);
--chart-3: oklch(0.611 0.099 115.673);
--chart-4: oklch(0.513 0.094 29.845);
--chart-5: oklch(0.564 0.077 79.85);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.011 88.06);
--foreground: oklch(0.98 0.005 81.513);
--muted: oklch(0.166 0.009 28.298);
--muted-foreground: oklch(0.804 0.004 27.957);
--popover: oklch(0.097 0.011 88.06);
--popover-foreground: oklch(0.98 0.005 81.513);
--card: oklch(0.123 0.014 88.06);
--card-foreground: oklch(0.987 0.003 81.514);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.56 0.072 80.118);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.487 0.088 29.823);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.611 0.099 115.673);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.633 0.217 27.483);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.56 0.072 80.118);
--chart-1: oklch(0.56 0.072 80.118);
--chart-2: oklch(0.487 0.088 29.823);
--chart-3: oklch(0.611 0.099 115.673);
--chart-4: oklch(0.513 0.094 29.845);
--chart-5: oklch(0.564 0.077 79.85);
}