Elliptical is a shadcn/ui theme built around a light green primary color (#d8f9e0) with light teal accents (#d8f9f1). The light mode uses a neutral background (#fbfefc). Dark mode keeps the light green primary (#d8f9e0) on a green-tinted background (#040b06).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #040b06black |
| Foreground | #021206black | #fcfdfcwhite |
| Card | #fbfefcwhite | #040b06black |
| Card foreground | #021206black | #fcfdfcwhite |
| Popover | #fbfefcwhite | #040b06black |
| Popover foreground | #021206black | #fcfdfcwhite |
| Primary | #d8f9e0honeydew | #d8f9e0honeydew |
| Primary foreground | #083013black | #083013black |
| Secondary | #dff9d8beige | #dff9d8beige |
| Secondary foreground | #113008black | #113008black |
| Muted | #dce8d9gainsboro | #1b2617black |
| Muted foreground | #495b43darkolivegreen | #aabca4darkgray |
| Accent | #d8f9f1lightcyan | #d8f9f1lightcyan |
| Accent foreground | #083027black | #083027black |
| Destructive | #811603maroon | #fa5538tomato |
| Destructive foreground | #fdc4b9lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d8f9e0honeydew | #d8f9e0honeydew |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.90:1 | AAA |
| Text on card | 18.90:1 | AAA |
| Primary button | 12.81:1 | AAA |
| Secondary button | 12.84:1 | AAA |
| Muted text | 5.80:1 | AA |
| Accent | 12.76:1 | AAA |
| Destructive | 6.69:1 | AA |
| Text on background | 19.47:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 12.81:1 | AAA |
| Secondary button | 12.84:1 | AAA |
| Muted text | 7.80:1 | AAA |
| Accent | 12.76:1 | AAA |
| Destructive | 6.42:1 | AA |
Paste this into your globals.css to use Elliptical in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 154.471);
--foreground: oklch(0.164 0.036 152.311);
--muted: oklch(0.918 0.024 138.358);
--muted-foreground: oklch(0.448 0.044 138.457);
--popover: oklch(0.994 0.003 154.471);
--popover-foreground: oklch(0.164 0.036 152.311);
--card: oklch(0.994 0.003 154.471);
--card-foreground: oklch(0.164 0.036 152.311);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.951 0.047 153.618);
--primary-foreground: oklch(0.274 0.069 148.387);
--secondary: oklch(0.954 0.051 138.39);
--secondary-foreground: oklch(0.276 0.075 139.307);
--accent: oklch(0.955 0.036 179.867);
--accent-foreground: oklch(0.28 0.047 173.701);
--destructive: oklch(0.392 0.144 32.191);
--destructive-foreground: oklch(0.868 0.068 29.953);
--ring: oklch(0.951 0.047 153.618);
--chart-1: oklch(0.951 0.047 153.618);
--chart-2: oklch(0.954 0.051 138.39);
--chart-3: oklch(0.955 0.036 179.867);
--chart-4: oklch(0.969 0.034 138.368);
--chart-5: oklch(0.951 0.049 153.58);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.02 153.901);
--foreground: oklch(0.993 0.002 154.487);
--muted: oklch(0.253 0.032 138.518);
--muted-foreground: oklch(0.774 0.039 138.386);
--popover: oklch(0.14 0.02 153.901);
--popover-foreground: oklch(0.993 0.002 154.487);
--card: oklch(0.14 0.02 153.901);
--card-foreground: oklch(0.993 0.002 154.487);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.951 0.047 153.618);
--primary-foreground: oklch(0.274 0.069 148.387);
--secondary: oklch(0.954 0.051 138.39);
--secondary-foreground: oklch(0.276 0.075 139.307);
--accent: oklch(0.955 0.036 179.867);
--accent-foreground: oklch(0.28 0.047 173.701);
--destructive: oklch(0.671 0.206 32.354);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.951 0.047 153.618);
--chart-1: oklch(0.951 0.047 153.618);
--chart-2: oklch(0.954 0.051 138.39);
--chart-3: oklch(0.955 0.036 179.867);
--chart-4: oklch(0.969 0.034 138.368);
--chart-5: oklch(0.951 0.049 153.58);
}