Raiment for shadcn/ui

Raiment is a shadcn/ui theme built around a muted light violet primary color (#f7f6f9) with muted light purple accents (#f8f6f9). The light mode uses a neutral background (#f9f7fd). Dark mode keeps the muted light violet primary (#f7f6f9) on a violet-tinted background (#07050a).

Color palette

TokenLightDark
Background
#f9f7fdghostwhite
#07050ablack
Foreground
#080410black
#fcfcfdwhite
Card
#f6f3fbwhitesmoke
#09070eblack
Card foreground
#06030cblack
#ffffffwhite
Popover
#f9f7fdghostwhite
#07050ablack
Popover foreground
#080410black
#fcfcfdwhite
Primary
#f7f6f9whitesmoke
#f7f6f9whitesmoke
Primary foreground
#574b71darkslateblue
#574b71darkslateblue
Secondary
#f6f6f9whitesmoke
#f6f6f9whitesmoke
Secondary foreground
#4b5371darkslateblue
#4b5371darkslateblue
Muted
#eaedf5lavender
#0a0c15black
Muted foreground
#3f4355darkslategray
#aaaec0darkgray
Accent
#f8f6f9whitesmoke
#f8f6f9whitesmoke
Accent foreground
#6a4b71dimgray
#6a4b71dimgray
Destructive
#991206darkred
#f73826orangered
Destructive foreground
#fdd6d3mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f7f6f9whitesmoke
#f7f6f9whitesmoke

Contrast

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

Light mode
Text on background19.08:1AAA
Text on card18.66:1AAA
Primary button7.34:1AAA
Secondary button7.03:1AAA
Muted text8.34:1AAA
Accent6.83:1AA
Destructive6.46:1AA
Dark mode
Text on background19.78:1AAA
Text on card20.05:1AAA
Primary button7.34:1AAA
Secondary button7.03:1AAA
Muted text8.84:1AAA
Accent6.83:1AA
Destructive3.78:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.979 0.007 299.91);
  --foreground: oklch(0.124 0.031 298.763);
  --muted: oklch(0.946 0.011 274.885);
  --muted-foreground: oklch(0.387 0.031 273.914);
  --popover: oklch(0.979 0.007 299.91);
  --popover-foreground: oklch(0.124 0.031 298.763);
  --card: oklch(0.969 0.011 299.843);
  --card-foreground: oklch(0.112 0.027 300.02);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.974 0.004 299.966);
  --primary-foreground: oklch(0.442 0.062 297.579);
  --secondary: oklch(0.975 0.003 274.993);
  --secondary-foreground: oklch(0.448 0.051 273.362);
  --accent: oklch(0.975 0.005 319.446);
  --accent-foreground: oklch(0.462 0.07 319.456);
  --destructive: oklch(0.435 0.168 30.184);
  --destructive-foreground: oklch(0.909 0.044 24.121);
  --ring: oklch(0.974 0.004 299.966);
  --chart-1: oklch(0.974 0.004 299.966);
  --chart-2: oklch(0.975 0.003 274.993);
  --chart-3: oklch(0.975 0.005 319.446);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.974 0.005 299.955);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.014 300.151);
  --foreground: oklch(0.991 0.002 300.002);
  --muted: oklch(0.157 0.018 273.334);
  --muted-foreground: oklch(0.754 0.026 274.589);
  --popover: oklch(0.122 0.014 300.151);
  --popover-foreground: oklch(0.991 0.002 300.002);
  --card: oklch(0.134 0.016 299.379);
  --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.974 0.004 299.966);
  --primary-foreground: oklch(0.442 0.062 297.579);
  --secondary: oklch(0.975 0.003 274.993);
  --secondary-foreground: oklch(0.448 0.051 273.362);
  --accent: oklch(0.975 0.005 319.446);
  --accent-foreground: oklch(0.462 0.07 319.456);
  --destructive: oklch(0.638 0.228 29.874);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.974 0.004 299.966);
  --chart-1: oklch(0.974 0.004 299.966);
  --chart-2: oklch(0.975 0.003 274.993);
  --chart-3: oklch(0.975 0.005 319.446);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.974 0.005 299.955);
}