Elliptical is a shadcn/ui theme built around a purple primary color (#6c3271) with teal accents (#32716c). The light mode uses a neutral background (#fefbfe). Dark mode keeps the purple primary (#6c3271) on a purple-tinted background (#0b040b).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfewhite | #0b040bblack |
| Foreground | #080109black | #ffffffwhite |
| Card | #fefbfewhite | #0b040bblack |
| Card foreground | #080109black | #ffffffwhite |
| Popover | #fefbfewhite | #0b040bblack |
| Popover foreground | #080109black | #ffffffwhite |
| Primary | #6c3271rebeccapurple | #6c3271rebeccapurple |
| Primary foreground | #f1e3f3lavender | #f1e3f3lavender |
| Secondary | #716c32darkolivegreen | #716c32darkolivegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f0efe0beige | #1f1d0fblack |
| Muted foreground | #67675fdimgray | #a09f98darkgray |
| Accent | #32716cseagreen | #32716cseagreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #972202darkred | #fc5527tomato |
| Destructive foreground | #fed7cdbisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6c3271rebeccapurple | #6c3271rebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.04:1 | AAA |
| Text on card | 20.04:1 | AAA |
| Primary button | 7.29:1 | AAA |
| Secondary button | 5.37:1 | AA |
| Muted text | 4.90:1 | AA |
| Accent | 5.62:1 | AA |
| Destructive | 6.21:1 | AA |
| Text on background | 20.26:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 7.29:1 | AAA |
| Secondary button | 5.37:1 | AA |
| Muted text | 6.35:1 | AA |
| Accent | 5.62:1 | AA |
| Destructive | 6.45:1 | AA |
Paste this into your globals.css to use Elliptical in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.005 323.16);
--foreground: oklch(0.104 0.035 325.557);
--muted: oklch(0.948 0.019 102.534);
--muted-foreground: oklch(0.511 0.011 102.566);
--popover: oklch(0.991 0.005 323.16);
--popover-foreground: oklch(0.104 0.035 325.557);
--card: oklch(0.991 0.005 323.16);
--card-foreground: oklch(0.104 0.035 325.557);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.42 0.121 324.201);
--primary-foreground: oklch(0.931 0.026 323.264);
--secondary: oklch(0.523 0.08 104.073);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.507 0.066 187.981);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.444 0.156 34.313);
--destructive-foreground: oklch(0.91 0.046 35.948);
--ring: oklch(0.42 0.121 324.201);
--chart-1: oklch(0.42 0.121 324.201);
--chart-2: oklch(0.523 0.08 104.073);
--chart-3: oklch(0.507 0.066 187.981);
--chart-4: oklch(0.558 0.085 104.078);
--chart-5: oklch(0.421 0.128 324.24);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.024 324.462);
--foreground: oklch(1 0 180);
--muted: oklch(0.23 0.025 103.743);
--muted-foreground: oklch(0.7 0.01 102.453);
--popover: oklch(0.125 0.024 324.462);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.125 0.024 324.462);
--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.42 0.121 324.201);
--primary-foreground: oklch(0.931 0.026 323.264);
--secondary: oklch(0.523 0.08 104.073);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.507 0.066 187.981);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.672 0.21 35.534);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.42 0.121 324.201);
--chart-1: oklch(0.42 0.121 324.201);
--chart-2: oklch(0.523 0.08 104.073);
--chart-3: oklch(0.507 0.066 187.981);
--chart-4: oklch(0.558 0.085 104.078);
--chart-5: oklch(0.421 0.128 324.24);
}