lg2 is a shadcn/ui theme built around a vivid deep blue primary color (#020817) with red accents (#d33131). The light mode uses a blue-tinted background (#f1f2f4). Dark mode switches to a deep blue primary (#141e29) on a blue-tinted background (#1f2937).
| Token | Light | Dark |
|---|---|---|
| Background | #f1f2f4whitesmoke | #1f2937darkslategray |
| Foreground | #1f2937darkslategray | #ffffffwhite |
| Card | #ffffffwhite | #232e3edarkslategray |
| Card foreground | #1f2937darkslategray | #ffffffwhite |
| Popover | #ffffffwhite | #232e3edarkslategray |
| Popover foreground | #1f2937darkslategray | #ffffffwhite |
| Primary | #020817black | #141e29black |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #1f2937darkslategray | #ffffffwhite |
| Secondary foreground | #ffffffwhite | #1f2937darkslategray |
| Muted | #edf3f0whitesmoke | #2e3d52darkslategray |
| Muted foreground | #5a6d64dimgray | #becadalightsteelblue |
| Accent | #d33131crimson | #d33131crimson |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #ef4343tomato | #ef4343tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e1e7eflavender | #2e3d52darkslategray |
| Input | #e1e7eflavender | #2e3d52darkslategray |
| Ring | #136c43darkslategray | #1b985dseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 13.06:1 | AAA |
| Text on card | 14.67:1 | AAA |
| Primary button | 19.95:1 | AAA |
| Secondary button | 14.61:1 | AAA |
| Muted text | 4.89:1 | AA |
| Accent | 4.93:1 | AA |
| Destructive | 3.78:1 | AA Large |
| Text on background | 14.61:1 | AAA |
| Text on card | 13.68:1 | AAA |
| Primary button | 16.84:1 | AAA |
| Secondary button | 14.67:1 | AAA |
| Muted text | 6.66:1 | AA |
| Accent | 4.93:1 | AA |
| Destructive | 3.78:1 | AA Large |
Paste this into your globals.css to use lg2 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.96 0.003 264.541);
--foreground: oklch(0.279 0.03 256.848);
--muted: oklch(0.958 0.008 166.693);
--muted-foreground: oklch(0.517 0.028 165.349);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.279 0.03 256.848);
--card: oklch(1 0 180);
--card-foreground: oklch(0.279 0.03 256.848);
--border: oklch(0.926 0.013 255.028);
--input: oklch(0.926 0.013 255.028);
--primary: oklch(0.138 0.036 258.487);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.279 0.03 256.848);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.57 0.199 26.251);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.636 0.208 25.378);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.472 0.105 157.034);
--chart-1: oklch(0.472 0.105 157.034);
--chart-2: oklch(0.279 0.03 256.848);
--chart-3: oklch(0.57 0.199 26.251);
--chart-4: oklch(0.308 0.034 256.852);
--chart-5: oklch(0.477 0.108 156.654);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.279 0.03 256.848);
--foreground: oklch(1 0 180);
--muted: oklch(0.355 0.041 256.857);
--muted-foreground: oklch(0.834 0.027 256.754);
--popover: oklch(0.299 0.033 256.851);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.299 0.033 256.851);
--card-foreground: oklch(1 0 180);
--border: oklch(0.355 0.041 256.857);
--input: oklch(0.355 0.041 256.857);
--primary: oklch(0.231 0.026 252.24);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(1 0 180);
--secondary-foreground: oklch(0.279 0.03 256.848);
--accent: oklch(0.57 0.199 26.251);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.636 0.208 25.378);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.6 0.136 156.553);
--chart-1: oklch(0.6 0.136 156.553);
--chart-2: oklch(1 0 180);
--chart-3: oklch(0.57 0.199 26.251);
--chart-4: oklch(1.023 0 180);
--chart-5: oklch(0.607 0.14 156.16);
}