Lasting is a shadcn/ui theme built around a violet primary color (#6a478a) with green accents (#678a47). The light mode uses a neutral background (#faf8fc). Dark mode keeps the violet primary (#6a478a) on a neutral background (#030204).
| Token | Light | Dark |
|---|---|---|
| Background | #faf8fcghostwhite | #030204black |
| Foreground | #08030cblack | #faf8fbghostwhite |
| Card | #f7f4fawhitesmoke | #050307black |
| Card foreground | #050208black | #fcfcfdwhite |
| Popover | #faf8fcghostwhite | #030204black |
| Popover foreground | #08030cblack | #faf8fbghostwhite |
| Primary | #6a478arebeccapurple | #6a478arebeccapurple |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #678a47olivedrab | #678a47olivedrab |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ddebd1gainsboro | #212e14black |
| Muted foreground | #4a5440darkolivegreen | #b5bfabsilver |
| Accent | #678a47olivedrab | #678a47olivedrab |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b54612sienna | #d15015chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6a478arebeccapurple | #6a478arebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.32:1 | AAA |
| Text on card | 18.97:1 | AAA |
| Primary button | 7.29:1 | AAA |
| Secondary button | 3.95:1 | AA Large |
| Muted text | 6.41:1 | AA |
| Accent | 3.95:1 | AA Large |
| Destructive | 5.47:1 | AA |
| Text on background | 19.65:1 | AAA |
| Text on card | 20.01:1 | AAA |
| Primary button | 7.29:1 | AAA |
| Secondary button | 3.95:1 | AA Large |
| Muted text | 7.48:1 | AAA |
| Accent | 3.95:1 | AA Large |
| Destructive | 4.31:1 | AA Large |
Paste this into your globals.css to use Lasting in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.006 309.063);
--foreground: oklch(0.115 0.029 310.619);
--muted: oklch(0.923 0.038 129.571);
--muted-foreground: oklch(0.43 0.033 129.982);
--popover: oklch(0.981 0.006 309.063);
--popover-foreground: oklch(0.115 0.029 310.619);
--card: oklch(0.972 0.009 309.031);
--card-foreground: oklch(0.101 0.025 310.986);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.466 0.111 306.431);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.591 0.102 131.318);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.591 0.102 131.318);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.538 0.156 41.06);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.466 0.111 306.431);
--chart-1: oklch(0.466 0.111 306.431);
--chart-2: oklch(0.591 0.102 131.318);
--chart-3: oklch(0.591 0.102 131.318);
--chart-4: oklch(0.622 0.108 131.336);
--chart-5: oklch(0.463 0.12 306.113);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.012 310.165);
--foreground: oklch(0.982 0.004 309.081);
--muted: oklch(0.283 0.049 131.31);
--muted-foreground: oklch(0.79 0.029 129.517);
--popover: oklch(0.085 0.012 310.165);
--popover-foreground: oklch(0.982 0.004 309.081);
--card: oklch(0.107 0.015 310.165);
--card-foreground: oklch(0.991 0.002 309.103);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.466 0.111 306.431);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.591 0.102 131.318);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.591 0.102 131.318);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.597 0.175 40.851);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.466 0.111 306.431);
--chart-1: oklch(0.466 0.111 306.431);
--chart-2: oklch(0.591 0.102 131.318);
--chart-3: oklch(0.591 0.102 131.318);
--chart-4: oklch(0.622 0.108 131.336);
--chart-5: oklch(0.463 0.12 306.113);
}