Unconscious for shadcn/ui

Unconscious is a shadcn/ui theme built around a vivid deep violet primary color (#320543) with muted light violet accents (#ddd0e2). The light mode uses a neutral background (#fbf8fc). Dark mode keeps the vivid deep violet primary (#320543) on a violet-tinted background (#09040b).

Color palette

TokenLightDark
Background
#fbf8fcghostwhite
#09040bblack
Foreground
#070208black
#fdfcfdwhite
Card
#fbf8fcghostwhite
#09040bblack
Card foreground
#070208black
#fdfcfdwhite
Popover
#fbf8fcghostwhite
#09040bblack
Popover foreground
#070208black
#fdfcfdwhite
Primary
#320543midnightblue
#320543midnightblue
Primary foreground
#d883f6violet
#d883f6violet
Secondary
#e7e2e9lavender
#343135darkslategray
Secondary foreground
#524158darkslategray
#cdcacelightgrey
Muted
#e9e6ealavender
#181519black
Muted foreground
#403f40darkslategray
#c0bfc0silver
Accent
#ddd0e2gainsboro
#4b404fdarkslategray
Accent foreground
#47314edarkslategray
#e2dde3gainsboro
Destructive
#6b1c0amaroon
#ec5836tomato
Destructive foreground
#f8bdb0lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#320543midnightblue
#320543midnightblue

Contrast

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

Light mode
Text on background19.48:1AAA
Text on card19.48:1AAA
Primary button6.86:1AA
Secondary button7.28:1AAA
Muted text8.47:1AAA
Accent7.80:1AAA
Destructive7.17:1AAA
Dark mode
Text on background19.84:1AAA
Text on card19.84:1AAA
Primary button6.86:1AA
Secondary button7.87:1AAA
Muted text9.88:1AAA
Accent7.30:1AAA
Destructive6.01:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.007 317.174);
  --foreground: oklch(0.105 0.025 319.231);
  --muted: oklch(0.928 0.006 317.174);
  --muted-foreground: oklch(0.369 0.002 317.174);
  --popover: oklch(0.982 0.007 317.174);
  --popover-foreground: oklch(0.105 0.025 319.231);
  --card: oklch(0.982 0.007 317.174);
  --card-foreground: oklch(0.105 0.025 319.231);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.243 0.11 314.578);
  --primary-foreground: oklch(0.742 0.181 316.489);
  --secondary: oklch(0.918 0.012 317.16);
  --secondary-foreground: oklch(0.402 0.043 316.937);
  --accent: oklch(0.873 0.028 317.117);
  --accent-foreground: oklch(0.351 0.057 316.788);
  --destructive: oklch(0.355 0.116 33.826);
  --destructive-foreground: oklch(0.848 0.071 32.927);
  --ring: oklch(0.243 0.11 314.578);
  --chart-1: oklch(0.243 0.11 314.578);
  --chart-2: oklch(0.918 0.012 317.16);
  --chart-3: oklch(0.873 0.028 317.117);
  --chart-4: oklch(0.943 0.008 317.169);
  --chart-5: oklch(0.243 0.113 314.448);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.023 318.684);
  --foreground: oklch(0.992 0.001 317.187);
  --muted: oklch(0.201 0.009 317.083);
  --muted-foreground: oklch(0.805 0.002 317.184);
  --popover: oklch(0.122 0.023 318.684);
  --popover-foreground: oklch(0.992 0.001 317.187);
  --card: oklch(0.122 0.023 318.684);
  --card-foreground: oklch(0.992 0.001 317.187);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.243 0.11 314.578);
  --primary-foreground: oklch(0.742 0.181 316.489);
  --secondary: oklch(0.318 0.006 317.145);
  --secondary-foreground: oklch(0.843 0.005 317.176);
  --accent: oklch(0.389 0.027 317.028);
  --accent-foreground: oklch(0.904 0.01 317.165);
  --destructive: oklch(0.652 0.19 34.13);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.243 0.11 314.578);
  --chart-1: oklch(0.243 0.11 314.578);
  --chart-2: oklch(0.318 0.006 317.145);
  --chart-3: oklch(0.389 0.027 317.028);
  --chart-4: oklch(0.348 0.007 317.144);
  --chart-5: oklch(0.243 0.113 314.448);
}