Elliptical is a shadcn/ui theme built around a near-black primary color (#010809) with muted light cyan accents (#d5dcdd). The light mode uses a neutral background (#f7fcfc). Dark mode keeps the near-black primary (#010809) on a neutral background (#010304).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fcfcmintcream | #010304black |
| Foreground | #010404black | #f8fbfcghostwhite |
| Card | #f4fafbmintcream | #030708black |
| Card foreground | #000000black | #fcfdfdwhite |
| Popover | #f7fcfcmintcream | #010304black |
| Popover foreground | #010404black | #f8fbfcghostwhite |
| Primary | #010809black | #010809black |
| Primary foreground | #14abc2lightseagreen | #14abc2lightseagreen |
| Secondary | #d5dcddgainsboro | #14191ablack |
| Secondary foreground | #394547darkslategray | #a5b8bbdarkgray |
| Muted | #deebedlavender | #121f21black |
| Muted foreground | #666666dimgray | #999999darkgray |
| Accent | #d5dcddgainsboro | #14191ablack |
| Accent foreground | #394547darkslategray | #a5b8bbdarkgray |
| Destructive | #672409maroon | #ef7443coral |
| Destructive foreground | #f8c0ablightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #010809black | #010809black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.86:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 7.33:1 | AAA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 4.70:1 | AA |
| Accent | 7.12:1 | AAA |
| Destructive | 7.16:1 | AAA |
| Text on background | 19.83:1 | AAA |
| Text on card | 19.87:1 | AAA |
| Primary button | 7.33:1 | AAA |
| Secondary button | 8.57:1 | AAA |
| Muted text | 5.92:1 | AA |
| Accent | 8.57:1 | AAA |
| Destructive | 7.23:1 | AAA |
Paste this into your globals.css to use Elliptical in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.005 207.913);
--foreground: oklch(0.097 0.01 204.749);
--muted: oklch(0.931 0.014 207.874);
--muted-foreground: oklch(0.51 0 171.87);
--popover: oklch(0.987 0.005 207.913);
--popover-foreground: oklch(0.097 0.01 204.749);
--card: oklch(0.981 0.007 207.903);
--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.125 0.018 203.846);
--primary-foreground: oklch(0.681 0.116 212.054);
--secondary: oklch(0.889 0.008 207.896);
--secondary-foreground: oklch(0.38 0.016 207.836);
--accent: oklch(0.889 0.008 207.896);
--accent-foreground: oklch(0.38 0.016 207.836);
--destructive: oklch(0.357 0.104 39.507);
--destructive-foreground: oklch(0.853 0.071 42.594);
--ring: oklch(0.125 0.018 203.846);
--chart-1: oklch(0.125 0.018 203.846);
--chart-2: oklch(0.889 0.008 207.896);
--chart-3: oklch(0.889 0.008 207.896);
--chart-4: oklch(0.911 0.006 207.904);
--chart-5: oklch(0.125 0.018 203.739);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.009 205.147);
--foreground: oklch(0.986 0.003 207.919);
--muted: oklch(0.228 0.019 207.997);
--muted-foreground: oklch(0.683 0 180);
--popover: oklch(0.096 0.009 205.147);
--popover-foreground: oklch(0.986 0.003 207.919);
--card: oklch(0.121 0.011 205.147);
--card-foreground: oklch(0.993 0.002 207.926);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.125 0.018 203.846);
--primary-foreground: oklch(0.681 0.116 212.054);
--secondary: oklch(0.209 0.009 207.836);
--secondary-foreground: oklch(0.769 0.022 207.845);
--accent: oklch(0.209 0.009 207.836);
--accent-foreground: oklch(0.769 0.022 207.845);
--destructive: oklch(0.695 0.164 41.205);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.125 0.018 203.846);
--chart-1: oklch(0.125 0.018 203.846);
--chart-2: oklch(0.209 0.009 207.836);
--chart-3: oklch(0.209 0.009 207.836);
--chart-4: oklch(0.244 0.011 207.838);
--chart-5: oklch(0.125 0.018 203.739);
}