Alienated is a shadcn/ui theme built around a violet primary color (#a68ced) with neutral gray accents (#d8d6db). The light mode uses a neutral background (#f9f8fb). Dark mode keeps the violet primary (#a68ced) on a violet-tinted background (#06050b).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f8fbghostwhite | #06050bblack |
| Foreground | #080317black | #fcfcfdwhite |
| Card | #f9f8fbghostwhite | #06050bblack |
| Card foreground | #080317black | #fcfcfdwhite |
| Popover | #f9f8fbghostwhite | #06050bblack |
| Popover foreground | #080317black | #fcfcfdwhite |
| Primary | #a68cedmediumpurple | #a68cedmediumpurple |
| Primary foreground | #180a3emidnightblue | #180a3emidnightblue |
| Secondary | #d8d6dbgainsboro | #18161dblack |
| Secondary foreground | #3e3c44darkslategray | #ada7bedarkgray |
| Muted | #edeaf5lavender | #0d0a15black |
| Muted foreground | #4f4e50darkslategray | #b0afb1darkgray |
| Accent | #d8d6dbgainsboro | #18161dblack |
| Accent foreground | #3e3c44darkslategray | #ada7bedarkgray |
| Destructive | #832601saddlebrown | #fd5c1corangered |
| Destructive foreground | #feccb8peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a68cedmediumpurple | #a68cedmediumpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.21:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 6.61:1 | AA |
| Secondary button | 7.54:1 | AAA |
| Muted text | 6.98:1 | AA |
| Accent | 7.54:1 | AAA |
| Destructive | 6.46:1 | AA |
| Text on background | 19.82:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 6.61:1 | AA |
| Secondary button | 7.74:1 | AAA |
| Muted text | 8.98:1 | AAA |
| Accent | 7.74:1 | AAA |
| Destructive | 6.69:1 | AA |
Paste this into your globals.css to use Alienated in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.004 298.493);
--foreground: oklch(0.125 0.047 294.629);
--muted: oklch(0.943 0.015 298.288);
--muted-foreground: oklch(0.426 0.003 298.459);
--popover: oklch(0.982 0.004 298.493);
--popover-foreground: oklch(0.125 0.047 294.629);
--card: oklch(0.982 0.004 298.493);
--card-foreground: oklch(0.125 0.047 294.629);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.704 0.14 294.813);
--primary-foreground: oklch(0.205 0.092 287.473);
--secondary: oklch(0.88 0.006 298.44);
--secondary-foreground: oklch(0.361 0.013 297.921);
--accent: oklch(0.88 0.006 298.44);
--accent-foreground: oklch(0.361 0.013 297.921);
--destructive: oklch(0.411 0.134 37.913);
--destructive-foreground: oklch(0.884 0.063 42.648);
--ring: oklch(0.704 0.14 294.813);
--chart-1: oklch(0.704 0.14 294.813);
--chart-2: oklch(0.88 0.006 298.44);
--chart-3: oklch(0.88 0.006 298.44);
--chart-4: oklch(0.904 0.005 298.469);
--chart-5: oklch(0.7 0.146 294.619);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.016 298.466);
--foreground: oklch(0.991 0.002 298.533);
--muted: oklch(0.154 0.024 295.76);
--muted-foreground: oklch(0.755 0.002 298.514);
--popover: oklch(0.12 0.016 298.466);
--popover-foreground: oklch(0.991 0.002 298.533);
--card: oklch(0.12 0.016 298.466);
--card-foreground: oklch(0.991 0.002 298.533);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.704 0.14 294.813);
--primary-foreground: oklch(0.205 0.092 287.473);
--secondary: oklch(0.205 0.015 297.242);
--secondary-foreground: oklch(0.741 0.033 297.777);
--accent: oklch(0.205 0.015 297.242);
--accent-foreground: oklch(0.741 0.033 297.777);
--destructive: oklch(0.68 0.208 38.689);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.704 0.14 294.813);
--chart-1: oklch(0.704 0.14 294.813);
--chart-2: oklch(0.205 0.015 297.242);
--chart-3: oklch(0.205 0.015 297.242);
--chart-4: oklch(0.235 0.019 297.113);
--chart-5: oklch(0.7 0.146 294.619);
}