Lantern is a shadcn/ui theme built around a deep red primary color (#652020) with deep indigo accents (#202065). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep red primary (#652020) on a red-tinted background (#0c0303).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c0303black |
| Foreground | #090202black | #fdfcfcsnow |
| Card | #ffffffwhite | #0c0303black |
| Card foreground | #090202black | #fdfcfcsnow |
| Popover | #ffffffwhite | #0c0303black |
| Popover foreground | #090202black | #fdfcfcsnow |
| Primary | #652020maroon | #652020maroon |
| Primary foreground | #eec9c9pink | #eec9c9pink |
| Secondary | #206520forestgreen | #206520forestgreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dae7dagainsboro | #182518black |
| Muted foreground | #4f544fdarkslategray | #abb0abdarkgray |
| Accent | #202065midnightblue | #202065midnightblue |
| Accent foreground | #c9c9eethistle | #c9c9eethistle |
| Destructive | #711f04maroon | #dd3d08orangered |
| Destructive foreground | #fcbfablightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #652020maroon | #652020maroon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.56:1 | AAA |
| Text on card | 20.56:1 | AAA |
| Primary button | 7.78:1 | AAA |
| Secondary button | 7.15:1 | AAA |
| Muted text | 6.05:1 | AA |
| Accent | 8.99:1 | AAA |
| Destructive | 6.91:1 | AA |
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 7.78:1 | AAA |
| Secondary button | 7.15:1 | AAA |
| Muted text | 7.21:1 | AAA |
| Accent | 8.99:1 | AAA |
| Destructive | 4.40:1 | AA Large |
Paste this into your globals.css to use Lantern in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.1 0.023 22.07);
--muted: oklch(0.915 0.023 145.384);
--muted-foreground: oklch(0.44 0.01 145.402);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.1 0.023 22.07);
--card: oklch(1 0 180);
--card-foreground: oklch(0.1 0.023 22.07);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.351 0.1 23.803);
--primary-foreground: oklch(0.867 0.042 17.995);
--secondary: oklch(0.447 0.123 143.165);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.293 0.118 276.273);
--accent-foreground: oklch(0.847 0.051 285.25);
--destructive: oklch(0.37 0.12 36.771);
--destructive-foreground: oklch(0.856 0.075 39.225);
--ring: oklch(0.351 0.1 23.803);
--chart-1: oklch(0.351 0.1 23.803);
--chart-2: oklch(0.447 0.123 143.165);
--chart-3: oklch(0.293 0.118 276.273);
--chart-4: oklch(0.482 0.134 143.138);
--chart-5: oklch(0.351 0.105 24.28);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.118 0.022 20.929);
--foreground: oklch(0.992 0.001 17.172);
--muted: oklch(0.249 0.031 144.565);
--muted-foreground: oklch(0.751 0.009 145.487);
--popover: oklch(0.118 0.022 20.929);
--popover-foreground: oklch(0.992 0.001 17.172);
--card: oklch(0.118 0.022 20.929);
--card-foreground: oklch(0.992 0.001 17.172);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.351 0.1 23.803);
--primary-foreground: oklch(0.867 0.042 17.995);
--secondary: oklch(0.447 0.123 143.165);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.293 0.118 276.273);
--accent-foreground: oklch(0.847 0.051 285.25);
--destructive: oklch(0.596 0.204 35.398);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.351 0.1 23.803);
--chart-1: oklch(0.351 0.1 23.803);
--chart-2: oklch(0.447 0.123 143.165);
--chart-3: oklch(0.293 0.118 276.273);
--chart-4: oklch(0.482 0.134 143.138);
--chart-5: oklch(0.351 0.105 24.28);
}