Lantern is a shadcn/ui theme built around a muted deep red primary color (#1a0f0f) with muted deep teal accents (#0f1a1a). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the muted deep red primary (#1a0f0f) on a neutral background (#040101).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfcsnow | #040101black |
| Foreground | #160404black | #ffffffwhite |
| Card | #fdfcfcsnow | #040101black |
| Card foreground | #160404black | #ffffffwhite |
| Popover | #fdfcfcsnow | #040101black |
| Popover foreground | #160404black | #ffffffwhite |
| Primary | #1a0f0fblack | #1a0f0fblack |
| Primary foreground | #c49797rosybrown | #c49797rosybrown |
| Secondary | #0f1a1ablack | #0f1a1ablack |
| Secondary foreground | #97c4c3lightsteelblue | #97c4c3lightsteelblue |
| Muted | #eaf5f5whitesmoke | #0a1514black |
| Muted foreground | #485656darkslategray | #a9b7b7darkgray |
| Accent | #0f1a1ablack | #0f1a1ablack |
| Accent foreground | #97c4c3lightsteelblue | #97c4c3lightsteelblue |
| Destructive | #c82504firebrick | #fa431eorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1a0f0fblack | #1a0f0fblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.42:1 | AAA |
| Text on card | 19.42:1 | AAA |
| Primary button | 7.35:1 | AAA |
| Secondary button | 9.29:1 | AAA |
| Muted text | 6.88:1 | AA |
| Accent | 9.29:1 | AAA |
| Destructive | 5.65:1 | AA |
| Text on background | 20.76:1 | AAA |
| Text on card | 20.76:1 | AAA |
| Primary button | 7.35:1 | AAA |
| Secondary button | 9.29:1 | AAA |
| Muted text | 9.00:1 | AAA |
| Accent | 9.29:1 | AAA |
| Destructive | 3.56:1 | AA Large |
Paste this into your globals.css to use Lantern in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 16.007);
--foreground: oklch(0.141 0.037 21.57);
--muted: oklch(0.962 0.011 195.775);
--muted-foreground: oklch(0.441 0.018 195.285);
--popover: oklch(0.991 0.002 16.007);
--popover-foreground: oklch(0.141 0.037 21.57);
--card: oklch(0.991 0.002 16.007);
--card-foreground: oklch(0.141 0.037 21.57);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.183 0.02 18.041);
--primary-foreground: oklch(0.718 0.055 17.41);
--secondary: oklch(0.207 0.016 194.649);
--secondary-foreground: oklch(0.788 0.048 194.941);
--accent: oklch(0.207 0.016 194.649);
--accent-foreground: oklch(0.788 0.048 194.941);
--destructive: oklch(0.538 0.201 32.075);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.183 0.02 18.041);
--chart-1: oklch(0.183 0.02 18.041);
--chart-2: oklch(0.207 0.016 194.649);
--chart-3: oklch(0.207 0.016 194.649);
--chart-4: oklch(0.246 0.021 194.524);
--chart-5: oklch(0.182 0.022 18.313);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.084 0.011 18.243);
--foreground: oklch(1 0 180);
--muted: oklch(0.183 0.015 194.579);
--muted-foreground: oklch(0.769 0.016 195.618);
--popover: oklch(0.084 0.011 18.243);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.084 0.011 18.243);
--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.183 0.02 18.041);
--primary-foreground: oklch(0.718 0.055 17.41);
--secondary: oklch(0.207 0.016 194.649);
--secondary-foreground: oklch(0.788 0.048 194.941);
--accent: oklch(0.207 0.016 194.649);
--accent-foreground: oklch(0.788 0.048 194.941);
--destructive: oklch(0.651 0.225 32.871);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.183 0.02 18.041);
--chart-1: oklch(0.183 0.02 18.041);
--chart-2: oklch(0.207 0.016 194.649);
--chart-3: oklch(0.207 0.016 194.649);
--chart-4: oklch(0.246 0.021 194.524);
--chart-5: oklch(0.182 0.022 18.313);
}