Ecliptic is a shadcn/ui theme built around a near-black primary color (#161818) with muted light teal accents (#e1e9ea). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the near-black primary (#161818) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfdwhite | #000000black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fcfdfdwhite | #000000black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfdfdwhite | #000000black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #161818black | #161818black |
| Primary foreground | #acb4b4darkgray | #acb4b4darkgray |
| Secondary | #e1e9ealavender | #262c2cdarkslategray |
| Secondary foreground | #405859darkslategray | #bdc6c7silver |
| Muted | #ecefefwhitesmoke | #101313black |
| Muted foreground | #587374dimgray | #8ba6a7darkgray |
| Accent | #e1e9ealavender | #262c2cdarkslategray |
| Accent foreground | #405859darkslategray | #bdc6c7silver |
| Destructive | #d40202red | #fd1212red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #161818black | #161818black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.62:1 | AAA |
| Text on card | 20.62:1 | AAA |
| Primary button | 8.44:1 | AAA |
| Secondary button | 6.19:1 | AA |
| Muted text | 4.39:1 | AA Large |
| Accent | 6.19:1 | AA |
| Destructive | 5.50:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 8.44:1 | AAA |
| Secondary button | 8.17:1 | AAA |
| Muted text | 7.19:1 | AAA |
| Accent | 8.17:1 | AAA |
| Destructive | 3.99:1 | AA Large |
Paste this into your globals.css to use Ecliptic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 199.583);
--foreground: oklch(0 0 0);
--muted: oklch(0.949 0.003 199.558);
--muted-foreground: oklch(0.535 0.032 198.872);
--popover: oklch(0.994 0.002 199.583);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.994 0.002 199.583);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.207 0.003 199.383);
--primary-foreground: oklch(0.763 0.009 199.453);
--secondary: oklch(0.929 0.008 199.482);
--secondary-foreground: oklch(0.441 0.029 198.82);
--accent: oklch(0.929 0.008 199.482);
--accent-foreground: oklch(0.441 0.029 198.82);
--destructive: oklch(0.547 0.224 29.153);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.207 0.003 199.383);
--chart-1: oklch(0.207 0.003 199.383);
--chart-2: oklch(0.929 0.008 199.482);
--chart-3: oklch(0.929 0.008 199.482);
--chart-4: oklch(0.95 0.006 199.521);
--chart-5: oklch(0.208 0.005 199.262);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.185 0.005 199.257);
--muted-foreground: oklch(0.706 0.031 199.055);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.207 0.003 199.383);
--primary-foreground: oklch(0.763 0.009 199.453);
--secondary: oklch(0.286 0.009 199.202);
--secondary-foreground: oklch(0.82 0.01 199.434);
--accent: oklch(0.286 0.009 199.202);
--accent-foreground: oklch(0.82 0.01 199.434);
--destructive: oklch(0.627 0.252 28.754);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.207 0.003 199.383);
--chart-1: oklch(0.207 0.003 199.383);
--chart-2: oklch(0.286 0.009 199.202);
--chart-3: oklch(0.286 0.009 199.202);
--chart-4: oklch(0.318 0.01 199.187);
--chart-5: oklch(0.208 0.005 199.262);
}