Ecliptic is a shadcn/ui theme built around a vivid teal primary color (#129764) with vivid pink accents (#971245). The light mode uses a neutral background (#f7fdfb). Dark mode keeps the vivid teal primary (#129764) on a teal-tinted background (#04100c).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfbmintcream | #04100cblack |
| Foreground | #010906black | #f9fbfamintcream |
| Card | #f3fbf8mintcream | #05140fblack |
| Card foreground | #010403black | #fcfdfdwhite |
| Popover | #f7fdfbmintcream | #04100cblack |
| Popover foreground | #010906black | #f9fbfamintcream |
| Primary | #129764seagreen | #129764seagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #971245brown | #971245brown |
| Secondary foreground | #fbdfeamistyrose | #fbdfeamistyrose |
| Muted | #ebd1dbgainsboro | #2e141eblack |
| Muted foreground | #523d45darkslategray | #c2adb5silver |
| Accent | #971245brown | #971245brown |
| Accent foreground | #fbdfeamistyrose | #fbdfeamistyrose |
| Destructive | #5d1609maroon | #d53215firebrick |
| Destructive foreground | #f6afa2lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #129764seagreen | #129764seagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.50:1 | AAA |
| Text on card | 19.62:1 | AAA |
| Primary button | 3.74:1 | AA Large |
| Secondary button | 6.79:1 | AA |
| Muted text | 6.92:1 | AA |
| Accent | 6.79:1 | AA |
| Destructive | 7.32:1 | AAA |
| Text on background | 18.60:1 | AAA |
| Text on card | 18.47:1 | AAA |
| Primary button | 3.74:1 | AA Large |
| Secondary button | 6.79:1 | AA |
| Muted text | 8.03:1 | AAA |
| Accent | 6.79:1 | AA |
| Destructive | 4.87:1 | AA |
Paste this into your globals.css to use Ecliptic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.006 171.414);
--foreground: oklch(0.127 0.02 171.934);
--muted: oklch(0.884 0.032 352.61);
--muted-foreground: oklch(0.385 0.033 353.883);
--popover: oklch(0.988 0.006 171.414);
--popover-foreground: oklch(0.127 0.02 171.934);
--card: oklch(0.982 0.009 171.322);
--card-foreground: oklch(0.101 0.016 171.934);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.597 0.131 160.018);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.441 0.166 6.032);
--secondary-foreground: oklch(0.93 0.034 352.609);
--accent: oklch(0.441 0.166 6.032);
--accent-foreground: oklch(0.93 0.034 352.609);
--destructive: oklch(0.319 0.105 32.381);
--destructive-foreground: oklch(0.817 0.086 30.208);
--ring: oklch(0.597 0.131 160.018);
--chart-1: oklch(0.597 0.131 160.018);
--chart-2: oklch(0.441 0.166 6.032);
--chart-3: oklch(0.441 0.166 6.032);
--chart-4: oklch(0.47 0.178 6.242);
--chart-5: oklch(0.604 0.134 159.632);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.16 0.022 169.083);
--foreground: oklch(0.986 0.003 171.504);
--muted: oklch(0.234 0.046 356.884);
--muted-foreground: oklch(0.768 0.027 352.573);
--popover: oklch(0.16 0.022 169.083);
--popover-foreground: oklch(0.986 0.003 171.504);
--card: oklch(0.176 0.025 167.54);
--card-foreground: oklch(0.993 0.001 171.548);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.597 0.131 160.018);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.441 0.166 6.032);
--secondary-foreground: oklch(0.93 0.034 352.609);
--accent: oklch(0.441 0.166 6.032);
--accent-foreground: oklch(0.93 0.034 352.609);
--destructive: oklch(0.573 0.203 32.143);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.597 0.131 160.018);
--chart-1: oklch(0.597 0.131 160.018);
--chart-2: oklch(0.441 0.166 6.032);
--chart-3: oklch(0.441 0.166 6.032);
--chart-4: oklch(0.47 0.178 6.242);
--chart-5: oklch(0.604 0.134 159.632);
}