Lonely is a shadcn/ui theme built around a purple primary color (#e557d4) with pink accents (#e5578e). The light mode uses a neutral background (#fcf8fc). Dark mode keeps the purple primary (#e557d4) on a neutral background (#040103).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fcsnow | #040103black |
| Foreground | #000000black | #fdfcfdwhite |
| Card | #fbf4faghostwhite | #080307black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcf8fcsnow | #040103black |
| Popover foreground | #000000black | #fdfcfdwhite |
| Primary | #e557d4orchid | #e557d4orchid |
| Primary foreground | #090108black | #090108black |
| Secondary | #af57e5mediumorchid | #af57e5mediumorchid |
| Secondary foreground | #000000black | #000000black |
| Muted | #f0eef2whitesmoke | #100d11black |
| Muted foreground | #625e64dimgray | #9f9ba1darkgray |
| Accent | #e5578epalevioletred | #e5578epalevioletred |
| Accent foreground | #000000black | #000000black |
| Destructive | #c2380afirebrick | #f56b3dtomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e557d4orchid | #e557d4orchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.93:1 | AAA |
| Text on card | 19.40:1 | AAA |
| Primary button | 6.52:1 | AA |
| Secondary button | 5.31:1 | AA |
| Muted text | 5.50:1 | AA |
| Accent | 6.08:1 | AA |
| Destructive | 5.43:1 | AA |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.50:1 | AAA |
| Primary button | 6.52:1 | AA |
| Secondary button | 5.31:1 | AA |
| Muted text | 7.04:1 | AAA |
| Accent | 6.08:1 | AA |
| Destructive | 7.05:1 | AAA |
Paste this into your globals.css to use Lonely in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.007 329.216);
--foreground: oklch(0 0 0);
--muted: oklch(0.951 0.005 312.946);
--muted-foreground: oklch(0.487 0.01 312.843);
--popover: oklch(0.983 0.007 329.216);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.974 0.011 329.259);
--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.685 0.223 332.599);
--primary-foreground: oklch(0.106 0.032 330.715);
--secondary: oklch(0.625 0.212 310.054);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.657 0.182 359.618);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.543 0.181 35.917);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.685 0.223 332.599);
--chart-1: oklch(0.685 0.223 332.599);
--chart-2: oklch(0.625 0.212 310.054);
--chart-3: oklch(0.657 0.182 359.618);
--chart-4: oklch(0.651 0.198 310.523);
--chart-5: oklch(0.687 0.23 332.71);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.016 330.164);
--foreground: oklch(0.992 0.001 329.148);
--muted: oklch(0.166 0.008 312.642);
--muted-foreground: oklch(0.695 0.009 312.894);
--popover: oklch(0.087 0.016 330.164);
--popover-foreground: oklch(0.992 0.001 329.148);
--card: oklch(0.109 0.02 330.164);
--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.685 0.223 332.599);
--primary-foreground: oklch(0.106 0.032 330.715);
--secondary: oklch(0.625 0.212 310.054);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.657 0.182 359.618);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.69 0.18 38.439);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.685 0.223 332.599);
--chart-1: oklch(0.685 0.223 332.599);
--chart-2: oklch(0.625 0.212 310.054);
--chart-3: oklch(0.657 0.182 359.618);
--chart-4: oklch(0.651 0.198 310.523);
--chart-5: oklch(0.687 0.23 332.71);
}