Lovable is a shadcn/ui theme built around a green primary color (#c9d09a) with green accents (#afd09a). The light mode uses a neutral background (#fcfcf8). Dark mode keeps the green primary (#c9d09a) on a green-tinted background (#0e1005).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcf8snow | #0e1005black |
| Foreground | #000000black | #fdfdfcwhite |
| Card | #fafbf4floralwhite | #121306black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcf8snow | #0e1005black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #c9d09atan | #c9d09atan |
| Primary foreground | #242612black | #242612black |
| Secondary | #d0bb9atan | #d0bb9atan |
| Secondary foreground | #261e12black | #261e12black |
| Muted | #f6f3efwhitesmoke | #100e09black |
| Muted foreground | #49443cdarkslategray | #c3beb6silver |
| Accent | #afd09adarkseagreen | #afd09adarkseagreen |
| Accent foreground | #1a2612black | #1a2612black |
| Destructive | #9d3002saddlebrown | #f74c02orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c9d09atan | #c9d09atan |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.42:1 | AAA |
| Text on card | 20.14:1 | AAA |
| Primary button | 9.51:1 | AAA |
| Secondary button | 8.82:1 | AAA |
| Muted text | 8.72:1 | AAA |
| Accent | 9.23:1 | AAA |
| Destructive | 7.37:1 | AAA |
| Text on background | 18.88:1 | AAA |
| Text on card | 18.68:1 | AAA |
| Primary button | 9.51:1 | AAA |
| Secondary button | 8.82:1 | AAA |
| Muted text | 10.45:1 | AAA |
| Accent | 9.23:1 | AAA |
| Destructive | 3.49:1 | AA Large |
Paste this into your globals.css to use Lovable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.006 111.894);
--foreground: oklch(0 0 0);
--muted: oklch(0.965 0.006 79.922);
--muted-foreground: oklch(0.388 0.015 79.802);
--popover: oklch(0.99 0.006 111.894);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.985 0.009 111.953);
--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.839 0.071 113.349);
--primary-foreground: oklch(0.261 0.035 114.274);
--secondary: oklch(0.802 0.05 79.623);
--secondary-foreground: oklch(0.242 0.025 79.031);
--accent: oklch(0.819 0.081 133.718);
--accent-foreground: oklch(0.251 0.04 134.303);
--destructive: oklch(0.469 0.151 38.289);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.839 0.071 113.349);
--chart-1: oklch(0.839 0.071 113.349);
--chart-2: oklch(0.802 0.05 79.623);
--chart-3: oklch(0.819 0.081 133.718);
--chart-4: oklch(0.823 0.045 79.694);
--chart-5: oklch(0.844 0.076 113.46);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.165 0.022 113.809);
--foreground: oklch(0.993 0.001 111.796);
--muted: oklch(0.163 0.01 79.725);
--muted-foreground: oklch(0.804 0.013 79.9);
--popover: oklch(0.165 0.022 113.809);
--popover-foreground: oklch(0.993 0.001 111.796);
--card: oklch(0.182 0.026 114.21);
--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.839 0.071 113.349);
--primary-foreground: oklch(0.261 0.035 114.274);
--secondary: oklch(0.802 0.05 79.623);
--secondary-foreground: oklch(0.242 0.025 79.031);
--accent: oklch(0.819 0.081 133.718);
--accent-foreground: oklch(0.251 0.04 134.303);
--destructive: oklch(0.654 0.217 37.183);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.839 0.071 113.349);
--chart-1: oklch(0.839 0.071 113.349);
--chart-2: oklch(0.802 0.05 79.623);
--chart-3: oklch(0.819 0.081 133.718);
--chart-4: oklch(0.823 0.045 79.694);
--chart-5: oklch(0.844 0.076 113.46);
}