Line is a shadcn/ui theme built around a green primary color (#4e7826) with green accents (#267827). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#4e7826) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #020401black | #fafaf9snow |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #fcfdfcwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #4e7826darkolivegreen | #4e7826darkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #777826olivedrab | #777826olivedrab |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e2e2dagainsboro | #25251dblack |
| Muted foreground | #45453adarkslategray | #c5c5basilver |
| Accent | #267827forestgreen | #267827forestgreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d20404red | #fa1e1ered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4e7826darkolivegreen | #4e7826darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.58:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 5.19:1 | AA |
| Secondary button | 4.66:1 | AA |
| Muted text | 7.43:1 | AAA |
| Accent | 5.51:1 | AA |
| Destructive | 5.58:1 | AA |
| Text on background | 20.10:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 5.19:1 | AA |
| Secondary button | 4.66:1 | AA |
| Muted text | 8.85:1 | AAA |
| Accent | 5.51:1 | AA |
| Destructive | 3.97:1 | AA Large |
Paste this into your globals.css to use Line in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.102 0.018 127.783);
--muted: oklch(0.91 0.011 107.382);
--muted-foreground: oklch(0.388 0.019 108.025);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.524 0.121 132.609);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.556 0.103 110.263);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.506 0.141 143.378);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.543 0.221 29.069);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.524 0.121 132.609);
--chart-1: oklch(0.524 0.121 132.609);
--chart-2: oklch(0.556 0.103 110.263);
--chart-3: oklch(0.506 0.141 143.378);
--chart-4: oklch(0.594 0.111 110.281);
--chart-5: oklch(0.53 0.127 132.822);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.986 0.002 129.143);
--muted: oklch(0.262 0.014 108.133);
--muted-foreground: oklch(0.82 0.016 107.516);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.993 0.001 129.134);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.993 0.001 129.134);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.524 0.121 132.609);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.556 0.103 110.263);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.506 0.141 143.378);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.628 0.245 28.201);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.524 0.121 132.609);
--chart-1: oklch(0.524 0.121 132.609);
--chart-2: oklch(0.556 0.103 110.263);
--chart-3: oklch(0.506 0.141 143.378);
--chart-4: oklch(0.594 0.111 110.281);
--chart-5: oklch(0.53 0.127 132.822);
}