Eclipse Dark is a shadcn/ui theme built around a near-white primary color (#ffffff) with neutral gray accents (#545454). The light mode uses a neutral background (#2e2e2e). Dark mode keeps the near-white primary (#ffffff) on a neutral background (#2e2e2e).
| Token | Light | Dark |
|---|---|---|
| Background | #2e2e2edarkslategray | #2e2e2edarkslategray |
| Foreground | #d9e8f7lavender | #d9e8f7lavender |
| Card | #292929darkslategray | #292929darkslategray |
| Card foreground | #eef5fbaliceblue | #eef5fbaliceblue |
| Popover | #262626darkslategray | #262626darkslategray |
| Popover foreground | #ffffffwhite | #ffffffwhite |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #3f3131darkslategray | #3f3131darkslategray |
| Muted foreground | #c0afafsilver | #c0afafsilver |
| Accent | #545454dimgray | #545454dimgray |
| Accent foreground | #edededwhitesmoke | #edededwhitesmoke |
| Destructive | #e40b07red | #e40b07red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #3b3b3bdarkslategray | #3b3b3bdarkslategray |
| Input | #424242darkslategray | #424242darkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 10.90:1 | AAA |
| Text on card | 13.26:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.87:1 | AA |
| Accent | 6.45:1 | AA |
| Destructive | 4.84:1 | AA |
| Text on background | 10.90:1 | AAA |
| Text on card | 13.26:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.87:1 | AA |
| Accent | 6.45:1 | AA |
| Destructive | 4.84:1 | AA |
Paste this into your globals.css to use Eclipse Dark in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.301 0 189.462);
--foreground: oklch(0.924 0.026 248.108);
--muted: oklch(0.33 0.02 18.192);
--muted-foreground: oklch(0.769 0.02 17.59);
--popover: oklch(0.27 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.28 0 180);
--card-foreground: oklch(0.966 0.011 247.944);
--border: oklch(0.351 0 167.471);
--input: oklch(0.38 0 180);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.446 0 180);
--accent-foreground: oklch(0.947 0 180);
--destructive: oklch(0.579 0.234 29.156);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.446 0 180);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.301 0 189.462);
--foreground: oklch(0.924 0.026 248.108);
--muted: oklch(0.33 0.02 18.192);
--muted-foreground: oklch(0.769 0.02 17.59);
--popover: oklch(0.27 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.28 0 180);
--card-foreground: oklch(0.966 0.011 247.944);
--border: oklch(0.351 0 167.471);
--input: oklch(0.38 0 180);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.446 0 180);
--accent-foreground: oklch(0.947 0 180);
--destructive: oklch(0.579 0.234 29.156);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.446 0 180);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}