Relaxation for shadcn/ui

Relaxation is a shadcn/ui theme built around a muted orange primary color (#856f66) with muted violet accents (#6f6685). The light mode uses a neutral background (#fdf9f7). Dark mode keeps the muted orange primary (#856f66) on an orange-tinted background (#0b0604).

Color palette

TokenLightDark
Background
#fdf9f7snow
#0b0604black
Foreground
#0b0604black
#f8f7f7whitesmoke
Card
#fdf9f7snow
#0b0604black
Card foreground
#0b0604black
#f8f7f7whitesmoke
Popover
#fdf9f7snow
#0b0604black
Popover foreground
#0b0604black
#f8f7f7whitesmoke
Primary
#856f66dimgray
#856f66dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#66856fdimgray
#66856fdimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e5f0e8honeydew
#0f1a12black
Muted foreground
#546458dimgray
#9baba0darkgray
Accent
#6f6685slategray
#6f6685slategray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#dd5608chocolate
#e75a08orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#856f66dimgray
#856f66dimgray

Contrast

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

Light mode
Text on background19.21:1AAA
Text on card19.21:1AAA
Primary button4.70:1AA
Secondary button4.09:1AA Large
Muted text5.38:1AA
Accent5.36:1AA
Destructive3.86:1AA Large
Dark mode
Text on background18.82:1AAA
Text on card18.82:1AAA
Primary button4.70:1AA
Secondary button4.09:1AA Large
Muted text7.41:1AAA
Accent5.36:1AA
Destructive3.57:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.005 44.926);
  --foreground: oklch(0.13 0.013 51.678);
  --muted: oklch(0.945 0.016 155.541);
  --muted-foreground: oklch(0.486 0.027 154.753);
  --popover: oklch(0.984 0.005 44.926);
  --popover-foreground: oklch(0.13 0.013 51.678);
  --card: oklch(0.984 0.005 44.926);
  --card-foreground: oklch(0.13 0.013 51.678);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.56 0.03 44.514);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.585 0.048 154.208);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.53 0.048 298.482);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.624 0.184 42.479);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.56 0.03 44.514);
  --chart-1: oklch(0.56 0.03 44.514);
  --chart-2: oklch(0.585 0.048 154.208);
  --chart-3: oklch(0.53 0.048 298.482);
  --chart-4: oklch(0.613 0.05 154.197);
  --chart-5: oklch(0.56 0.038 44.426);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.13 0.013 51.678);
  --foreground: oklch(0.977 0.001 44.967);
  --muted: oklch(0.204 0.023 153.495);
  --muted-foreground: oklch(0.726 0.025 155.204);
  --popover: oklch(0.13 0.013 51.678);
  --popover-foreground: oklch(0.977 0.001 44.967);
  --card: oklch(0.13 0.013 51.678);
  --card-foreground: oklch(0.977 0.001 44.967);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.56 0.03 44.514);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.585 0.048 154.208);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.53 0.048 298.482);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.644 0.19 42.39);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.56 0.03 44.514);
  --chart-1: oklch(0.56 0.03 44.514);
  --chart-2: oklch(0.585 0.048 154.208);
  --chart-3: oklch(0.53 0.048 298.482);
  --chart-4: oklch(0.613 0.05 154.197);
  --chart-5: oklch(0.56 0.038 44.426);
}