Accompanist for shadcn/ui

Accompanist is a shadcn/ui theme built around a light pink primary color (#f3ddea) with neutral gray accents (#d4ced2). The light mode uses a neutral background (#fefbfd). Dark mode keeps the light pink primary (#f3ddea) on a pink-tinted background (#10040b).

Color palette

TokenLightDark
Background
#fefbfdsnow
#10040bblack
Foreground
#000000black
#fcf8fasnow
Card
#fefbfdsnow
#10040bblack
Card foreground
#000000black
#fcf8fasnow
Popover
#fefbfdsnow
#10040bblack
Popover foreground
#000000black
#fcf8fasnow
Primary
#f3ddeamistyrose
#f3ddeamistyrose
Primary foreground
#752957purple
#752957purple
Secondary
#d4ced2lightgrey
#1f141bblack
Secondary foreground
#3b3539darkslategray
#c2a3b6darkgray
Muted
#f1eef0whitesmoke
#110e10black
Muted foreground
#6c5a65dimgray
#a5939ddarkgray
Accent
#d4ced2lightgrey
#1f141bblack
Accent foreground
#3b3539darkslategray
#c2a3b6darkgray
Destructive
#662c0bsaddlebrown
#ea7734peru
Destructive foreground
#f6c7acwheat
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f3ddeamistyrose
#f3ddeamistyrose

Contrast

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

Light mode
Text on background20.39:1AAA
Text on card20.39:1AAA
Primary button7.39:1AAA
Secondary button7.74:1AAA
Muted text5.55:1AA
Accent7.74:1AAA
Destructive7.11:1AAA
Dark mode
Text on background19.07:1AAA
Text on card19.07:1AAA
Primary button7.39:1AAA
Secondary button7.83:1AAA
Muted text6.64:1AA
Accent7.83:1AAA
Destructive7.15:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.005 340.341);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.953 0.004 340.33);
  --muted-foreground: oklch(0.491 0.028 341.497);
  --popover: oklch(0.99 0.005 340.341);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.99 0.005 340.341);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.919 0.03 340.952);
  --primary-foreground: oklch(0.408 0.119 346.629);
  --secondary: oklch(0.858 0.008 340.432);
  --secondary-foreground: oklch(0.336 0.012 341.004);
  --accent: oklch(0.858 0.008 340.432);
  --accent-foreground: oklch(0.336 0.012 341.004);
  --destructive: oklch(0.368 0.093 46.236);
  --destructive-foreground: oklch(0.865 0.065 51.621);
  --ring: oklch(0.919 0.03 340.952);
  --chart-1: oklch(0.919 0.03 340.952);
  --chart-2: oklch(0.858 0.008 340.432);
  --chart-3: oklch(0.858 0.008 340.432);
  --chart-4: oklch(0.882 0.006 340.393);
  --chart-5: oklch(0.919 0.032 340.997);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.029 342.473);
  --foreground: oklch(0.983 0.004 340.333);
  --muted: oklch(0.167 0.006 341.071);
  --muted-foreground: oklch(0.681 0.026 341.081);
  --popover: oklch(0.136 0.029 342.473);
  --popover-foreground: oklch(0.983 0.004 340.333);
  --card: oklch(0.136 0.029 342.473);
  --card-foreground: oklch(0.983 0.004 340.333);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.919 0.03 340.952);
  --primary-foreground: oklch(0.408 0.119 346.629);
  --secondary: oklch(0.209 0.02 342.291);
  --secondary-foreground: oklch(0.749 0.044 341.506);
  --accent: oklch(0.209 0.02 342.291);
  --accent-foreground: oklch(0.749 0.044 341.506);
  --destructive: oklch(0.69 0.162 47.442);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.919 0.03 340.952);
  --chart-1: oklch(0.919 0.03 340.952);
  --chart-2: oklch(0.209 0.02 342.291);
  --chart-3: oklch(0.209 0.02 342.291);
  --chart-4: oklch(0.24 0.025 342.472);
  --chart-5: oklch(0.919 0.032 340.997);
}