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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.67:1 | AAA |
| Text on card | 19.34:1 | AAA |
| Primary button | 6.97:1 | AA |
| Secondary button | 4.62:1 | AA |
| Muted text | 4.34:1 | AA Large |
| Accent | 6.19:1 | AA |
| Destructive | 6.95:1 | AA |
| Text on background | 19.94:1 | AAA |
| Text on card | 20.08:1 | AAA |
| Primary button | 6.97:1 | AA |
| Secondary button | 4.62:1 | AA |
| Muted text | 6.06:1 | AA |
| Accent | 6.19:1 | AA |
| Destructive | 3.43:1 | AA Large |
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);
}