Spell is a shadcn/ui theme built around a violet primary color (#833caa) with teal accents (#3caa83). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the violet primary (#833caa) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #000000black |
| Foreground | #030105black | #faf9fasnow |
| Card | #fdfbfewhite | #000000black |
| Card foreground | #030105black | #faf9fasnow |
| Popover | #fdfbfewhite | #000000black |
| Popover foreground | #030105black | #faf9fasnow |
| Primary | #833caarebeccapurple | #833caarebeccapurple |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #aa833cperu | #aa833cperu |
| Secondary foreground | #000000black | #000000black |
| Muted | #f4f1eclinen | #13100bblack |
| Muted foreground | #444340darkslategray | #bfbdbbsilver |
| Accent | #3caa83mediumseagreen | #3caa83mediumseagreen |
| Accent foreground | #07130fblack | #07130fblack |
| Destructive | #d5300bfirebrick | #f33f16orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #833caarebeccapurple | #833caarebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.16:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 6.58:1 | AA |
| Secondary button | 6.03:1 | AA |
| Muted text | 8.76:1 | AAA |
| Accent | 6.54:1 | AA |
| Destructive | 4.92:1 | AA |
| Text on background | 19.99:1 | AAA |
| Text on card | 19.99:1 | AAA |
| Primary button | 6.58:1 | AA |
| Secondary button | 6.03:1 | AA |
| Muted text | 10.10:1 | AAA |
| Accent | 6.54:1 | AA |
| Destructive | 3.80:1 | AA Large |
Paste this into your globals.css to use Spell in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.005 314.192);
--foreground: oklch(0.078 0.027 317.137);
--muted: oklch(0.958 0.007 83.062);
--muted-foreground: oklch(0.383 0.005 83.064);
--popover: oklch(0.99 0.005 314.192);
--popover-foreground: oklch(0.078 0.027 317.137);
--card: oklch(0.99 0.005 314.192);
--card-foreground: oklch(0.078 0.027 317.137);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.5 0.175 311.624);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.634 0.101 80.604);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.664 0.116 166.127);
--accent-foreground: oklch(0.173 0.02 170.089);
--destructive: oklch(0.57 0.205 32.92);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.5 0.175 311.624);
--chart-1: oklch(0.5 0.175 311.624);
--chart-2: oklch(0.634 0.101 80.604);
--chart-3: oklch(0.664 0.116 166.127);
--chart-4: oklch(0.664 0.106 80.566);
--chart-5: oklch(0.499 0.184 311.378);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.984 0.002 314.21);
--muted: oklch(0.177 0.011 82.933);
--muted-foreground: oklch(0.8 0.004 83.059);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.984 0.002 314.21);
--card: oklch(0 0 0);
--card-foreground: oklch(0.984 0.002 314.21);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.5 0.175 311.624);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.634 0.101 80.604);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.664 0.116 166.127);
--accent-foreground: oklch(0.173 0.02 170.089);
--destructive: oklch(0.635 0.221 33.318);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.5 0.175 311.624);
--chart-1: oklch(0.5 0.175 311.624);
--chart-2: oklch(0.634 0.101 80.604);
--chart-3: oklch(0.664 0.116 166.127);
--chart-4: oklch(0.664 0.106 80.566);
--chart-5: oklch(0.499 0.184 311.378);
}