Atrium for shadcn/ui

Atrium is a shadcn/ui theme built around a muted light pink primary color (#d0c3cc) with muted light green accents (#c3d0c7). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light pink primary (#d0c3cc) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#10040cblack
#ffffffwhite
Card
#ffffffwhite
#000000black
Card foreground
#10040cblack
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#10040cblack
#ffffffwhite
Primary
#d0c3ccthistle
#d0c3ccthistle
Primary foreground
#362b32darkslategray
#362b32darkslategray
Secondary
#c3d0c7silver
#c3d0c7silver
Secondary foreground
#2b362fdarkslategray
#2b362fdarkslategray
Muted
#eaf0ecwhitesmoke
#0f1511black
Muted foreground
#405446darkslategray
#abbfb2darkgray
Accent
#c3d0c7silver
#c3d0c7silver
Accent foreground
#2b362fdarkslategray
#2b362fdarkslategray
Destructive
#85190fmaroon
#e83c2ccrimson
Destructive foreground
#f9d0cdpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d0c3ccthistle
#d0c3ccthistle

Contrast

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

Light mode
Text on background20.10:1AAA
Text on card20.10:1AAA
Primary button7.97:1AAA
Secondary button7.87:1AAA
Muted text7.05:1AAA
Accent7.87:1AAA
Destructive6.97:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.97:1AAA
Secondary button7.87:1AAA
Muted text9.56:1AAA
Accent7.87:1AAA
Destructive4.12:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.136 0.03 339.57);
  --muted: oklch(0.95 0.007 157.106);
  --muted-foreground: oklch(0.425 0.034 155.5);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.136 0.03 339.57);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.136 0.03 339.57);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.83 0.018 337.708);
  --primary-foreground: oklch(0.304 0.022 338.636);
  --secondary: oklch(0.845 0.018 156.82);
  --secondary-foreground: oklch(0.321 0.021 155.871);
  --accent: oklch(0.845 0.018 156.82);
  --accent-foreground: oklch(0.321 0.021 155.871);
  --destructive: oklch(0.402 0.145 29.903);
  --destructive-foreground: oklch(0.892 0.047 24.169);
  --ring: oklch(0.83 0.018 337.708);
  --chart-1: oklch(0.83 0.018 337.708);
  --chart-2: oklch(0.845 0.018 156.82);
  --chart-3: oklch(0.845 0.018 156.82);
  --chart-4: oklch(0.867 0.016 156.897);
  --chart-5: oklch(0.829 0.023 337.818);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.186 0.011 156.007);
  --muted-foreground: oklch(0.786 0.03 156.472);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.83 0.018 337.708);
  --primary-foreground: oklch(0.304 0.022 338.636);
  --secondary: oklch(0.845 0.018 156.82);
  --secondary-foreground: oklch(0.321 0.021 155.871);
  --accent: oklch(0.845 0.018 156.82);
  --accent-foreground: oklch(0.321 0.021 155.871);
  --destructive: oklch(0.614 0.211 29.629);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.83 0.018 337.708);
  --chart-1: oklch(0.83 0.018 337.708);
  --chart-2: oklch(0.845 0.018 156.82);
  --chart-3: oklch(0.845 0.018 156.82);
  --chart-4: oklch(0.867 0.016 156.897);
  --chart-5: oklch(0.829 0.023 337.818);
}