Spinel Light is a shadcn/ui theme built around a neutral gray primary color (#595959) with light indigo accents (#aea6e3). The light mode uses an indigo-tinted background (#e3e0f5). Dark mode keeps the neutral gray primary (#595959) on an indigo-tinted background (#e3e0f5).
| Token | Light | Dark |
|---|---|---|
| Background | #e3e0f5lavender | #e3e0f5lavender |
| Foreground | #595959dimgray | #595959dimgray |
| Card | #dcd8f3lavender | #dcd8f3lavender |
| Card foreground | #4d4d4ddarkslategray | #4d4d4ddarkslategray |
| Popover | #d8d4f2gainsboro | #d8d4f2gainsboro |
| Popover foreground | #404040darkslategray | #404040darkslategray |
| Primary | #595959dimgray | #595959dimgray |
| Primary foreground | #f2f2f2whitesmoke | #f2f2f2whitesmoke |
| Secondary | #bfbfbfsilver | #bfbfbfsilver |
| Secondary foreground | #262626darkslategray | #262626darkslategray |
| Muted | #dedde4gainsboro | #dedde4gainsboro |
| Muted foreground | #413f50darkslategray | #413f50darkslategray |
| Accent | #aea6e3lightsteelblue | #aea6e3lightsteelblue |
| Accent foreground | #1b1542midnightblue | #1b1542midnightblue |
| Destructive | #bd1c14firebrick | #bd1c14firebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #d4d0ecgainsboro | #d4d0ecgainsboro |
| Input | #cac5e7thistle | #cac5e7thistle |
| Ring | #595959dimgray | #595959dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 5.41:1 | AA |
| Text on card | 6.10:1 | AA |
| Primary button | 6.23:1 | AA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 7.57:1 | AAA |
| Accent | 7.58:1 | AAA |
| Destructive | 6.27:1 | AA |
| Text on background | 5.41:1 | AA |
| Text on card | 6.10:1 | AA |
| Primary button | 6.23:1 | AA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 7.57:1 | AAA |
| Accent | 7.58:1 | AAA |
| Destructive | 6.27:1 | AA |
Paste this into your globals.css to use Spinel Light in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.915 0.029 291.946);
--foreground: oklch(0.465 0 180);
--muted: oklch(0.9 0.01 292.335);
--muted-foreground: oklch(0.376 0.029 291.041);
--popover: oklch(0.883 0.04 291.678);
--popover-foreground: oklch(0.371 0 168.69);
--card: oklch(0.894 0.036 291.771);
--card-foreground: oklch(0.418 0 173.29);
--border: oklch(0.869 0.038 291.701);
--input: oklch(0.838 0.048 291.452);
--primary: oklch(0.465 0 180);
--primary-foreground: oklch(0.962 0 180);
--secondary: oklch(0.805 0 169.695);
--secondary-foreground: oklch(0.27 0 180);
--accent: oklch(0.753 0.087 290.252);
--accent-foreground: oklch(0.233 0.082 284.126);
--destructive: oklch(0.513 0.195 29.189);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.465 0 180);
--chart-1: oklch(0.465 0 180);
--chart-2: oklch(0.805 0 169.695);
--chart-3: oklch(0.753 0.087 290.252);
--chart-4: oklch(0.829 0 180);
--chart-5: oklch(0.46 0.007 17.41);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.915 0.029 291.946);
--foreground: oklch(0.465 0 180);
--muted: oklch(0.9 0.01 292.335);
--muted-foreground: oklch(0.376 0.029 291.041);
--popover: oklch(0.883 0.04 291.678);
--popover-foreground: oklch(0.371 0 168.69);
--card: oklch(0.894 0.036 291.771);
--card-foreground: oklch(0.418 0 173.29);
--border: oklch(0.869 0.038 291.701);
--input: oklch(0.838 0.048 291.452);
--primary: oklch(0.465 0 180);
--primary-foreground: oklch(0.962 0 180);
--secondary: oklch(0.805 0 169.695);
--secondary-foreground: oklch(0.27 0 180);
--accent: oklch(0.753 0.087 290.252);
--accent-foreground: oklch(0.233 0.082 284.126);
--destructive: oklch(0.513 0.195 29.189);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.465 0 180);
--chart-1: oklch(0.465 0 180);
--chart-2: oklch(0.805 0 169.695);
--chart-3: oklch(0.753 0.087 290.252);
--chart-4: oklch(0.829 0 180);
--chart-5: oklch(0.46 0.007 17.41);
}