Lively is a shadcn/ui theme built around a muted deep green primary color (#444d42) with muted deep red accents (#4d4244). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#444d42) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #091406black | #ffffffwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #091406black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #091406black | #ffffffwhite |
| Primary | #444d42darkslategray | #444d42darkslategray |
| Primary foreground | #dfe3degainsboro | #dfe3degainsboro |
| Secondary | #42444ddarkslategray | #42444ddarkslategray |
| Secondary foreground | #dedfe3gainsboro | #dedfe3gainsboro |
| Muted | #d7d8dbgainsboro | #242528darkslategray |
| Muted foreground | #4c5161darkslategray | #9ea3b3darkgray |
| Accent | #4d4244darkslategray | #4d4244darkslategray |
| Accent foreground | #e3dedfgainsboro | #e3dedfgainsboro |
| Destructive | #ca2e07firebrick | #f7542btomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #444d42darkslategray | #444d42darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.84:1 | AAA |
| Text on card | 18.84:1 | AAA |
| Primary button | 6.76:1 | AA |
| Secondary button | 7.25:1 | AAA |
| Muted text | 5.53:1 | AA |
| Accent | 7.26:1 | AAA |
| Destructive | 5.38:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.76:1 | AA |
| Secondary button | 7.25:1 | AAA |
| Muted text | 6.06:1 | AA |
| Accent | 7.26:1 | AAA |
| Destructive | 6.27:1 | AA |
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.175 0.033 137.829);
--muted: oklch(0.882 0.004 272.609);
--muted-foreground: oklch(0.437 0.027 271.918);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.175 0.033 137.829);
--card: oklch(1 0 180);
--card-foreground: oklch(0.175 0.033 137.829);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.409 0.022 138.39);
--primary-foreground: oklch(0.911 0.008 138.339);
--secondary: oklch(0.389 0.015 272.213);
--secondary-foreground: oklch(0.904 0.005 272.597);
--accent: oklch(0.391 0.016 2.097);
--accent-foreground: oklch(0.905 0.006 1.132);
--destructive: oklch(0.548 0.196 33.372);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.409 0.022 138.39);
--chart-1: oklch(0.409 0.022 138.39);
--chart-2: oklch(0.389 0.015 272.213);
--chart-3: oklch(0.391 0.016 2.097);
--chart-4: oklch(0.416 0.017 272.205);
--chart-5: oklch(0.413 0.03 138.416);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.266 0.006 272.43);
--muted-foreground: oklch(0.716 0.024 272.286);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.409 0.022 138.39);
--primary-foreground: oklch(0.911 0.008 138.339);
--secondary: oklch(0.389 0.015 272.213);
--secondary-foreground: oklch(0.904 0.005 272.597);
--accent: oklch(0.391 0.016 2.097);
--accent-foreground: oklch(0.905 0.006 1.132);
--destructive: oklch(0.664 0.206 34.819);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.409 0.022 138.39);
--chart-1: oklch(0.409 0.022 138.39);
--chart-2: oklch(0.389 0.015 272.213);
--chart-3: oklch(0.391 0.016 2.097);
--chart-4: oklch(0.416 0.017 272.205);
--chart-5: oklch(0.413 0.03 138.416);
}