Buffer for shadcn/ui

Buffer is a shadcn/ui theme built around a pink primary color (#7d4065) with blue accents (#40657d). The light mode uses a neutral background (#fdf7fb). Dark mode keeps the pink primary (#7d4065) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf7fbsnow
#000000black
Foreground
#040103black
#fcf8fasnow
Card
#fbf3f8lavenderblush
#030303black
Card foreground
#000000black
#fdfbfdsnow
Popover
#fbf3f8lavenderblush
#030303black
Popover foreground
#000000black
#fdfbfdsnow
Primary
#7d4065dimgray
#7d4065dimgray
Primary foreground
#faf5f8whitesmoke
#faf5f8whitesmoke
Secondary
#657d40darkolivegreen
#657d40darkolivegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e4e7dfgainsboro
#1d2018black
Muted foreground
#676b61dimgray
#9a9e94darkgray
Accent
#40657ddarkslateblue
#40657ddarkslateblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#6d1503maroon
#fa4c29tomato
Destructive foreground
#fdb4a5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7d4065dimgray
#7d4065dimgray

Contrast

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

Light mode
Text on background19.67:1AAA
Text on card19.34:1AAA
Primary button6.97:1AA
Secondary button4.62:1AA
Muted text4.34:1AA Large
Accent6.19:1AA
Destructive6.95:1AA
Dark mode
Text on background19.94:1AAA
Text on card20.08:1AAA
Primary button6.97:1AA
Secondary button4.62:1AA
Muted text6.06:1AA
Accent6.19:1AA
Destructive3.43:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.007 339.625);
  --foreground: oklch(0.085 0.017 339.675);
  --muted: oklch(0.923 0.01 123.803);
  --muted-foreground: oklch(0.522 0.016 124.109);
  --popover: oklch(0.973 0.01 339.705);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.973 0.01 339.705);
  --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.46 0.096 343.764);
  --primary-foreground: oklch(0.974 0.007 339.617);
  --secondary: oklch(0.555 0.09 126.376);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.49 0.056 236.837);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.351 0.125 33.112);
  --destructive-foreground: oklch(0.835 0.088 31.62);
  --ring: oklch(0.46 0.096 343.764);
  --chart-1: oklch(0.46 0.096 343.764);
  --chart-2: oklch(0.555 0.09 126.376);
  --chart-3: oklch(0.49 0.056 236.837);
  --chart-4: oklch(0.587 0.096 126.401);
  --chart-5: oklch(0.46 0.105 344.158);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.005 339.585);
  --muted: oklch(0.237 0.014 124.546);
  --muted-foreground: oklch(0.693 0.015 123.968);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.991 0.003 339.526);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.991 0.003 339.526);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.46 0.096 343.764);
  --primary-foreground: oklch(0.974 0.007 339.617);
  --secondary: oklch(0.555 0.09 126.376);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.49 0.056 236.837);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.659 0.215 33.107);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.46 0.096 343.764);
  --chart-1: oklch(0.46 0.096 343.764);
  --chart-2: oklch(0.555 0.09 126.376);
  --chart-3: oklch(0.49 0.056 236.837);
  --chart-4: oklch(0.587 0.096 126.401);
  --chart-5: oklch(0.46 0.105 344.158);
}