Buffer is a shadcn/ui theme built around a green primary color (#42bd44) with red accents (#bd4442). The light mode uses a neutral background (#fbfefb). Dark mode keeps the green primary (#42bd44) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #000000black |
| Foreground | #031703black | #f4faf4whitesmoke |
| Card | #f6fdf7mintcream | #030303black |
| Card foreground | #021202black | #f8fcf8mintcream |
| Popover | #f6fdf7mintcream | #030303black |
| Popover foreground | #021202black | #f8fcf8mintcream |
| Primary | #42bd44limegreen | #42bd44limegreen |
| Primary foreground | #0d260eblack | #0d260eblack |
| Secondary | #4442bdslateblue | #4442bdslateblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d9d9e3gainsboro | #1c1c26black |
| Muted foreground | #424242darkslategray | #bdbdbdsilver |
| Accent | #bd4442sienna | #bd4442sienna |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #c53902firebrick | #fc4903orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #42bd44limegreen | #42bd44limegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.33:1 | AAA |
| Text on card | 18.68:1 | AAA |
| Primary button | 6.58:1 | AA |
| Secondary button | 7.59:1 | AAA |
| Muted text | 7.16:1 | AAA |
| Accent | 5.15:1 | AA |
| Destructive | 5.30:1 | AA |
| Text on background | 19.82:1 | AAA |
| Text on card | 19.96:1 | AAA |
| Primary button | 6.58:1 | AA |
| Secondary button | 7.59:1 | AAA |
| Muted text | 8.96:1 | AAA |
| Accent | 5.15: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.994 0.006 146.007);
--foreground: oklch(0.18 0.05 143.549);
--muted: oklch(0.888 0.014 286.888);
--muted-foreground: oklch(0.38 0 180);
--popover: oklch(0.988 0.011 145.96);
--popover-foreground: oklch(0.162 0.044 143.65);
--card: oklch(0.988 0.011 145.96);
--card-foreground: oklch(0.162 0.044 143.65);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.704 0.194 143.414);
--primary-foreground: oklch(0.241 0.054 143.989);
--secondary: oklch(0.461 0.186 276.945);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.554 0.156 24.595);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.55 0.184 36.759);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.704 0.194 143.414);
--chart-1: oklch(0.704 0.194 143.414);
--chart-2: oklch(0.461 0.186 276.945);
--chart-3: oklch(0.554 0.156 24.595);
--chart-4: oklch(0.492 0.175 278.536);
--chart-5: oklch(0.713 0.202 143.31);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.98 0.01 145.969);
--muted: oklch(0.232 0.019 285.577);
--muted-foreground: oklch(0.797 0 180);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.987 0.007 145.998);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.987 0.007 145.998);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.704 0.194 143.414);
--primary-foreground: oklch(0.241 0.054 143.989);
--secondary: oklch(0.461 0.186 276.945);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.554 0.156 24.595);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.66 0.224 36.263);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.704 0.194 143.414);
--chart-1: oklch(0.704 0.194 143.414);
--chart-2: oklch(0.461 0.186 276.945);
--chart-3: oklch(0.554 0.156 24.595);
--chart-4: oklch(0.492 0.175 278.536);
--chart-5: oklch(0.713 0.202 143.31);
}