Elliptical is a shadcn/ui theme built around a muted blue primary color (#484c60) with muted green accents (#4c6048). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the muted blue primary (#484c60) on a blue-tinted background (#05060a).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f8fcghostwhite | #05060ablack |
| Foreground | #010204black | #f5f6fawhitesmoke |
| Card | #f8f8fcghostwhite | #05060ablack |
| Card foreground | #010204black | #f5f6fawhitesmoke |
| Popover | #f8f8fcghostwhite | #05060ablack |
| Popover foreground | #010204black | #f5f6fawhitesmoke |
| Primary | #484c60darkslategray | #484c60darkslategray |
| Primary foreground | #ebebf0lavender | #ebebf0lavender |
| Secondary | #60484cdimgray | #60484cdimgray |
| Secondary foreground | #f0ebeblinen | #f0ebeblinen |
| Muted | #ebe5e6linen | #1a1415black |
| Muted foreground | #654e52dimgray | #b19a9edarkgray |
| Accent | #4c6048darkolivegreen | #4c6048darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d30d0dfirebrick | #f22c2ccrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #484c60darkslategray | #484c60darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.63:1 | AAA |
| Text on card | 19.63:1 | AAA |
| Primary button | 7.10:1 | AAA |
| Secondary button | 7.00:1 | AAA |
| Muted text | 6.11:1 | AA |
| Accent | 6.82:1 | AA |
| Destructive | 5.47:1 | AA |
| Text on background | 18.76:1 | AAA |
| Text on card | 18.76:1 | AAA |
| Primary button | 7.10:1 | AAA |
| Secondary button | 7.00:1 | AAA |
| Muted text | 6.91:1 | AA |
| Accent | 6.82:1 | AA |
| Destructive | 4.07:1 | AA Large |
Paste this into your globals.css to use Elliptical in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.005 277.191);
--foreground: oklch(0.08 0.013 270.589);
--muted: oklch(0.927 0.006 5.619);
--muted-foreground: oklch(0.448 0.032 7.254);
--popover: oklch(0.981 0.005 277.191);
--popover-foreground: oklch(0.08 0.013 270.589);
--card: oklch(0.981 0.005 277.191);
--card-foreground: oklch(0.08 0.013 270.589);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.422 0.033 276.045);
--primary-foreground: oklch(0.942 0.006 277.177);
--secondary: oklch(0.429 0.033 7.386);
--secondary-foreground: oklch(0.943 0.005 5.6);
--accent: oklch(0.465 0.044 140.394);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.548 0.22 28.723);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.422 0.033 276.045);
--chart-1: oklch(0.422 0.033 276.045);
--chart-2: oklch(0.429 0.033 7.386);
--chart-3: oklch(0.465 0.044 140.394);
--chart-4: oklch(0.456 0.035 7.411);
--chart-5: oklch(0.417 0.04 275.723);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.012 273.634);
--foreground: oklch(0.973 0.005 277.189);
--muted: oklch(0.199 0.009 6.62);
--muted-foreground: oklch(0.708 0.028 6.458);
--popover: oklch(0.122 0.012 273.634);
--popover-foreground: oklch(0.973 0.005 277.189);
--card: oklch(0.122 0.012 273.634);
--card-foreground: oklch(0.973 0.005 277.189);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.422 0.033 276.045);
--primary-foreground: oklch(0.942 0.006 277.177);
--secondary: oklch(0.429 0.033 7.386);
--secondary-foreground: oklch(0.943 0.005 5.6);
--accent: oklch(0.465 0.044 140.394);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.62 0.23 27.236);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.422 0.033 276.045);
--chart-1: oklch(0.422 0.033 276.045);
--chart-2: oklch(0.429 0.033 7.386);
--chart-3: oklch(0.465 0.044 140.394);
--chart-4: oklch(0.456 0.035 7.411);
--chart-5: oklch(0.417 0.04 275.723);
}