Alienated is a shadcn/ui theme built around a muted deep purple primary color (#2f2531) with muted deep green accents (#283125). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the muted deep purple primary (#2f2531) on a neutral background (#030104).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #030104black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fdfcfdwhite | #030104black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fdfcfdwhite | #030104black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #2f2531darkslategray | #2f2531darkslategray |
| Primary foreground | #c9bccdsilver | #c9bccdsilver |
| Secondary | #283125darkslategray | #283125darkslategray |
| Secondary foreground | #c0cdbcsilver | #c0cdbcsilver |
| Muted | #dadddagainsboro | #232522black |
| Muted foreground | #546a4edarkolivegreen | #9bb195darkseagreen |
| Accent | #283125darkslategray | #283125darkslategray |
| Accent foreground | #c0cdbcsilver | #c0cdbcsilver |
| Destructive | #821403maroon | #fa3719orangered |
| Destructive foreground | #fec2b9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2f2531darkslategray | #2f2531darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.46:1 | AAA |
| Text on card | 20.46:1 | AAA |
| Primary button | 8.06:1 | AAA |
| Secondary button | 8.12:1 | AAA |
| Muted text | 4.32:1 | AA Large |
| Accent | 8.12:1 | AAA |
| Destructive | 6.65:1 | AA |
| Text on background | 20.75:1 | AAA |
| Text on card | 20.75:1 | AAA |
| Primary button | 8.06:1 | AAA |
| Secondary button | 8.12:1 | AAA |
| Muted text | 6.68:1 | AA |
| Accent | 8.12:1 | AAA |
| Destructive | 3.72:1 | AA Large |
Paste this into your globals.css to use Alienated in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 318.89);
--foreground: oklch(0 0 0);
--muted: oklch(0.895 0.006 138.893);
--muted-foreground: oklch(0.497 0.05 138.953);
--popover: oklch(0.991 0.003 318.89);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.991 0.003 318.89);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.282 0.026 318.854);
--primary-foreground: oklch(0.811 0.027 318.879);
--secondary: oklch(0.302 0.025 138.936);
--secondary-foreground: oklch(0.832 0.027 138.904);
--accent: oklch(0.302 0.025 138.936);
--accent-foreground: oklch(0.832 0.027 138.904);
--destructive: oklch(0.391 0.147 31.699);
--destructive-foreground: oklch(0.866 0.07 28.562);
--ring: oklch(0.282 0.026 318.854);
--chart-1: oklch(0.282 0.026 318.854);
--chart-2: oklch(0.302 0.025 138.936);
--chart-3: oklch(0.302 0.025 138.936);
--chart-4: oklch(0.334 0.029 138.939);
--chart-5: oklch(0.28 0.031 318.842);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.014 320.324);
--foreground: oklch(1 0 180);
--muted: oklch(0.262 0.008 138.902);
--muted-foreground: oklch(0.736 0.046 138.92);
--popover: oklch(0.086 0.014 320.324);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.086 0.014 320.324);
--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.282 0.026 318.854);
--primary-foreground: oklch(0.811 0.027 318.879);
--secondary: oklch(0.302 0.025 138.936);
--secondary-foreground: oklch(0.832 0.027 138.904);
--accent: oklch(0.302 0.025 138.936);
--accent-foreground: oklch(0.832 0.027 138.904);
--destructive: oklch(0.642 0.233 31.529);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.282 0.026 318.854);
--chart-1: oklch(0.282 0.026 318.854);
--chart-2: oklch(0.302 0.025 138.936);
--chart-3: oklch(0.302 0.025 138.936);
--chart-4: oklch(0.334 0.029 138.939);
--chart-5: oklch(0.28 0.031 318.842);
}