Lag is a shadcn/ui theme built around a green primary color (#6ae272) with teal accents (#6ae2ae). The light mode uses a neutral background (#fbfefb). Dark mode keeps the green primary (#6ae272) on a neutral background (#030803).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #030803black |
| Foreground | #020802black | #ffffffwhite |
| Card | #fbfefbwhite | #030803black |
| Card foreground | #020802black | #ffffffwhite |
| Popover | #fbfefbwhite | #030803black |
| Popover foreground | #020802black | #ffffffwhite |
| Primary | #6ae272lightgreen | #6ae272lightgreen |
| Primary foreground | #041505black | #041505black |
| Secondary | #9ee26alightgreen | #9ee26alightgreen |
| Secondary foreground | #0c1504black | #0c1504black |
| Muted | #e4efdcbeige | #182310black |
| Muted foreground | #5a694fdimgray | #a1b096darkgray |
| Accent | #6ae2aemediumaquamarine | #6ae2aemediumaquamarine |
| Accent foreground | #04150eblack | #04150eblack |
| Destructive | #d43511firebrick | #ef5e3etomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6ae272lightgreen | #6ae272lightgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.91:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 11.37:1 | AAA |
| Secondary button | 11.99:1 | AAA |
| Muted text | 4.94:1 | AA |
| Accent | 11.66:1 | AAA |
| Destructive | 4.85:1 | AA |
| Text on background | 20.24:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 11.37:1 | AAA |
| Secondary button | 11.99:1 | AAA |
| Muted text | 7.13:1 | AAA |
| Accent | 11.66:1 | AAA |
| Destructive | 6.35:1 | AA |
Paste this into your globals.css to use Lag in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.005 147.493);
--foreground: oklch(0.123 0.026 145.923);
--muted: oklch(0.938 0.027 131.337);
--muted-foreground: oklch(0.5 0.043 131.892);
--popover: oklch(0.994 0.005 147.493);
--popover-foreground: oklch(0.123 0.026 145.923);
--card: oklch(0.994 0.005 147.493);
--card-foreground: oklch(0.123 0.026 145.923);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.817 0.186 144.881);
--primary-foreground: oklch(0.176 0.041 145.315);
--secondary: oklch(0.841 0.167 133.344);
--secondary-foreground: oklch(0.182 0.037 132.07);
--accent: oklch(0.828 0.132 162.811);
--accent-foreground: oklch(0.179 0.029 164.357);
--destructive: oklch(0.573 0.201 33.271);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.817 0.186 144.881);
--chart-1: oklch(0.817 0.186 144.881);
--chart-2: oklch(0.841 0.167 133.344);
--chart-3: oklch(0.828 0.132 162.811);
--chart-4: oklch(0.853 0.154 133.051);
--chart-5: oklch(0.822 0.193 144.781);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.019 146.357);
--foreground: oklch(1 0 180);
--muted: oklch(0.239 0.036 132.636);
--muted-foreground: oklch(0.739 0.04 131.568);
--popover: oklch(0.121 0.019 146.357);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.121 0.019 146.357);
--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.817 0.186 144.881);
--primary-foreground: oklch(0.176 0.041 145.315);
--secondary: oklch(0.841 0.167 133.344);
--secondary-foreground: oklch(0.182 0.037 132.07);
--accent: oklch(0.828 0.132 162.811);
--accent-foreground: oklch(0.179 0.029 164.357);
--destructive: oklch(0.665 0.186 34.152);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.817 0.186 144.881);
--chart-1: oklch(0.817 0.186 144.881);
--chart-2: oklch(0.841 0.167 133.344);
--chart-3: oklch(0.828 0.132 162.811);
--chart-4: oklch(0.853 0.154 133.051);
--chart-5: oklch(0.822 0.193 144.781);
}