Lopsided is a shadcn/ui theme built around a vivid violet primary color (#b97bef) with vivid purple accents (#ef7beb). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the vivid violet primary (#b97bef) on a neutral background (#050307).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #050307black |
| Foreground | #030104black | #f7f6f9whitesmoke |
| Card | #fdfbfewhite | #050307black |
| Card foreground | #030104black | #f7f6f9whitesmoke |
| Popover | #fdfbfewhite | #050307black |
| Popover foreground | #030104black | #f7f6f9whitesmoke |
| Primary | #b97beforchid | #b97beforchid |
| Primary foreground | #1e0632black | #1e0632black |
| Secondary | #7f7befmediumslateblue | #7f7befmediumslateblue |
| Secondary foreground | #000000black | #000000black |
| Muted | #cfcee8lightgrey | #181731black |
| Muted foreground | #4a4a4fdarkslategray | #b0b0b5darkgray |
| Accent | #ef7bebviolet | #ef7bebviolet |
| Accent foreground | #320630black | #320630black |
| Destructive | #ac3502firebrick | #e34602orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b97beforchid | #b97beforchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.18:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 6.34:1 | AA |
| Secondary button | 6.00:1 | AA |
| Muted text | 5.74:1 | AA |
| Accent | 7.23:1 | AAA |
| Destructive | 6.45:1 | AA |
| Text on background | 19.04:1 | AAA |
| Text on card | 19.04:1 | AAA |
| Primary button | 6.34:1 | AA |
| Secondary button | 6.00:1 | AA |
| Muted text | 8.08:1 | AAA |
| Accent | 7.23:1 | AAA |
| Destructive | 4.08:1 | AA Large |
Paste this into your globals.css to use Lopsided in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 309.744);
--foreground: oklch(0.078 0.023 312.025);
--muted: oklch(0.861 0.035 287.162);
--muted-foreground: oklch(0.412 0.008 287.597);
--popover: oklch(0.99 0.004 309.744);
--popover-foreground: oklch(0.078 0.023 312.025);
--card: oklch(0.99 0.004 309.744);
--card-foreground: oklch(0.078 0.023 312.025);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.694 0.173 307.088);
--primary-foreground: oklch(0.195 0.082 304.164);
--secondary: oklch(0.642 0.168 282.068);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.752 0.194 328.539);
--accent-foreground: oklch(0.229 0.09 329.486);
--destructive: oklch(0.501 0.163 38.021);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.694 0.173 307.088);
--chart-1: oklch(0.694 0.173 307.088);
--chart-2: oklch(0.642 0.168 282.068);
--chart-3: oklch(0.752 0.194 328.539);
--chart-4: oklch(0.678 0.15 283.149);
--chart-5: oklch(0.692 0.179 306.958);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.014 310.767);
--foreground: oklch(0.975 0.004 309.747);
--muted: oklch(0.22 0.049 283.063);
--muted-foreground: oklch(0.759 0.006 287.781);
--popover: oklch(0.108 0.014 310.767);
--popover-foreground: oklch(0.975 0.004 309.747);
--card: oklch(0.108 0.014 310.767);
--card-foreground: oklch(0.975 0.004 309.747);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.694 0.173 307.088);
--primary-foreground: oklch(0.195 0.082 304.164);
--secondary: oklch(0.642 0.168 282.068);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.752 0.194 328.539);
--accent-foreground: oklch(0.229 0.09 329.486);
--destructive: oklch(0.614 0.203 37.351);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.694 0.173 307.088);
--chart-1: oklch(0.694 0.173 307.088);
--chart-2: oklch(0.642 0.168 282.068);
--chart-3: oklch(0.752 0.194 328.539);
--chart-4: oklch(0.678 0.15 283.149);
--chart-5: oklch(0.692 0.179 306.958);
}