Long-term is a shadcn/ui theme built around a light violet primary color (#ccb4df) with light purple accents (#dfb4dd). The light mode uses a neutral background (#faf6fd). Dark mode keeps the light violet primary (#ccb4df) on a violet-tinted background (#0b0510).
| Token | Light | Dark |
|---|---|---|
| Background | #faf6fdghostwhite | #0b0510black |
| Foreground | #0e0316black | #ffffffwhite |
| Card | #faf6fdghostwhite | #0b0510black |
| Card foreground | #0e0316black | #ffffffwhite |
| Popover | #faf6fdghostwhite | #0b0510black |
| Popover foreground | #0e0316black | #ffffffwhite |
| Primary | #ccb4dfthistle | #ccb4dfthistle |
| Primary foreground | #321d44midnightblue | #321d44midnightblue |
| Secondary | #b6b4dflightsteelblue | #b6b4dflightsteelblue |
| Secondary foreground | #1f1d44midnightblue | #1f1d44midnightblue |
| Muted | #d7d6ebgainsboro | #151429black |
| Muted foreground | #49494bdarkslategray | #b4b4b6silver |
| Accent | #dfb4ddthistle | #dfb4ddthistle |
| Accent foreground | #441d42darkslategray | #441d42darkslategray |
| Destructive | #9e1710firebrick | #e32116crimson |
| Destructive foreground | #fce4e3mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ccb4dfthistle | #ccb4dfthistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.91:1 | AAA |
| Text on card | 18.91:1 | AAA |
| Primary button | 7.99:1 | AAA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 6.29:1 | AA |
| Accent | 7.80:1 | AAA |
| Destructive | 6.73:1 | AA |
| Text on background | 20.16:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 7.99:1 | AAA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 8.70:1 | AAA |
| Accent | 7.80:1 | AAA |
| Destructive | 4.66:1 | AA |
Paste this into your globals.css to use Long-term in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.979 0.01 310.343);
--foreground: oklch(0.136 0.045 309.017);
--muted: oklch(0.883 0.028 288.1);
--muted-foreground: oklch(0.407 0.002 288.597);
--popover: oklch(0.979 0.01 310.343);
--popover-foreground: oklch(0.136 0.045 309.017);
--card: oklch(0.979 0.01 310.343);
--card-foreground: oklch(0.136 0.045 309.017);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.804 0.065 309.692);
--primary-foreground: oklch(0.279 0.073 307.744);
--secondary: oklch(0.786 0.06 287.21);
--secondary-foreground: oklch(0.257 0.071 282.452);
--accent: oklch(0.821 0.073 327.827);
--accent-foreground: oklch(0.303 0.081 329.249);
--destructive: oklch(0.449 0.17 29.145);
--destructive-foreground: oklch(0.939 0.026 21.259);
--ring: oklch(0.804 0.065 309.692);
--chart-1: oklch(0.804 0.065 309.692);
--chart-2: oklch(0.786 0.06 287.21);
--chart-3: oklch(0.821 0.073 327.827);
--chart-4: oklch(0.817 0.051 287.498);
--chart-5: oklch(0.802 0.069 309.633);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.131 0.028 310.336);
--foreground: oklch(1 0 180);
--muted: oklch(0.205 0.041 284.473);
--muted-foreground: oklch(0.771 0.002 288.659);
--popover: oklch(0.131 0.028 310.336);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.131 0.028 310.336);
--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.804 0.065 309.692);
--primary-foreground: oklch(0.279 0.073 307.744);
--secondary: oklch(0.786 0.06 287.21);
--secondary-foreground: oklch(0.257 0.071 282.452);
--accent: oklch(0.821 0.073 327.827);
--accent-foreground: oklch(0.303 0.081 329.249);
--destructive: oklch(0.587 0.226 29.294);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.804 0.065 309.692);
--chart-1: oklch(0.804 0.065 309.692);
--chart-2: oklch(0.786 0.06 287.21);
--chart-3: oklch(0.821 0.073 327.827);
--chart-4: oklch(0.817 0.051 287.498);
--chart-5: oklch(0.802 0.069 309.633);
}