Psychologist for shadcn/ui

Psychologist is a shadcn/ui theme built around a near-black primary color (#050505) with near-black accents (#050505). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#050505) on a green-tinted background (#091004).

Color palette

TokenLightDark
Background
#ffffffwhite
#091004black
Foreground
#020401black
#fcfdfcwhite
Card
#fcfcfcsnow
#0b1405black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#091004black
Popover foreground
#020401black
#fcfdfcwhite
Primary
#050505black
#050505black
Primary foreground
#9da399darkgray
#9da399darkgray
Secondary
#050505black
#050505black
Secondary foreground
#999da3darkgray
#999da3darkgray
Muted
#f0f2f4whitesmoke
#0b0c0fblack
Muted foreground
#494c50darkslategray
#afb2b6darkgray
Accent
#050505black
#050505black
Accent foreground
#a3999ddarkgray
#a3999ddarkgray
Destructive
#8a300fsaddlebrown
#e24e18chocolate
Destructive foreground
#fadcd1bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#050505black
#050505black

Contrast

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

Light mode
Text on background20.58:1AAA
Text on card20.54:1AAA
Primary button7.88:1AAA
Secondary button7.47:1AAA
Muted text7.69:1AAA
Accent7.37:1AAA
Destructive6.46:1AA
Dark mode
Text on background18.90:1AAA
Text on card18.76:1AAA
Primary button7.88:1AAA
Secondary button7.47:1AAA
Muted text9.17:1AAA
Accent7.37:1AAA
Destructive3.93:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.103 0.022 129.881);
  --muted: oklch(0.96 0.004 256.668);
  --muted-foreground: oklch(0.415 0.007 256.712);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.103 0.022 129.881);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.117 0.002 131.587);
  --primary-foreground: oklch(0.708 0.015 131.901);
  --secondary: oklch(0.115 0.001 255.976);
  --secondary-foreground: oklch(0.695 0.009 256.703);
  --accent: oklch(0.115 0.002 349.643);
  --accent-foreground: oklch(0.693 0.013 350.178);
  --destructive: oklch(0.437 0.131 38.262);
  --destructive-foreground: oklch(0.916 0.037 41.049);
  --ring: oklch(0.117 0.002 131.587);
  --chart-1: oklch(0.117 0.002 131.587);
  --chart-2: oklch(0.115 0.001 255.976);
  --chart-3: oklch(0.115 0.002 349.643);
  --chart-4: oklch(0.157 0.002 256.696);
  --chart-5: oklch(0.117 0.003 131.506);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.162 0.029 131.484);
  --foreground: oklch(0.993 0.001 131.731);
  --muted: oklch(0.155 0.006 256.766);
  --muted-foreground: oklch(0.763 0.006 256.682);
  --popover: oklch(0.162 0.029 131.484);
  --popover-foreground: oklch(0.993 0.001 131.731);
  --card: oklch(0.179 0.033 132.59);
  --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.117 0.002 131.587);
  --primary-foreground: oklch(0.708 0.015 131.901);
  --secondary: oklch(0.115 0.001 255.976);
  --secondary-foreground: oklch(0.695 0.009 256.703);
  --accent: oklch(0.115 0.002 349.643);
  --accent-foreground: oklch(0.693 0.013 350.178);
  --destructive: oklch(0.622 0.194 37.691);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.117 0.002 131.587);
  --chart-1: oklch(0.117 0.002 131.587);
  --chart-2: oklch(0.115 0.001 255.976);
  --chart-3: oklch(0.115 0.002 349.643);
  --chart-4: oklch(0.157 0.002 256.696);
  --chart-5: oklch(0.117 0.003 131.506);
}