Lopsided is a shadcn/ui theme built around a muted green primary color (#a0b6a0) with muted purple accents (#b6a0b5). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the muted green primary (#a0b6a0) on a green-tinted background (#050a05).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf8mintcream | #050a05black |
| Foreground | #020802black | #f9fbf9mintcream |
| Card | #f8fcf8mintcream | #050a05black |
| Card foreground | #020802black | #f9fbf9mintcream |
| Popover | #f8fcf8mintcream | #050a05black |
| Popover foreground | #020802black | #f9fbf9mintcream |
| Primary | #a0b6a0darkgray | #a0b6a0darkgray |
| Primary foreground | #101410black | #101410black |
| Secondary | #b6a0b5darkgray | #b6a0b5darkgray |
| Secondary foreground | #141014black | #141014black |
| Muted | #e9cee8gainsboro | #311630darkslategray |
| Muted foreground | #4e464edarkslategray | #b9b1b9silver |
| Accent | #b6a0b5darkgray | #b6a0b5darkgray |
| Accent foreground | #141014black | #141014black |
| Destructive | #9a2a04saddlebrown | #f9561forangered |
| Destructive foreground | #feddd2blanchedalmond | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a0b6a0darkgray | #a0b6a0darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.53:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 8.56:1 | AAA |
| Secondary button | 7.78:1 | AAA |
| Muted text | 6.25:1 | AA |
| Accent | 7.78:1 | AAA |
| Destructive | 6.10:1 | AA |
| Text on background | 19.18:1 | AAA |
| Text on card | 19.18:1 | AAA |
| Primary button | 8.56:1 | AAA |
| Secondary button | 7.78:1 | AAA |
| Muted text | 7.77:1 | AAA |
| Accent | 7.78:1 | AAA |
| Destructive | 6.38:1 | AA |
Paste this into your globals.css to use Lopsided in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.008 145.991);
--foreground: oklch(0.122 0.024 144.41);
--muted: oklch(0.881 0.045 326.459);
--muted-foreground: oklch(0.405 0.015 326.356);
--popover: oklch(0.987 0.008 145.991);
--popover-foreground: oklch(0.122 0.024 144.41);
--card: oklch(0.987 0.008 145.991);
--card-foreground: oklch(0.122 0.024 144.41);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.753 0.039 145.624);
--primary-foreground: oklch(0.185 0.012 145.526);
--secondary: oklch(0.731 0.039 326.477);
--secondary-foreground: oklch(0.179 0.012 326.573);
--accent: oklch(0.731 0.039 326.477);
--accent-foreground: oklch(0.179 0.012 326.573);
--destructive: oklch(0.457 0.154 35.871);
--destructive-foreground: oklch(0.922 0.039 39.305);
--ring: oklch(0.753 0.039 145.624);
--chart-1: oklch(0.753 0.039 145.624);
--chart-2: oklch(0.731 0.039 326.477);
--chart-3: oklch(0.731 0.039 326.477);
--chart-4: oklch(0.756 0.035 326.424);
--chart-5: oklch(0.756 0.048 145.525);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.136 0.015 145.191);
--foreground: oklch(0.985 0.002 146.037);
--muted: oklch(0.252 0.06 327.77);
--muted-foreground: oklch(0.77 0.013 326.191);
--popover: oklch(0.136 0.015 145.191);
--popover-foreground: oklch(0.985 0.002 146.037);
--card: oklch(0.136 0.015 145.191);
--card-foreground: oklch(0.985 0.002 146.037);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.753 0.039 145.624);
--primary-foreground: oklch(0.185 0.012 145.526);
--secondary: oklch(0.731 0.039 326.477);
--secondary-foreground: oklch(0.179 0.012 326.573);
--accent: oklch(0.731 0.039 326.477);
--accent-foreground: oklch(0.179 0.012 326.573);
--destructive: oklch(0.668 0.209 37.001);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.753 0.039 145.624);
--chart-1: oklch(0.753 0.039 145.624);
--chart-2: oklch(0.731 0.039 326.477);
--chart-3: oklch(0.731 0.039 326.477);
--chart-4: oklch(0.756 0.035 326.424);
--chart-5: oklch(0.756 0.048 145.525);
}