Elite is a shadcn/ui theme built around a deep purple primary color (#310934) with deep green accents (#0c3409). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep purple primary (#310934) on a neutral background (#070307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070307black |
| Foreground | #070208black | #ffffffwhite |
| Card | #fcfcfcsnow | #0a050ablack |
| Card foreground | #040104black | #ffffffwhite |
| Popover | #ffffffwhite | #070307black |
| Popover foreground | #070208black | #ffffffwhite |
| Primary | #310934midnightblue | #310934midnightblue |
| Primary foreground | #e386eaviolet | #e386eaviolet |
| Secondary | #0c3409darkgreen | #0c3409darkgreen |
| Secondary foreground | #3ada2flimegreen | #3ada2flimegreen |
| Muted | #e8f4e7honeydew | #0c180bblack |
| Muted foreground | #3f513ddarkslategray | #afc2aesilver |
| Accent | #0c3409darkgreen | #0c3409darkgreen |
| Accent foreground | #3ada2flimegreen | #3ada2flimegreen |
| Destructive | #cb3b0bfirebrick | #f45c2atomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #310934midnightblue | #310934midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.56:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 7.26:1 | AAA |
| Secondary button | 7.44:1 | AAA |
| Muted text | 7.51:1 | AAA |
| Accent | 7.44:1 | AAA |
| Destructive | 5.02:1 | AA |
| Text on background | 20.45:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 7.26:1 | AAA |
| Secondary button | 7.44:1 | AAA |
| Muted text | 9.66:1 | AAA |
| Accent | 7.44:1 | AAA |
| Destructive | 6.41:1 | AA |
Paste this into your globals.css to use Elite in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.108 0.023 325.204);
--muted: oklch(0.953 0.021 143.518);
--muted-foreground: oklch(0.414 0.04 143.11);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.108 0.023 325.204);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.086 0.018 325.204);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.234 0.088 325.066);
--primary-foreground: oklch(0.752 0.169 324.662);
--secondary: oklch(0.287 0.082 142.155);
--secondary-foreground: oklch(0.778 0.242 142.126);
--accent: oklch(0.287 0.082 142.155);
--accent-foreground: oklch(0.778 0.242 142.126);
--destructive: oklch(0.563 0.188 35.854);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.234 0.088 325.066);
--chart-1: oklch(0.234 0.088 325.066);
--chart-2: oklch(0.287 0.082 142.155);
--chart-3: oklch(0.287 0.082 142.155);
--chart-4: oklch(0.33 0.097 142.141);
--chart-5: oklch(0.235 0.091 325.08);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.111 0.014 324.597);
--foreground: oklch(1 0 180);
--muted: oklch(0.194 0.031 142.775);
--muted-foreground: oklch(0.793 0.035 143.404);
--popover: oklch(0.111 0.014 324.597);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.127 0.016 324.597);
--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.234 0.088 325.066);
--primary-foreground: oklch(0.752 0.169 324.662);
--secondary: oklch(0.287 0.082 142.155);
--secondary-foreground: oklch(0.778 0.242 142.126);
--accent: oklch(0.287 0.082 142.155);
--accent-foreground: oklch(0.778 0.242 142.126);
--destructive: oklch(0.668 0.196 37.674);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.234 0.088 325.066);
--chart-1: oklch(0.234 0.088 325.066);
--chart-2: oklch(0.287 0.082 142.155);
--chart-3: oklch(0.287 0.082 142.155);
--chart-4: oklch(0.33 0.097 142.141);
--chart-5: oklch(0.235 0.091 325.08);
}