Unconscious is a shadcn/ui theme built around a near-black primary color (#0a0900) with near-black accents (#00020a). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the near-black primary (#0a0900) on a yellow-tinted background (#0f0e05).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbf8snow | #0f0e05black |
| Foreground | #0b0a04black | #fdfdfcwhite |
| Card | #fbfaf4floralwhite | #131106black |
| Card foreground | #080703black | #ffffffwhite |
| Popover | #fcfbf8snow | #0f0e05black |
| Popover foreground | #0b0a04black | #fdfdfcwhite |
| Primary | #0a0900black | #0a0900black |
| Primary foreground | #d4b502goldenrod | #d4b502goldenrod |
| Secondary | #00020ablack | #00020ablack |
| Secondary foreground | #a4b2felightsteelblue | #a4b2felightsteelblue |
| Muted | #ebecf4lavender | #0b0c14black |
| Muted foreground | #4f5369dimgray | #969ab0darkgray |
| Accent | #00020ablack | #00020ablack |
| Accent foreground | #a4b2felightsteelblue | #a4b2felightsteelblue |
| Destructive | #8e3b0bsaddlebrown | #ee6c20chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0a0900black | #0a0900black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.20:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 9.91:1 | AAA |
| Secondary button | 10.25:1 | AAA |
| Muted text | 6.45:1 | AA |
| Accent | 10.25:1 | AAA |
| Destructive | 7.54:1 | AAA |
| Text on background | 19.02:1 | AAA |
| Text on card | 18.88:1 | AAA |
| Primary button | 9.91:1 | AAA |
| Secondary button | 10.25:1 | AAA |
| Muted text | 7.00:1 | AAA |
| Accent | 10.25:1 | AAA |
| Destructive | 6.79:1 | AA |
Paste this into your globals.css to use Unconscious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 98.387);
--foreground: oklch(0.145 0.016 101.351);
--muted: oklch(0.946 0.011 278.155);
--muted-foreground: oklch(0.447 0.036 277.01);
--popover: oklch(0.989 0.005 98.387);
--popover-foreground: oklch(0.145 0.016 101.351);
--card: oklch(0.983 0.007 98.422);
--card-foreground: oklch(0.127 0.014 101.684);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.135 0.028 104.017);
--primary-foreground: oklch(0.776 0.159 96.38);
--secondary: oklch(0.085 0.033 260.819);
--secondary-foreground: oklch(0.781 0.11 275.868);
--accent: oklch(0.085 0.033 260.819);
--accent-foreground: oklch(0.781 0.11 275.868);
--destructive: oklch(0.459 0.126 44.678);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.135 0.028 104.017);
--chart-1: oklch(0.135 0.028 104.017);
--chart-2: oklch(0.085 0.033 260.819);
--chart-3: oklch(0.085 0.033 260.819);
--chart-4: oklch(0.12 0.052 262.38);
--chart-5: oklch(0.136 0.029 104.145);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.161 0.019 100.377);
--foreground: oklch(0.994 0.002 98.344);
--muted: oklch(0.157 0.017 276.537);
--muted-foreground: oklch(0.691 0.032 277.598);
--popover: oklch(0.161 0.019 100.377);
--popover-foreground: oklch(0.994 0.002 98.344);
--card: oklch(0.177 0.021 99.871);
--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.135 0.028 104.017);
--primary-foreground: oklch(0.776 0.159 96.38);
--secondary: oklch(0.085 0.033 260.819);
--secondary-foreground: oklch(0.781 0.11 275.868);
--accent: oklch(0.085 0.033 260.819);
--accent-foreground: oklch(0.781 0.11 275.868);
--destructive: oklch(0.679 0.18 45.407);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.135 0.028 104.017);
--chart-1: oklch(0.135 0.028 104.017);
--chart-2: oklch(0.085 0.033 260.819);
--chart-3: oklch(0.085 0.033 260.819);
--chart-4: oklch(0.12 0.052 262.38);
--chart-5: oklch(0.136 0.029 104.145);
}