Lively is a shadcn/ui theme built around a vivid green primary color (#cdea3e) with vivid green accents (#77ea3e). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#cdea3e) on a green-tinted background (#0d0e07).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0d0e07black |
| Foreground | #040501black | #f9f9f5whitesmoke |
| Card | #fcfcfcsnow | #101108black |
| Card foreground | #000000black | #fbfbf9snow |
| Popover | #ffffffwhite | #0d0e07black |
| Popover foreground | #040501black | #f9f9f5whitesmoke |
| Primary | #cdea3egreenyellow | #cdea3egreenyellow |
| Primary foreground | #465309darkolivegreen | #465309darkolivegreen |
| Secondary | #eab03egoldenrod | #eab03egoldenrod |
| Secondary foreground | #000000black | #000000black |
| Muted | #f0f0efwhitesmoke | #10100fblack |
| Muted foreground | #646059dimgray | #a6a39bdarkgray |
| Accent | #77ea3eyellowgreen | #77ea3eyellowgreen |
| Accent foreground | #000000black | #000000black |
| Destructive | #ab4212saddlebrown | #d05116chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cdea3egreenyellow | #cdea3egreenyellow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.44:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.15:1 | AA |
| Secondary button | 10.80:1 | AAA |
| Muted text | 5.48:1 | AA |
| Accent | 13.58:1 | AAA |
| Destructive | 5.96:1 | AA |
| Text on background | 18.40:1 | AAA |
| Text on card | 18.31:1 | AAA |
| Primary button | 6.15:1 | AA |
| Secondary button | 10.80:1 | AAA |
| Muted text | 7.57:1 | AAA |
| Accent | 13.58:1 | AAA |
| Destructive | 4.32:1 | AA Large |
Paste this into your globals.css to use Lively in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.107 0.02 115.109);
--muted: oklch(0.955 0.001 84.555);
--muted-foreground: oklch(0.491 0.013 84.593);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.107 0.02 115.109);
--card: oklch(0.992 0 161.565);
--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.886 0.188 118.832);
--primary-foreground: oklch(0.416 0.093 119.384);
--secondary: oklch(0.792 0.142 80.922);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.837 0.228 137.436);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.517 0.148 41.289);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.886 0.188 118.832);
--chart-1: oklch(0.886 0.188 118.832);
--chart-2: oklch(0.792 0.142 80.922);
--chart-3: oklch(0.837 0.228 137.436);
--chart-4: oklch(0.806 0.136 81.823);
--chart-5: oklch(0.894 0.193 118.966);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.159 0.015 115.452);
--foreground: oklch(0.982 0.005 114.166);
--muted: oklch(0.171 0.002 84.581);
--muted-foreground: oklch(0.715 0.012 84.585);
--popover: oklch(0.159 0.015 115.452);
--popover-foreground: oklch(0.982 0.005 114.166);
--card: oklch(0.174 0.018 115.901);
--card-foreground: oklch(0.988 0.004 114.132);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.886 0.188 118.832);
--primary-foreground: oklch(0.416 0.093 119.384);
--secondary: oklch(0.792 0.142 80.922);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.837 0.228 137.436);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.596 0.173 41.006);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.886 0.188 118.832);
--chart-1: oklch(0.886 0.188 118.832);
--chart-2: oklch(0.792 0.142 80.922);
--chart-3: oklch(0.837 0.228 137.436);
--chart-4: oklch(0.806 0.136 81.823);
--chart-5: oklch(0.894 0.193 118.966);
}