Lovely is a shadcn/ui theme built around a deep yellow primary color (#7e6416) with deep blue accents (#16307e). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the deep yellow primary (#7e6416) on a yellow-tinted background (#0c0a03).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbf8snow | #0c0a03black |
| Foreground | #0d0a03black | #ffffffwhite |
| Card | #faf9f4whitesmoke | #100d04black |
| Card foreground | #090702black | #ffffffwhite |
| Popover | #faf9f4whitesmoke | #100d04black |
| Popover foreground | #090702black | #ffffffwhite |
| Primary | #7e6416saddlebrown | #7e6416saddlebrown |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #16307emidnightblue | #16307emidnightblue |
| Secondary foreground | #cfd9f7lavender | #cfd9f7lavender |
| Muted | #ccd2e6lightgrey | #192033darkslategray |
| Muted foreground | #3e4351darkslategray | #aeb3c1silver |
| Accent | #16307emidnightblue | #16307emidnightblue |
| Accent foreground | #cfd9f7lavender | #cfd9f7lavender |
| Destructive | #a71111firebrick | #ec3c3ccrimson |
| Destructive foreground | #fdececlinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7e6416saddlebrown | #7e6416saddlebrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.08:1 | AAA |
| Text on card | 19.09:1 | AAA |
| Primary button | 5.65:1 | AA |
| Secondary button | 8.48:1 | AAA |
| Muted text | 6.55:1 | AA |
| Accent | 8.48:1 | AAA |
| Destructive | 6.73:1 | AA |
| Text on background | 19.81:1 | AAA |
| Text on card | 19.40:1 | AAA |
| Primary button | 5.65:1 | AA |
| Secondary button | 8.48:1 | AAA |
| Muted text | 7.74:1 | AAA |
| Accent | 8.48:1 | AAA |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Lovely in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.004 91.444);
--foreground: oklch(0.146 0.021 96.168);
--muted: oklch(0.866 0.028 271.083);
--muted-foreground: oklch(0.383 0.025 270.703);
--popover: oklch(0.981 0.006 91.462);
--popover-foreground: oklch(0.127 0.018 97.11);
--card: oklch(0.981 0.006 91.462);
--card-foreground: oklch(0.127 0.018 97.11);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.515 0.097 88.972);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.344 0.135 265.494);
--secondary-foreground: oklch(0.887 0.042 270.909);
--accent: oklch(0.344 0.135 265.494);
--accent-foreground: oklch(0.887 0.042 270.909);
--destructive: oklch(0.464 0.181 28.176);
--destructive-foreground: oklch(0.958 0.018 17.475);
--ring: oklch(0.515 0.097 88.972);
--chart-1: oklch(0.515 0.097 88.972);
--chart-2: oklch(0.344 0.135 265.494);
--chart-3: oklch(0.344 0.135 265.494);
--chart-4: oklch(0.367 0.147 265.408);
--chart-5: oklch(0.519 0.099 88.645);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.017 95.792);
--foreground: oklch(1 0 180);
--muted: oklch(0.246 0.039 269.374);
--muted-foreground: oklch(0.767 0.02 271.143);
--popover: oklch(0.16 0.02 93.828);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.16 0.02 93.828);
--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.515 0.097 88.972);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.344 0.135 265.494);
--secondary-foreground: oklch(0.887 0.042 270.909);
--accent: oklch(0.344 0.135 265.494);
--accent-foreground: oklch(0.887 0.042 270.909);
--destructive: oklch(0.623 0.212 25.894);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.515 0.097 88.972);
--chart-1: oklch(0.515 0.097 88.972);
--chart-2: oklch(0.344 0.135 265.494);
--chart-3: oklch(0.344 0.135 265.494);
--chart-4: oklch(0.367 0.147 265.408);
--chart-5: oklch(0.519 0.099 88.645);
}