Lucky is a shadcn/ui theme built around a muted light teal primary color (#cadedd) with muted light red accents (#decaca). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light teal primary (#cadedd) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #061413black | #fcfdfdwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #061413black | #fcfdfdwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #061413black | #fcfdfdwhite |
| Primary | #cadeddlightgrey | #cadeddlightgrey |
| Primary foreground | #2d4848darkslategray | #2d4848darkslategray |
| Secondary | #decacalightgrey | #decacalightgrey |
| Secondary foreground | #482d2edarkslategray | #482d2edarkslategray |
| Muted | #e1dadagainsboro | #251e1eblack |
| Muted foreground | #6d5051dimgray | #af9293rosybrown |
| Accent | #decacalightgrey | #decacalightgrey |
| Accent foreground | #482d2edarkslategray | #482d2edarkslategray |
| Destructive | #871b08darkred | #f13413orangered |
| Destructive foreground | #fccdc5pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cadeddlightgrey | #cadeddlightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.79:1 | AAA |
| Text on card | 18.79:1 | AAA |
| Primary button | 7.01:1 | AAA |
| Secondary button | 7.90:1 | AAA |
| Muted text | 5.24:1 | AA |
| Accent | 7.90:1 | AAA |
| Destructive | 6.70:1 | AA |
| Text on background | 20.60:1 | AAA |
| Text on card | 20.60:1 | AAA |
| Primary button | 7.01:1 | AAA |
| Secondary button | 7.90:1 | AAA |
| Muted text | 5.76:1 | AA |
| Accent | 7.90:1 | AAA |
| Destructive | 3.99:1 | AA Large |
Paste this into your globals.css to use Lucky in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.176 0.02 194.166);
--muted: oklch(0.895 0.008 16.132);
--muted-foreground: oklch(0.462 0.038 17.529);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.176 0.02 194.166);
--card: oklch(1 0 180);
--card-foreground: oklch(0.176 0.02 194.166);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.884 0.021 195.558);
--primary-foreground: oklch(0.38 0.033 194.53);
--secondary: oklch(0.855 0.022 16.443);
--secondary-foreground: oklch(0.331 0.04 18.342);
--accent: oklch(0.855 0.022 16.443);
--accent-foreground: oklch(0.331 0.04 18.342);
--destructive: oklch(0.407 0.146 32.122);
--destructive-foreground: oklch(0.887 0.054 29.807);
--ring: oklch(0.884 0.021 195.558);
--chart-1: oklch(0.884 0.021 195.558);
--chart-2: oklch(0.855 0.022 16.443);
--chart-3: oklch(0.855 0.022 16.443);
--chart-4: oklch(0.881 0.018 16.343);
--chart-5: oklch(0.887 0.024 195.507);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 195.955);
--muted: oklch(0.242 0.011 16.832);
--muted-foreground: oklch(0.687 0.034 16.878);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.001 195.955);
--card: oklch(0 0 0);
--card-foreground: oklch(0.993 0.001 195.955);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.884 0.021 195.558);
--primary-foreground: oklch(0.38 0.033 194.53);
--secondary: oklch(0.855 0.022 16.443);
--secondary-foreground: oklch(0.331 0.04 18.342);
--accent: oklch(0.855 0.022 16.443);
--accent-foreground: oklch(0.331 0.04 18.342);
--destructive: oklch(0.623 0.227 31.953);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.884 0.021 195.558);
--chart-1: oklch(0.884 0.021 195.558);
--chart-2: oklch(0.855 0.022 16.443);
--chart-3: oklch(0.855 0.022 16.443);
--chart-4: oklch(0.881 0.018 16.343);
--chart-5: oklch(0.887 0.024 195.507);
}