Consciousness for shadcn/ui

Consciousness is a shadcn/ui theme built around a light yellow primary color (#deceab) with light violet accents (#ceabde). The light mode uses a neutral background (#fefdfb). Dark mode keeps the light yellow primary (#deceab) on a neutral background (#080602).

Color palette

TokenLightDark
Background
#fefdfbsnow
#080602black
Foreground
#040301black
#f9f8f6whitesmoke
Card
#fefdfbsnow
#080602black
Card foreground
#040301black
#f9f8f6whitesmoke
Popover
#fefdfbsnow
#080602black
Popover foreground
#040301black
#f9f8f6whitesmoke
Primary
#deceabwheat
#deceabwheat
Primary foreground
#3e3219darkslategray
#3e3219darkslategray
Secondary
#abdecepowderblue
#abdecepowderblue
Secondary foreground
#193e32darkslategray
#193e32darkslategray
Muted
#eef7f4whitesmoke
#08110eblack
Muted foreground
#516760dimgray
#98aea7darkgray
Accent
#ceabdeplum
#ceabdeplum
Accent foreground
#32193emidnightblue
#32193emidnightblue
Destructive
#660e0bmaroon
#e7241dcrimson
Destructive foreground
#f6aeaclightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#deceabwheat
#deceabwheat

Contrast

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

Light mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button8.04:1AAA
Secondary button7.89:1AAA
Muted text5.54:1AA
Accent7.80:1AAA
Destructive7.11:1AAA
Dark mode
Text on background19.06:1AAA
Text on card19.06:1AAA
Primary button8.04:1AAA
Secondary button7.89:1AAA
Muted text8.14:1AAA
Accent7.80:1AAA
Destructive4.49:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 86.016);
  --foreground: oklch(0.098 0.012 91.965);
  --muted: oklch(0.968 0.01 175.317);
  --muted-foreground: oklch(0.493 0.029 173.796);
  --popover: oklch(0.994 0.002 86.016);
  --popover-foreground: oklch(0.098 0.012 91.965);
  --card: oklch(0.994 0.002 86.016);
  --card-foreground: oklch(0.098 0.012 91.965);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.854 0.049 86.072);
  --primary-foreground: oklch(0.324 0.043 85.132);
  --secondary: oklch(0.86 0.057 173.523);
  --secondary-foreground: oklch(0.332 0.048 170.039);
  --accent: oklch(0.789 0.079 315.001);
  --accent-foreground: oklch(0.266 0.073 314.027);
  --destructive: oklch(0.33 0.121 28.293);
  --destructive-foreground: oklch(0.819 0.085 21.288);
  --ring: oklch(0.854 0.049 86.072);
  --chart-1: oklch(0.854 0.049 86.072);
  --chart-2: oklch(0.86 0.057 173.523);
  --chart-3: oklch(0.789 0.079 315.001);
  --chart-4: oklch(0.878 0.049 173.856);
  --chart-5: oklch(0.857 0.053 86.061);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.015 91.874);
  --foreground: oklch(0.979 0.003 86.019);
  --muted: oklch(0.168 0.014 172.956);
  --muted-foreground: oklch(0.733 0.026 174.524);
  --popover: oklch(0.124 0.015 91.874);
  --popover-foreground: oklch(0.979 0.003 86.019);
  --card: oklch(0.124 0.015 91.874);
  --card-foreground: oklch(0.979 0.003 86.019);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.854 0.049 86.072);
  --primary-foreground: oklch(0.324 0.043 85.132);
  --secondary: oklch(0.86 0.057 173.523);
  --secondary-foreground: oklch(0.332 0.048 170.039);
  --accent: oklch(0.789 0.079 315.001);
  --accent-foreground: oklch(0.266 0.073 314.027);
  --destructive: oklch(0.596 0.227 28.745);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.854 0.049 86.072);
  --chart-1: oklch(0.854 0.049 86.072);
  --chart-2: oklch(0.86 0.057 173.523);
  --chart-3: oklch(0.789 0.079 315.001);
  --chart-4: oklch(0.878 0.049 173.856);
  --chart-5: oklch(0.857 0.053 86.061);
}