Long-term is a shadcn/ui theme built around a neutral gray primary color (#afaab5) with neutral gray accents (#aab5af). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#afaab5) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020203black |
| Foreground | #090212black | #f7f5fawhitesmoke |
| Card | #fcfcfcsnow | #050307black |
| Card foreground | #07020eblack | #faf8fcghostwhite |
| Popover | #ffffffwhite | #020203black |
| Popover foreground | #090212black | #f7f5fawhitesmoke |
| Primary | #afaab5darkgray | #afaab5darkgray |
| Primary foreground | #171519black | #171519black |
| Secondary | #b5afaadarkgray | #b5afaadarkgray |
| Secondary foreground | #191715black | #191715black |
| Muted | #f3efedlinen | #120f0cblack |
| Muted foreground | #545454dimgray | #abababdarkgray |
| Accent | #aab5afdarkgray | #aab5afdarkgray |
| Accent foreground | #151917black | #151917black |
| Destructive | #5d1709maroon | #e33916orangered |
| Destructive foreground | #f6b0a2lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #afaab5darkgray | #afaab5darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.40:1 | AAA |
| Text on card | 20.06:1 | AAA |
| Primary button | 8.01:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 6.63:1 | AA |
| Accent | 8.43:1 | AAA |
| Destructive | 7.32:1 | AAA |
| Text on background | 19.16:1 | AAA |
| Text on card | 19.43:1 | AAA |
| Primary button | 8.01:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 8.32:1 | AAA |
| Accent | 8.43:1 | AAA |
| Destructive | 4.31:1 | AA Large |
Paste this into your globals.css to use Long-term in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.119 0.042 304.49);
--muted: oklch(0.955 0.005 58.287);
--muted-foreground: oklch(0.446 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.119 0.042 304.49);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.108 0.037 306.25);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.747 0.016 304.74);
--primary-foreground: oklch(0.2 0.007 304.587);
--secondary: oklch(0.758 0.01 58.181);
--secondary-foreground: oklch(0.205 0.004 58.092);
--accent: oklch(0.764 0.015 160.534);
--accent-foreground: oklch(0.207 0.006 160.299);
--destructive: oklch(0.321 0.104 33.143);
--destructive-foreground: oklch(0.82 0.085 31.603);
--ring: oklch(0.747 0.016 304.74);
--chart-1: oklch(0.747 0.016 304.74);
--chart-2: oklch(0.758 0.01 58.181);
--chart-3: oklch(0.764 0.015 160.534);
--chart-4: oklch(0.782 0.009 58.205);
--chart-5: oklch(0.742 0.024 304.606);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.01 305.661);
--foreground: oklch(0.973 0.007 304.948);
--muted: oklch(0.171 0.008 57.709);
--muted-foreground: oklch(0.741 0 171.254);
--popover: oklch(0.085 0.01 305.661);
--popover-foreground: oklch(0.973 0.007 304.948);
--card: oklch(0.107 0.012 305.661);
--card-foreground: oklch(0.982 0.005 304.981);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.747 0.016 304.74);
--primary-foreground: oklch(0.2 0.007 304.587);
--secondary: oklch(0.758 0.01 58.181);
--secondary-foreground: oklch(0.205 0.004 58.092);
--accent: oklch(0.764 0.015 160.534);
--accent-foreground: oklch(0.207 0.006 160.299);
--destructive: oklch(0.603 0.211 32.747);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.747 0.016 304.74);
--chart-1: oklch(0.747 0.016 304.74);
--chart-2: oklch(0.758 0.01 58.181);
--chart-3: oklch(0.764 0.015 160.534);
--chart-4: oklch(0.782 0.009 58.205);
--chart-5: oklch(0.742 0.024 304.606);
}