Elixir is a shadcn/ui theme built around a green primary color (#49b941) with green accents (#41b975). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the green primary (#49b941) on a neutral background (#010401).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf8mintcream | #010401black |
| Foreground | #061505black | #f5faf5whitesmoke |
| Card | #f5faf4whitesmoke | #030802black |
| Card foreground | #051104black | #f9fbf8mintcream |
| Popover | #f5faf4whitesmoke | #030802black |
| Popover foreground | #051104black | #f9fbf8mintcream |
| Primary | #49b941limegreen | #49b941limegreen |
| Primary foreground | #0d220cblack | #0d220cblack |
| Secondary | #85b941yellowgreen | #85b941yellowgreen |
| Secondary foreground | #18220cblack | #18220cblack |
| Muted | #eef3e7linen | #13180cblack |
| Muted foreground | #535b48darkolivegreen | #afb7a4darkgray |
| Accent | #41b975mediumseagreen | #41b975mediumseagreen |
| Accent foreground | #0c2215black | #0c2215black |
| Destructive | #b02203firebrick | #fc4a22orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #49b941limegreen | #49b941limegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.13:1 | AAA |
| Text on card | 18.28:1 | AAA |
| Primary button | 6.62:1 | AA |
| Secondary button | 7.07:1 | AAA |
| Muted text | 6.30:1 | AA |
| Accent | 6.70:1 | AA |
| Destructive | 6.82:1 | AA |
| Text on background | 19.49:1 | AAA |
| Text on card | 19.42:1 | AAA |
| Primary button | 6.62:1 | AA |
| Secondary button | 7.07:1 | AAA |
| Muted text | 8.71:1 | AAA |
| Accent | 6.70:1 | AA |
| Destructive | 3.42:1 | AA Large |
Paste this into your globals.css to use Elixir in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.007 143.601);
--foreground: oklch(0.176 0.04 141.908);
--muted: oklch(0.958 0.017 125.977);
--muted-foreground: oklch(0.459 0.033 126.718);
--popover: oklch(0.98 0.01 143.583);
--popover-foreground: oklch(0.159 0.035 141.801);
--card: oklch(0.98 0.01 143.583);
--card-foreground: oklch(0.159 0.035 141.801);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.696 0.189 142.21);
--primary-foreground: oklch(0.228 0.049 142.471);
--secondary: oklch(0.725 0.159 129.663);
--secondary-foreground: oklch(0.236 0.041 128.47);
--accent: oklch(0.702 0.146 154.711);
--accent-foreground: oklch(0.229 0.037 156.84);
--destructive: oklch(0.491 0.18 32.758);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.696 0.189 142.21);
--chart-1: oklch(0.696 0.189 142.21);
--chart-2: oklch(0.725 0.159 129.663);
--chart-3: oklch(0.702 0.146 154.711);
--chart-4: oklch(0.746 0.157 129.386);
--chart-5: oklch(0.705 0.197 142.18);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.019 141.869);
--foreground: oklch(0.98 0.008 143.595);
--muted: oklch(0.199 0.024 127.515);
--muted-foreground: oklch(0.768 0.029 126.248);
--popover: oklch(0.123 0.024 141.869);
--popover-foreground: oklch(0.986 0.005 143.609);
--card: oklch(0.123 0.024 141.869);
--card-foreground: oklch(0.986 0.005 143.609);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.696 0.189 142.21);
--primary-foreground: oklch(0.228 0.049 142.471);
--secondary: oklch(0.725 0.159 129.663);
--secondary-foreground: oklch(0.236 0.041 128.47);
--accent: oklch(0.702 0.146 154.711);
--accent-foreground: oklch(0.229 0.037 156.84);
--destructive: oklch(0.66 0.22 33.699);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.696 0.189 142.21);
--chart-1: oklch(0.696 0.189 142.21);
--chart-2: oklch(0.725 0.159 129.663);
--chart-3: oklch(0.702 0.146 154.711);
--chart-4: oklch(0.746 0.157 129.386);
--chart-5: oklch(0.705 0.197 142.18);
}