Rival Good Luck Charm is a shadcn/ui theme built around a green primary color (#86ca95) with muted light green accents (#c5d3c8). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#86ca95) on a green-tinted background (#050a06).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050a06black |
| Foreground | #010903black | #ffffffwhite |
| Card | #fcfcfcsnow | #070e08black |
| Card foreground | #010401black | #ffffffwhite |
| Popover | #fcfcfcsnow | #070e08black |
| Popover foreground | #010401black | #ffffffwhite |
| Primary | #86ca95darkseagreen | #86ca95darkseagreen |
| Primary foreground | #09150cblack | #09150cblack |
| Secondary | #d7dad8gainsboro | #263629darkslategray |
| Secondary foreground | #3d423edarkslategray | #bdd1c1silver |
| Muted | #d8e8dcgainsboro | #17271ablack |
| Muted foreground | #4c574edarkslategray | #a8b3aadarkgray |
| Accent | #c5d3c8lightgrey | #2f5136darkslategray |
| Accent foreground | #2c3a2fdarkslategray | #cee3d3lightgrey |
| Destructive | #a02708firebrick | #f34316orangered |
| Destructive foreground | #fde4ddmistyrose | #ffffffwhite |
| Border | #e9ecealavender | #232925darkslategray |
| Input | #e9ecealavender | #232925darkslategray |
| Ring | #86ca95darkseagreen | #86ca95darkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.15:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 9.70:1 | AAA |
| Secondary button | 7.29:1 | AAA |
| Muted text | 5.95:1 | AA |
| Accent | 7.71:1 | AAA |
| Destructive | 6.22:1 | AA |
| Text on background | 19.92:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 9.70:1 | AAA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 7.26:1 | AAA |
| Accent | 6.62:1 | AA |
| Destructive | 3.74:1 | AA Large |
Paste this into your globals.css to use Rival Good Luck Charm in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.125 0.026 151.574);
--muted: oklch(0.917 0.024 152.205);
--muted-foreground: oklch(0.445 0.02 151.878);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.099 0.021 151.574);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.099 0.021 151.574);
--border: oklch(0.941 0.005 152.536);
--input: oklch(0.941 0.005 152.536);
--primary: oklch(0.78 0.102 150.324);
--primary-foreground: oklch(0.182 0.026 150.127);
--secondary: oklch(0.886 0.005 152.535);
--secondary-foreground: oklch(0.374 0.01 152.212);
--accent: oklch(0.853 0.022 152.212);
--accent-foreground: oklch(0.332 0.027 151.256);
--destructive: oklch(0.465 0.162 33.848);
--destructive-foreground: oklch(0.937 0.03 34.303);
--ring: oklch(0.78 0.102 150.324);
--chart-1: oklch(0.78 0.102 150.324);
--chart-2: oklch(0.886 0.005 152.535);
--chart-3: oklch(0.853 0.022 152.212);
--chart-4: oklch(0.909 0.004 152.553);
--chart-5: oklch(0.784 0.109 150.151);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.014 152.129);
--foreground: oklch(1 0 180);
--muted: oklch(0.252 0.032 150.412);
--muted-foreground: oklch(0.755 0.018 152.24);
--popover: oklch(0.152 0.016 151.657);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.152 0.016 151.657);
--card-foreground: oklch(1 0 180);
--border: oklch(0.274 0.012 151.893);
--input: oklch(0.274 0.012 151.893);
--primary: oklch(0.78 0.102 150.324);
--primary-foreground: oklch(0.182 0.026 150.127);
--secondary: oklch(0.315 0.032 150.909);
--secondary-foreground: oklch(0.841 0.031 152.03);
--accent: oklch(0.4 0.061 149.89);
--accent-foreground: oklch(0.896 0.031 152.064);
--destructive: oklch(0.638 0.218 34.022);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.78 0.102 150.324);
--chart-1: oklch(0.78 0.102 150.324);
--chart-2: oklch(0.315 0.032 150.909);
--chart-3: oklch(0.4 0.061 149.89);
--chart-4: oklch(0.347 0.036 150.85);
--chart-5: oklch(0.784 0.109 150.151);
}