Lively is a shadcn/ui theme built around a muted deep green primary color (#25412e) with muted light green accents (#c7d1ca). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#25412e) on a green-tinted background (#041008).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #041008black |
| Foreground | #031108black | #ffffffwhite |
| Card | #ffffffwhite | #041008black |
| Card foreground | #031108black | #ffffffwhite |
| Popover | #ffffffwhite | #041008black |
| Popover foreground | #031108black | #ffffffwhite |
| Primary | #25412edarkslategray | #25412edarkslategray |
| Primary foreground | #bedac7lightgrey | #bedac7lightgrey |
| Secondary | #dadcdbgainsboro | #151916black |
| Secondary foreground | #404442darkslategray | #a8b8addarkgray |
| Muted | #e0f0e5gainsboro | #0f1f14black |
| Muted foreground | #5f6d64dimgray | #92a097darkseagreen |
| Accent | #c7d1calightgrey | #26362bdarkslategray |
| Accent foreground | #2e3831darkslategray | #bdd0c4silver |
| Destructive | #962b0dsaddlebrown | #eb4719orangered |
| Destructive foreground | #fce1d9mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #25412edarkslategray | #25412edarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.30:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 7.46:1 | AAA |
| Secondary button | 7.19:1 | AAA |
| Muted text | 4.61:1 | AA |
| Accent | 7.76:1 | AAA |
| Destructive | 6.38:1 | AA |
| Text on background | 19.39:1 | AAA |
| Text on card | 19.39:1 | AAA |
| Primary button | 7.46:1 | AAA |
| Secondary button | 8.55:1 | AAA |
| Muted text | 6.26:1 | AA |
| Accent | 7.91:1 | AAA |
| Destructive | 3.86: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.162 0.031 155.218);
--muted: oklch(0.941 0.023 156.764);
--muted-foreground: oklch(0.52 0.023 156.344);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.162 0.031 155.218);
--card: oklch(1 0 180);
--card-foreground: oklch(0.162 0.031 155.218);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.347 0.048 153.976);
--primary-foreground: oklch(0.863 0.04 156.285);
--secondary: oklch(0.894 0.003 157.197);
--secondary-foreground: oklch(0.383 0.007 156.896);
--accent: oklch(0.851 0.014 156.916);
--accent-foreground: oklch(0.329 0.018 156.091);
--destructive: oklch(0.452 0.148 35.114);
--destructive-foreground: oklch(0.929 0.031 35.945);
--ring: oklch(0.347 0.048 153.976);
--chart-1: oklch(0.347 0.048 153.976);
--chart-2: oklch(0.894 0.003 157.197);
--chart-3: oklch(0.851 0.014 156.916);
--chart-4: oklch(0.917 0.002 157.213);
--chart-5: oklch(0.351 0.053 153.628);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.158 0.025 155.631);
--foreground: oklch(1 0 180);
--muted: oklch(0.222 0.031 153.919);
--muted-foreground: oklch(0.692 0.021 156.626);
--popover: oklch(0.158 0.025 155.631);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.158 0.025 155.631);
--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.347 0.048 153.976);
--primary-foreground: oklch(0.863 0.04 156.285);
--secondary: oklch(0.208 0.009 156.336);
--secondary-foreground: oklch(0.767 0.023 156.643);
--accent: oklch(0.314 0.028 155.312);
--accent-foreground: oklch(0.841 0.027 156.596);
--destructive: oklch(0.629 0.208 35.004);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.347 0.048 153.976);
--chart-1: oklch(0.347 0.048 153.976);
--chart-2: oklch(0.208 0.009 156.336);
--chart-3: oklch(0.314 0.028 155.312);
--chart-4: oklch(0.243 0.012 156.239);
--chart-5: oklch(0.351 0.053 153.628);
}