Expansionism is a shadcn/ui theme built around a green primary color (#38b749) with red accents (#b74938). The light mode uses a neutral background (#fbfefc). Dark mode keeps the green primary (#38b749) on a green-tinted background (#060e07).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #060e07black |
| Foreground | #061408black | #f9fbf9mintcream |
| Card | #fbfefcwhite | #060e07black |
| Card foreground | #061408black | #f9fbf9mintcream |
| Popover | #fbfefcwhite | #060e07black |
| Popover foreground | #061408black | #f9fbf9mintcream |
| Primary | #38b749limegreen | #38b749limegreen |
| Primary foreground | #081b0bblack | #081b0bblack |
| Secondary | #4938b7rebeccapurple | #4938b7rebeccapurple |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e8e6f4lavender | #0d0b19black |
| Muted foreground | #62606cdimgray | #95939fdarkgray |
| Accent | #b74938sienna | #b74938sienna |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #cf1a02firebrick | #ed1e02red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #38b749limegreen | #38b749limegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.57:1 | AAA |
| Text on card | 18.57:1 | AAA |
| Primary button | 6.88:1 | AA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 5.01:1 | AA |
| Accent | 5.19:1 | AA |
| Destructive | 5.52:1 | AA |
| Text on background | 18.77:1 | AAA |
| Text on card | 18.77:1 | AAA |
| Primary button | 6.88:1 | AA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 6.44:1 | AA |
| Accent | 5.19:1 | AA |
| Destructive | 4.37:1 | AA Large |
Paste this into your globals.css to use Expansionism in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 149.637);
--foreground: oklch(0.172 0.032 147.661);
--muted: oklch(0.931 0.018 292.172);
--muted-foreground: oklch(0.494 0.019 291.796);
--popover: oklch(0.994 0.004 149.637);
--popover-foreground: oklch(0.172 0.032 147.661);
--card: oklch(0.994 0.004 149.637);
--card-foreground: oklch(0.172 0.032 147.661);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.688 0.187 145.251);
--primary-foreground: oklch(0.202 0.041 146.798);
--secondary: oklch(0.444 0.19 281.41);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.55 0.146 31.032);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.545 0.213 30.723);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.688 0.187 145.251);
--chart-1: oklch(0.688 0.187 145.251);
--chart-2: oklch(0.444 0.19 281.41);
--chart-3: oklch(0.55 0.146 31.032);
--chart-4: oklch(0.464 0.2 281.304);
--chart-5: oklch(0.697 0.194 145.058);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.154 0.021 148.521);
--foreground: oklch(0.986 0.004 149.636);
--muted: oklch(0.16 0.028 288.888);
--muted-foreground: oklch(0.668 0.018 292.034);
--popover: oklch(0.154 0.021 148.521);
--popover-foreground: oklch(0.986 0.004 149.636);
--card: oklch(0.154 0.021 148.521);
--card-foreground: oklch(0.986 0.004 149.636);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.688 0.187 145.251);
--primary-foreground: oklch(0.202 0.041 146.798);
--secondary: oklch(0.444 0.19 281.41);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.55 0.146 31.032);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.603 0.236 30.606);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.688 0.187 145.251);
--chart-1: oklch(0.688 0.187 145.251);
--chart-2: oklch(0.444 0.19 281.41);
--chart-3: oklch(0.55 0.146 31.032);
--chart-4: oklch(0.464 0.2 281.304);
--chart-5: oklch(0.697 0.194 145.058);
}