Engine is a shadcn/ui theme built around a muted light green primary color (#f2f4ec) with muted light indigo accents (#edecf4). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the muted light green primary (#f2f4ec) on a green-tinted background (#090a05).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcf8snow | #090a05black |
| Foreground | #0a0c03black | #fbfbf9snow |
| Card | #f9fbf4whitesmoke | #0c0e07black |
| Card foreground | #070802black | #fdfdfcwhite |
| Popover | #fbfcf8snow | #090a05black |
| Popover foreground | #0a0c03black | #fbfbf9snow |
| Primary | #f2f4ecwhitesmoke | #f2f4ecwhitesmoke |
| Primary foreground | #292d1adarkslategray | #292d1adarkslategray |
| Secondary | #edecf4lavender | #edecf4lavender |
| Secondary foreground | #4a3f6edarkslateblue | #4a3f6edarkslateblue |
| Muted | #efeef2whitesmoke | #0e0d11black |
| Muted foreground | #403e47darkslategray | #bab8c1silver |
| Accent | #edecf4lavender | #edecf4lavender |
| Accent foreground | #4a3f6edarkslateblue | #4a3f6edarkslateblue |
| Destructive | #d65205chocolate | #e55806orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f2f4ecwhitesmoke | #f2f4ecwhitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.12:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 12.72:1 | AAA |
| Secondary button | 8.02:1 | AAA |
| Muted text | 9.06:1 | AAA |
| Accent | 8.02:1 | AAA |
| Destructive | 4.15:1 | AA Large |
| Text on background | 19.15:1 | AAA |
| Text on card | 19.11:1 | AAA |
| Primary button | 12.72:1 | AAA |
| Secondary button | 8.02:1 | AAA |
| Muted text | 9.86:1 | AAA |
| Accent | 8.02:1 | AAA |
| Destructive | 3.67:1 | AA Large |
Paste this into your globals.css to use Engine in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.006 117.191);
--foreground: oklch(0.149 0.023 117.875);
--muted: oklch(0.95 0.006 296.969);
--muted-foreground: oklch(0.368 0.016 296.294);
--popover: oklch(0.99 0.006 117.191);
--popover-foreground: oklch(0.149 0.023 117.875);
--card: oklch(0.984 0.009 117.247);
--card-foreground: oklch(0.13 0.02 117.414);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.963 0.011 117.286);
--primary-foreground: oklch(0.288 0.034 119.244);
--secondary: oklch(0.946 0.011 296.866);
--secondary-foreground: oklch(0.402 0.078 293.307);
--accent: oklch(0.946 0.011 296.866);
--accent-foreground: oklch(0.402 0.078 293.307);
--destructive: oklch(0.606 0.18 42.214);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.963 0.011 117.286);
--chart-1: oklch(0.963 0.011 117.286);
--chart-2: oklch(0.946 0.011 296.866);
--chart-3: oklch(0.946 0.011 296.866);
--chart-4: oklch(0.973 0.006 296.977);
--chart-5: oklch(0.964 0.012 117.309);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.013 117.279);
--foreground: oklch(0.988 0.004 117.146);
--muted: oklch(0.163 0.009 296.072);
--muted-foreground: oklch(0.787 0.013 296.778);
--popover: oklch(0.142 0.013 117.279);
--popover-foreground: oklch(0.988 0.004 117.146);
--card: oklch(0.157 0.015 118.255);
--card-foreground: oklch(0.994 0.002 117.112);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.963 0.011 117.286);
--primary-foreground: oklch(0.288 0.034 119.244);
--secondary: oklch(0.946 0.011 296.866);
--secondary-foreground: oklch(0.402 0.078 293.307);
--accent: oklch(0.946 0.011 296.866);
--accent-foreground: oklch(0.402 0.078 293.307);
--destructive: oklch(0.637 0.19 42.061);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.963 0.011 117.286);
--chart-1: oklch(0.963 0.011 117.286);
--chart-2: oklch(0.946 0.011 296.866);
--chart-3: oklch(0.946 0.011 296.866);
--chart-4: oklch(0.973 0.006 296.977);
--chart-5: oklch(0.964 0.012 117.309);
}