Lifetime is a shadcn/ui theme built around a light cyan primary color (#f3fafc) with light green accents (#fafcf3). The light mode uses a neutral background (#ffffff). Dark mode keeps the light cyan primary (#f3fafc) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #031217black | #f5f9f9whitesmoke |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #020f12black | #f9fbfbghostwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #031217black | #f5f9f9whitesmoke |
| Primary | #f3fafcaliceblue | #f3fafcaliceblue |
| Primary foreground | #113a46darkslategray | #113a46darkslategray |
| Secondary | #fcf3falavenderblush | #fcf3falavenderblush |
| Secondary foreground | #98257fdarkmagenta | #98257fdarkmagenta |
| Muted | #f4e7f1whitesmoke | #180b16black |
| Muted foreground | #4e4b4ddarkslategray | #b4b1b3darkgray |
| Accent | #fafcf3floralwhite | #fafcf3floralwhite |
| Accent foreground | #3a4611darkolivegreen | #3a4611darkolivegreen |
| Destructive | #910808darkred | #e30d0dred |
| Destructive foreground | #fccfcfpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f3fafcaliceblue | #f3fafcaliceblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.04:1 | AAA |
| Text on card | 19.03:1 | AAA |
| Primary button | 11.57:1 | AAA |
| Secondary button | 6.64:1 | AA |
| Muted text | 7.17:1 | AAA |
| Accent | 9.82:1 | AAA |
| Destructive | 6.69:1 | AA |
| Text on background | 19.80:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 11.57:1 | AAA |
| Secondary button | 6.64:1 | AA |
| Muted text | 8.98:1 | AAA |
| Accent | 9.82:1 | AAA |
| Destructive | 4.86:1 | AA |
Paste this into your globals.css to use Lifetime in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.172 0.025 216.28);
--muted: oklch(0.94 0.02 332.939);
--muted-foreground: oklch(0.416 0.006 332.824);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.172 0.025 216.28);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.156 0.022 214.625);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.98 0.008 216.048);
--primary-foreground: oklch(0.327 0.049 219.641);
--secondary: oklch(0.973 0.014 332.836);
--secondary-foreground: oklch(0.48 0.178 338.311);
--accent: oklch(0.987 0.012 116.559);
--accent-foreground: oklch(0.371 0.076 120.815);
--destructive: oklch(0.415 0.165 28.526);
--destructive-foreground: oklch(0.893 0.051 18.158);
--ring: oklch(0.98 0.008 216.048);
--chart-1: oklch(0.98 0.008 216.048);
--chart-2: oklch(0.973 0.014 332.836);
--chart-3: oklch(0.987 0.012 116.559);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.98 0.009 216.05);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.978 0.004 216.027);
--muted: oklch(0.175 0.03 335.061);
--muted-foreground: oklch(0.764 0.005 332.714);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.978 0.004 216.027);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.986 0.002 216.022);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.98 0.008 216.048);
--primary-foreground: oklch(0.327 0.049 219.641);
--secondary: oklch(0.973 0.014 332.836);
--secondary-foreground: oklch(0.48 0.178 338.311);
--accent: oklch(0.987 0.012 116.559);
--accent-foreground: oklch(0.371 0.076 120.815);
--destructive: oklch(0.577 0.232 28.807);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.98 0.008 216.048);
--chart-1: oklch(0.98 0.008 216.048);
--chart-2: oklch(0.973 0.014 332.836);
--chart-3: oklch(0.987 0.012 116.559);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.98 0.009 216.05);
}