Buffer is a shadcn/ui theme built around a deep yellow primary color (#696516) with deep green accents (#446916). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep yellow primary (#696516) on a yellow-tinted background (#0e0e06).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0e0e06black |
| Foreground | #000000black | #f9f9f6whitesmoke |
| Card | #fcfcfcsnow | #121108black |
| Card foreground | #000000black | #fbfbf9snow |
| Popover | #fcfcfcsnow | #121108black |
| Popover foreground | #000000black | #fbfbf9snow |
| Primary | #696516darkolivegreen | #696516darkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #693c16saddlebrown | #693c16saddlebrown |
| Secondary foreground | #f2d6c0peachpuff | #f2d6c0peachpuff |
| Muted | #e7dacfgainsboro | #302218black |
| Muted foreground | #4c4138darkslategray | #c7bcb3silver |
| Accent | #446916darkolivegreen | #446916darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #930b06darkred | #dc1009red |
| Destructive foreground | #fdd0cepink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #696516darkolivegreen | #696516darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.03:1 | AA |
| Secondary button | 6.72:1 | AA |
| Muted text | 7.23:1 | AAA |
| Accent | 6.39:1 | AA |
| Destructive | 6.59:1 | AA |
| Text on background | 18.38:1 | AAA |
| Text on card | 18.27:1 | AAA |
| Primary button | 6.03:1 | AA |
| Secondary button | 6.72:1 | AA |
| Muted text | 8.21:1 | AAA |
| Accent | 6.39:1 | AA |
| Destructive | 5.08:1 | AA |
Paste this into your globals.css to use Buffer in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.896 0.021 61.881);
--muted-foreground: oklch(0.385 0.021 61.42);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.496 0.096 106.332);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.403 0.081 56.504);
--secondary-foreground: oklch(0.894 0.043 61.528);
--accent: oklch(0.476 0.117 131.17);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.421 0.166 29.226);
--destructive-foreground: oklch(0.895 0.051 20.476);
--ring: oklch(0.496 0.096 106.332);
--chart-1: oklch(0.496 0.096 106.332);
--chart-2: oklch(0.403 0.081 56.504);
--chart-3: oklch(0.476 0.117 131.17);
--chart-4: oklch(0.436 0.089 56.303);
--chart-5: oklch(0.502 0.099 106.322);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.16 0.016 105.633);
--foreground: oklch(0.98 0.003 104.032);
--muted: oklch(0.267 0.028 60.476);
--muted-foreground: oklch(0.801 0.018 61.899);
--popover: oklch(0.175 0.018 105.58);
--popover-foreground: oklch(0.987 0.002 104.011);
--card: oklch(0.175 0.018 105.58);
--card-foreground: oklch(0.987 0.002 104.011);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.496 0.096 106.332);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.403 0.081 56.504);
--secondary-foreground: oklch(0.894 0.043 61.528);
--accent: oklch(0.476 0.117 131.17);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.566 0.227 29.271);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.496 0.096 106.332);
--chart-1: oklch(0.496 0.096 106.332);
--chart-2: oklch(0.403 0.081 56.504);
--chart-3: oklch(0.476 0.117 131.17);
--chart-4: oklch(0.436 0.089 56.303);
--chart-5: oklch(0.502 0.099 106.322);
}