Elver is a shadcn/ui theme built around a deep orange primary color (#201709) with deep green accents (#1d2009). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep orange primary (#201709) on a neutral background (#040301).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040301black |
| Foreground | #040301black | #fdfdfcwhite |
| Card | #ffffffwhite | #040301black |
| Card foreground | #040301black | #fdfdfcwhite |
| Popover | #ffffffwhite | #040301black |
| Popover foreground | #040301black | #fdfdfcwhite |
| Primary | #201709black | #201709black |
| Primary foreground | #dab681burlywood | #dab681burlywood |
| Secondary | #200b09black | #200b09black |
| Secondary foreground | #da8981darksalmon | #da8981darksalmon |
| Muted | #e3dedegainsboro | #211d1cblack |
| Muted foreground | #5b5352dimgray | #ada5a4darkgray |
| Accent | #1d2009black | #1d2009black |
| Accent foreground | #b0be37yellowgreen | #b0be37yellowgreen |
| Destructive | #8f220fsaddlebrown | #e23618orangered |
| Destructive foreground | #fbdbd5mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #201709black | #201709black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.61:1 | AAA |
| Text on card | 20.61:1 | AAA |
| Primary button | 9.28:1 | AAA |
| Secondary button | 7.06:1 | AAA |
| Muted text | 5.63:1 | AA |
| Accent | 8.14:1 | AAA |
| Destructive | 6.72:1 | AA |
| Text on background | 20.26:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 9.28:1 | AAA |
| Secondary button | 7.06:1 | AAA |
| Muted text | 6.93:1 | AA |
| Accent | 8.14:1 | AAA |
| Destructive | 4.39:1 | AA Large |
Paste this into your globals.css to use Elver in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.097 0.012 86.097);
--muted: oklch(0.905 0.005 25.034);
--muted-foreground: oklch(0.45 0.01 25.193);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.097 0.012 86.097);
--card: oklch(1 0 180);
--card-foreground: oklch(0.097 0.012 86.097);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.21 0.028 76.496);
--primary-foreground: oklch(0.797 0.082 77.28);
--secondary: oklch(0.183 0.036 27.698);
--secondary-foreground: oklch(0.713 0.101 26.734);
--accent: oklch(0.233 0.038 114.09);
--accent-foreground: oklch(0.766 0.154 115.08);
--destructive: oklch(0.43 0.148 32.294);
--destructive-foreground: oklch(0.916 0.036 29.655);
--ring: oklch(0.21 0.028 76.496);
--chart-1: oklch(0.21 0.028 76.496);
--chart-2: oklch(0.183 0.036 27.698);
--chart-3: oklch(0.233 0.038 114.09);
--chart-4: oklch(0.214 0.047 28.089);
--chart-5: oklch(0.211 0.029 76.364);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.011 85.181);
--foreground: oklch(0.993 0.001 78.309);
--muted: oklch(0.234 0.007 25.257);
--muted-foreground: oklch(0.728 0.009 25.095);
--popover: oklch(0.097 0.011 85.181);
--popover-foreground: oklch(0.993 0.001 78.309);
--card: oklch(0.097 0.011 85.181);
--card-foreground: oklch(0.993 0.001 78.309);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.21 0.028 76.496);
--primary-foreground: oklch(0.797 0.082 77.28);
--secondary: oklch(0.183 0.036 27.698);
--secondary-foreground: oklch(0.713 0.101 26.734);
--accent: oklch(0.233 0.038 114.09);
--accent-foreground: oklch(0.766 0.154 115.08);
--destructive: oklch(0.599 0.212 32.16);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.21 0.028 76.496);
--chart-1: oklch(0.21 0.028 76.496);
--chart-2: oklch(0.183 0.036 27.698);
--chart-3: oklch(0.233 0.038 114.09);
--chart-4: oklch(0.214 0.047 28.089);
--chart-5: oklch(0.211 0.029 76.364);
}