Session for shadcn/ui

Session is a shadcn/ui theme built around a neutral gray primary color (#c7c7c2) with neutral gray accents (#c2c2c7). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the neutral gray primary (#c7c7c2) on a neutral background (#070704).

Color palette

TokenLightDark
Background
#fdfdfbsnow
#070704black
Foreground
#0c0d03black
#f9f9f6whitesmoke
Card
#fcfcf8snow
#0a0a05black
Card foreground
#080802black
#fbfbf9snow
Popover
#fdfdfbsnow
#070704black
Popover foreground
#0c0d03black
#f9f9f6whitesmoke
Primary
#c7c7c2silver
#c7c7c2silver
Primary foreground
#2d2d2adarkslategray
#2d2d2adarkslategray
Secondary
#c2c2c7silver
#c2c2c7silver
Secondary foreground
#2a2a2ddarkslategray
#2a2a2ddarkslategray
Muted
#dedee3gainsboro
#1c1c21black
Muted foreground
#595959dimgray
#a6a6a6darkgray
Accent
#c2c2c7silver
#c2c2c7silver
Accent foreground
#2a2a2ddarkslategray
#2a2a2ddarkslategray
Destructive
#9e2310firebrick
#ed5c45tomato
Destructive foreground
#fce6e3mistyrose
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c7c7c2silver
#c7c7c2silver

Contrast

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

Light mode
Text on background19.26:1AAA
Text on card19.50:1AAA
Primary button8.11:1AAA
Secondary button8.06:1AAA
Muted text5.21:1AA
Accent8.06:1AAA
Destructive6.52:1AA
Dark mode
Text on background19.15:1AAA
Text on card19.14:1AAA
Primary button8.11:1AAA
Secondary button8.06:1AAA
Muted text6.97:1AA
Accent8.06:1AAA
Destructive6.19:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 107.218);
  --foreground: oklch(0.153 0.024 109.581);
  --muted: oklch(0.901 0.007 287.018);
  --muted-foreground: oklch(0.465 0 180);
  --popover: oklch(0.995 0.003 107.218);
  --popover-foreground: oklch(0.153 0.024 109.581);
  --card: oklch(0.99 0.005 107.266);
  --card-foreground: oklch(0.133 0.021 109.493);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.827 0.006 107.311);
  --primary-foreground: oklch(0.296 0.006 107.543);
  --secondary: oklch(0.816 0.007 287.023);
  --secondary-foreground: oklch(0.285 0.006 286.761);
  --accent: oklch(0.816 0.007 287.023);
  --accent-foreground: oklch(0.285 0.006 286.761);
  --destructive: oklch(0.458 0.162 31.618);
  --destructive-foreground: oklch(0.943 0.024 28.083);
  --ring: oklch(0.827 0.006 107.311);
  --chart-1: oklch(0.827 0.006 107.311);
  --chart-2: oklch(0.816 0.007 287.023);
  --chart-3: oklch(0.816 0.007 287.023);
  --chart-4: oklch(0.84 0.006 287.047);
  --chart-5: oklch(0.832 0.011 107.415);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.01 108.459);
  --foreground: oklch(0.981 0.004 107.237);
  --muted: oklch(0.228 0.011 286.295);
  --muted-foreground: oklch(0.724 0 180);
  --popover: oklch(0.125 0.01 108.459);
  --popover-foreground: oklch(0.981 0.004 107.237);
  --card: oklch(0.143 0.012 108.459);
  --card-foreground: oklch(0.987 0.002 107.214);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.827 0.006 107.311);
  --primary-foreground: oklch(0.296 0.006 107.543);
  --secondary: oklch(0.816 0.007 287.023);
  --secondary-foreground: oklch(0.285 0.006 286.761);
  --accent: oklch(0.816 0.007 287.023);
  --accent-foreground: oklch(0.285 0.006 286.761);
  --destructive: oklch(0.659 0.184 31.191);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.827 0.006 107.311);
  --chart-1: oklch(0.827 0.006 107.311);
  --chart-2: oklch(0.816 0.007 287.023);
  --chart-3: oklch(0.816 0.007 287.023);
  --chart-4: oklch(0.84 0.006 287.047);
  --chart-5: oklch(0.832 0.011 107.415);
}