Unconscious for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.20:1AAA
Text on card19.21:1AAA
Primary button9.91:1AAA
Secondary button10.25:1AAA
Muted text6.45:1AA
Accent10.25:1AAA
Destructive7.54:1AAA
Dark mode
Text on background19.02:1AAA
Text on card18.88:1AAA
Primary button9.91:1AAA
Secondary button10.25:1AAA
Muted text7.00:1AAA
Accent10.25:1AAA
Destructive6.79:1AA

CSS variables

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);
}