Buffer is a shadcn/ui theme built around a deep blue primary color (#0e161b) with deep blue accents (#0e101b). The light mode uses a neutral background (#fbfdfd). Dark mode keeps the deep blue primary (#0e161b) on a neutral background (#040507).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfdwhite | #040507black |
| Foreground | #040f16black | #f6f8f9whitesmoke |
| Card | #f8fafcghostwhite | #05080ablack |
| Card foreground | #030c12black | #f9fafbghostwhite |
| Popover | #f8fafcghostwhite | #05080ablack |
| Popover foreground | #030c12black | #f9fafbghostwhite |
| Primary | #0e161bblack | #0e161bblack |
| Primary foreground | #94b3c7darkgray | #94b3c7darkgray |
| Secondary | #0e1b19black | #0e1b19black |
| Secondary foreground | #94c7c1lightsteelblue | #94c7c1lightsteelblue |
| Muted | #d6e1e0gainsboro | #1e2928darkslategray |
| Muted foreground | #5e5e5edimgray | #a1a1a1darkgray |
| Accent | #0e101bblack | #0e101bblack |
| Accent foreground | #949ac7darkgray | #949ac7darkgray |
| Destructive | #9c1902darkred | #f12704orangered |
| Destructive foreground | #fed8d2bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0e161bblack | #0e161bblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.94:1 | AAA |
| Text on card | 18.88:1 | AAA |
| Primary button | 8.30:1 | AAA |
| Secondary button | 9.43:1 | AAA |
| Muted text | 4.84:1 | AA |
| Accent | 6.96:1 | AA |
| Destructive | 6.25:1 | AA |
| Text on background | 19.11:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 8.30:1 | AAA |
| Secondary button | 9.43:1 | AAA |
| Muted text | 5.76:1 | AA |
| Accent | 6.96:1 | AA |
| Destructive | 4.16:1 | AA Large |
Paste this into your globals.css to use Buffer in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 234.531);
--foreground: oklch(0.16 0.024 234.144);
--muted: oklch(0.901 0.012 188.582);
--muted-foreground: oklch(0.483 0 180);
--popover: oklch(0.985 0.003 234.555);
--popover-foreground: oklch(0.146 0.021 231.458);
--card: oklch(0.985 0.003 234.555);
--card-foreground: oklch(0.146 0.021 231.458);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.194 0.015 235.881);
--primary-foreground: oklch(0.751 0.044 235.464);
--secondary: oklch(0.209 0.018 186.675);
--secondary-foreground: oklch(0.792 0.054 187.223);
--accent: oklch(0.175 0.023 277.918);
--accent-foreground: oklch(0.698 0.066 278.682);
--destructive: oklch(0.446 0.167 31.904);
--destructive-foreground: oklch(0.914 0.043 29.71);
--ring: oklch(0.194 0.015 235.881);
--chart-1: oklch(0.194 0.015 235.881);
--chart-2: oklch(0.209 0.018 186.675);
--chart-3: oklch(0.175 0.023 277.918);
--chart-4: oklch(0.247 0.024 186.426);
--chart-5: oklch(0.194 0.017 236.046);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.116 0.007 230.594);
--foreground: oklch(0.977 0.002 234.542);
--muted: oklch(0.271 0.016 187.457);
--muted-foreground: oklch(0.708 0 158.199);
--popover: oklch(0.132 0.008 230.594);
--popover-foreground: oklch(0.985 0.002 234.53);
--card: oklch(0.132 0.008 230.594);
--card-foreground: oklch(0.985 0.002 234.53);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.194 0.015 235.881);
--primary-foreground: oklch(0.751 0.044 235.464);
--secondary: oklch(0.209 0.018 186.675);
--secondary-foreground: oklch(0.792 0.054 187.223);
--accent: oklch(0.175 0.023 277.918);
--accent-foreground: oklch(0.698 0.066 278.682);
--destructive: oklch(0.615 0.235 31.375);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.194 0.015 235.881);
--chart-1: oklch(0.194 0.015 235.881);
--chart-2: oklch(0.209 0.018 186.675);
--chart-3: oklch(0.175 0.023 277.918);
--chart-4: oklch(0.247 0.024 186.426);
--chart-5: oklch(0.194 0.017 236.046);
}