Unconscious is a shadcn/ui theme built around a vivid purple primary color (#e534e5) with muted light purple accents (#d1c7d1). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid purple primary (#e534e5) on a purple-tinted background (#0c030c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c030cblack |
| Foreground | #150515black | #ffffffwhite |
| Card | #ffffffwhite | #0c030cblack |
| Card foreground | #150515black | #ffffffwhite |
| Popover | #ffffffwhite | #0c030cblack |
| Popover foreground | #150515black | #ffffffwhite |
| Primary | #e534e5mediumorchid | #e534e5mediumorchid |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e4e2e4gainsboro | #303030darkslategray |
| Secondary foreground | #4e464edarkslategray | #c9c9c9silver |
| Muted | #e7dfe7gainsboro | #201818black |
| Muted foreground | #4f454fdarkslategray | #bab0b0darkgray |
| Accent | #d1c7d1lightgrey | #4c4343darkslategray |
| Accent foreground | #382e38darkslategray | #e2dfdfgainsboro |
| Destructive | #8a2700saddlebrown | #ff692etomato |
| Destructive foreground | #ffcfbdpeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e534e5mediumorchid | #e534e5mediumorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.72:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 3.53:1 | AA Large |
| Secondary button | 7.04:1 | AAA |
| Muted text | 7.00:1 | AAA |
| Accent | 7.91:1 | AAA |
| Destructive | 6.30:1 | AA |
| Text on background | 20.28:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 3.53:1 | AA Large |
| Secondary button | 7.91:1 | AAA |
| Muted text | 8.23:1 | AAA |
| Accent | 7.23:1 | AAA |
| Destructive | 7.31:1 | AAA |
Paste this into your globals.css to use Unconscious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.152 0.044 327.457);
--muted: oklch(0.912 0.014 325.695);
--muted-foreground: oklch(0.404 0.022 325.972);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.152 0.044 327.457);
--card: oklch(1 0 180);
--card-foreground: oklch(0.152 0.044 327.457);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.664 0.273 328.127);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.914 0.005 325.616);
--secondary-foreground: oklch(0.405 0.016 325.86);
--accent: oklch(0.841 0.018 325.735);
--accent-foreground: oklch(0.316 0.023 326.101);
--destructive: oklch(0.424 0.14 37.644);
--destructive-foreground: oklch(0.892 0.06 42.671);
--ring: oklch(0.664 0.273 328.127);
--chart-1: oklch(0.664 0.273 328.127);
--chart-2: oklch(0.914 0.005 325.616);
--chart-3: oklch(0.841 0.018 325.735);
--chart-4: oklch(0.938 0.003 325.604);
--chart-5: oklch(0.669 0.28 328.161);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.029 327.146);
--foreground: oklch(1 0 180);
--muted: oklch(0.219 0.014 18.241);
--muted-foreground: oklch(0.765 0.012 17.416);
--popover: oklch(0.125 0.029 327.146);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.125 0.029 327.146);
--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.664 0.273 328.127);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.311 0 180);
--secondary-foreground: oklch(0.837 0 171.254);
--accent: oklch(0.392 0.012 17.663);
--accent-foreground: oklch(0.905 0.004 17.231);
--destructive: oklch(0.702 0.196 39.962);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.664 0.273 328.127);
--chart-1: oklch(0.664 0.273 328.127);
--chart-2: oklch(0.311 0 180);
--chart-3: oklch(0.392 0.012 17.663);
--chart-4: oklch(0.341 0 158.199);
--chart-5: oklch(0.669 0.28 328.161);
}