Pajamas for shadcn/ui

Pajamas is a shadcn/ui theme built around a muted violet primary color (#716490) with muted light violet accents (#bfbac9). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted violet primary (#716490) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#090415black
#ffffffwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#070311black
#ffffffwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#070311black
#ffffffwhite
Primary
#716490slategray
#716490slategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d0cfd3lightgrey
#1c1924black
Secondary foreground
#37353bdarkslategray
#b2aac5silver
Muted
#ded9edgainsboro
#181226black
Muted foreground
#5d586adimgray
#9a95a7darkgray
Accent
#bfbac9silver
#2d2640darkslategray
Accent foreground
#27242edarkslategray
#c6bfd9thistle
Destructive
#851805maroon
#f74a2btomato
Destructive foreground
#fdc8bfpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#716490slategray
#716490slategray

Contrast

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

Light mode
Text on background20.19:1AAA
Text on card19.94:1AAA
Primary button5.32:1AA
Secondary button7.80:1AAA
Muted text4.96:1AA
Accent8.06:1AAA
Destructive6.66:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button5.32:1AA
Secondary button7.79:1AAA
Muted text6.28:1AA
Accent8.11:1AAA
Destructive3.51:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.131 0.039 296.134);
  --muted: oklch(0.895 0.029 298.751);
  --muted-foreground: oklch(0.472 0.028 298.264);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.121 0.034 297.728);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.121 0.034 297.728);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.534 0.069 297.002);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.856 0.006 299.176);
  --secondary-foreground: oklch(0.334 0.01 298.792);
  --accent: oklch(0.798 0.021 298.853);
  --accent-foreground: oklch(0.267 0.018 298.112);
  --destructive: oklch(0.401 0.146 32.124);
  --destructive-foreground: oklch(0.877 0.061 29.882);
  --ring: oklch(0.534 0.069 297.002);
  --chart-1: oklch(0.534 0.069 297.002);
  --chart-2: oklch(0.856 0.006 299.176);
  --chart-3: oklch(0.798 0.021 298.853);
  --chart-4: oklch(0.881 0.005 299.201);
  --chart-5: oklch(0.526 0.081 296.547);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.2 0.041 295.48);
  --muted-foreground: oklch(0.681 0.026 298.65);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.534 0.069 297.002);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.222 0.023 297.5);
  --secondary-foreground: oklch(0.753 0.039 298.404);
  --accent: oklch(0.289 0.048 296.275);
  --accent-foreground: oklch(0.818 0.038 298.512);
  --destructive: oklch(0.654 0.214 32.375);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.534 0.069 297.002);
  --chart-1: oklch(0.534 0.069 297.002);
  --chart-2: oklch(0.222 0.023 297.5);
  --chart-3: oklch(0.289 0.048 296.275);
  --chart-4: oklch(0.251 0.028 297.363);
  --chart-5: oklch(0.526 0.081 296.547);
}