Unconscious for shadcn/ui

Unconscious is a shadcn/ui theme built around a neutral gray primary color (#73686a) with neutral gray accents (#686a73). The light mode uses a neutral background (#fefbfb). Dark mode keeps the neutral gray primary (#73686a) on a neutral background (#040102).

Color palette

TokenLightDark
Background
#fefbfbsnow
#040102black
Foreground
#090103black
#faf4f6whitesmoke
Card
#fefbfbsnow
#040102black
Card foreground
#090103black
#faf4f6whitesmoke
Popover
#fefbfbsnow
#040102black
Popover foreground
#090103black
#faf4f6whitesmoke
Primary
#73686adimgray
#73686adimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#6a7368dimgray
#6a7368dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ddedd9gainsboro
#162612black
Muted foreground
#52654edarkolivegreen
#9fb19adarkgray
Accent
#686a73dimgray
#686a73dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#6f1701maroon
#fd4d21orangered
Destructive foreground
#feb6a4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#73686adimgray
#73686adimgray

Contrast

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

Light mode
Text on background20.03:1AAA
Text on card20.03:1AAA
Primary button5.34:1AA
Secondary button4.91:1AA
Muted text5.15:1AA
Accent5.36:1AA
Destructive6.90:1AA
Dark mode
Text on background19.11:1AAA
Text on card19.11:1AAA
Primary button5.34:1AA
Secondary button4.91:1AA
Muted text6.99:1AA
Accent5.36:1AA
Destructive3.36:1AA Large

CSS variables

Paste this into your globals.css to use Unconscious in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 3.286);
  --foreground: oklch(0.1 0.026 3.59);
  --muted: oklch(0.928 0.031 139.436);
  --muted-foreground: oklch(0.484 0.043 139.434);
  --popover: oklch(0.99 0.004 3.286);
  --popover-foreground: oklch(0.1 0.026 3.59);
  --card: oklch(0.99 0.004 3.286);
  --card-foreground: oklch(0.1 0.026 3.59);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.529 0.014 3.903);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.545 0.02 139.436);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.527 0.014 274.696);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.356 0.125 34.454);
  --destructive-foreground: oklch(0.839 0.088 34.549);
  --ring: oklch(0.529 0.014 3.903);
  --chart-1: oklch(0.529 0.014 3.903);
  --chart-2: oklch(0.545 0.02 139.436);
  --chart-3: oklch(0.527 0.014 274.696);
  --chart-4: oklch(0.572 0.021 139.435);
  --chart-5: oklch(0.524 0.023 4.348);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.011 3.376);
  --foreground: oklch(0.973 0.007 3.367);
  --muted: oklch(0.248 0.042 139.499);
  --muted-foreground: oklch(0.741 0.039 139.433);
  --popover: oklch(0.085 0.011 3.376);
  --popover-foreground: oklch(0.973 0.007 3.367);
  --card: oklch(0.085 0.011 3.376);
  --card-foreground: oklch(0.973 0.007 3.367);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.529 0.014 3.903);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.545 0.02 139.436);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.527 0.014 274.696);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.665 0.219 34.431);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.529 0.014 3.903);
  --chart-1: oklch(0.529 0.014 3.903);
  --chart-2: oklch(0.545 0.02 139.436);
  --chart-3: oklch(0.527 0.014 274.696);
  --chart-4: oklch(0.572 0.021 139.435);
  --chart-5: oklch(0.524 0.023 4.348);
}