Lonely is a shadcn/ui theme built around a vivid light blue primary color (#c9d4fd) with near-white accents (#eaeaeb). The light mode uses a neutral background (#f7f8fd). Dark mode keeps the vivid light blue primary (#c9d4fd) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f8fdghostwhite | #020203black |
| Foreground | #020309black | #f7f7f8whitesmoke |
| Card | #f7f8fdghostwhite | #020203black |
| Card foreground | #020309black | #f7f7f8whitesmoke |
| Popover | #f7f8fdghostwhite | #020203black |
| Popover foreground | #020309black | #f7f7f8whitesmoke |
| Primary | #c9d4fdlavender | #c9d4fdlavender |
| Primary foreground | #04238fdarkblue | #04238fdarkblue |
| Secondary | #eaeaeblavender | #1e1e1fblack |
| Secondary foreground | #515152darkslategray | #b7b7b8silver |
| Muted | #eeeff1whitesmoke | #0e0e11black |
| Muted foreground | #4c5267dimgray | #989eb3darkgray |
| Accent | #eaeaeblavender | #1e1e1fblack |
| Accent foreground | #515152darkslategray | #b7b7b8silver |
| Destructive | #931406darkred | #e6200ared |
| Destructive foreground | #fdd3cepink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c9d4fdlavender | #c9d4fdlavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.44:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 8.71:1 | AAA |
| Secondary button | 6.61:1 | AA |
| Muted text | 6.72:1 | AA |
| Accent | 6.61:1 | AA |
| Destructive | 6.56:1 | AA |
| Text on background | 19.37:1 | AAA |
| Text on card | 19.37:1 | AAA |
| Primary button | 8.71:1 | AAA |
| Secondary button | 8.27:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 8.27:1 | AAA |
| Destructive | 4.58:1 | AA |
Paste this into your globals.css to use Lonely in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.006 273.793);
--foreground: oklch(0.1 0.019 264.692);
--muted: oklch(0.952 0.004 273.822);
--muted-foreground: oklch(0.44 0.035 272.797);
--popover: oklch(0.98 0.006 273.793);
--popover-foreground: oklch(0.1 0.019 264.692);
--card: oklch(0.98 0.006 273.793);
--card-foreground: oklch(0.1 0.019 264.692);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.875 0.059 272.996);
--primary-foreground: oklch(0.332 0.179 264.436);
--secondary: oklch(0.939 0 273.859);
--secondary-foreground: oklch(0.436 0.002 273.81);
--accent: oklch(0.939 0 273.859);
--accent-foreground: oklch(0.436 0.002 273.81);
--destructive: oklch(0.426 0.162 30.565);
--destructive-foreground: oklch(0.901 0.048 25.515);
--ring: oklch(0.875 0.059 272.996);
--chart-1: oklch(0.875 0.059 272.996);
--chart-2: oklch(0.939 0 273.859);
--chart-3: oklch(0.939 0 273.859);
--chart-4: oklch(0.962 0 273.862);
--chart-5: oklch(0.873 0.06 272.962);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.008 269.757);
--foreground: oklch(0.976 0.002 273.844);
--muted: oklch(0.166 0.006 273.453);
--muted-foreground: oklch(0.702 0.031 273.312);
--popover: oklch(0.086 0.008 269.757);
--popover-foreground: oklch(0.976 0.002 273.844);
--card: oklch(0.086 0.008 269.757);
--card-foreground: oklch(0.976 0.002 273.844);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.875 0.059 272.996);
--primary-foreground: oklch(0.332 0.179 264.436);
--secondary: oklch(0.237 0.001 273.821);
--secondary-foreground: oklch(0.78 0.002 273.842);
--accent: oklch(0.237 0.001 273.821);
--accent-foreground: oklch(0.78 0.002 273.842);
--destructive: oklch(0.591 0.229 30.382);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.875 0.059 272.996);
--chart-1: oklch(0.875 0.059 272.996);
--chart-2: oklch(0.237 0.001 273.821);
--chart-3: oklch(0.237 0.001 273.821);
--chart-4: oklch(0.269 0.001 273.818);
--chart-5: oklch(0.873 0.06 272.962);
}