Buttery is a shadcn/ui theme built around a deep blue primary color (#122535) with near-white accents (#e8e8e8). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the deep blue primary (#122535) on a neutral background (#040507).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfdwhite | #040507black |
| Foreground | #030b12black | #ffffffwhite |
| Card | #fcfdfdwhite | #040507black |
| Card foreground | #030b12black | #ffffffwhite |
| Popover | #fcfdfdwhite | #040507black |
| Popover foreground | #030b12black | #ffffffwhite |
| Primary | #122535darkslategray | #122535darkslategray |
| Primary foreground | #9cc0ddlightsteelblue | #9cc0ddlightsteelblue |
| Secondary | #e8e8e8lavender | #1e2429darkslategray |
| Secondary foreground | #4e4f50darkslategray | #b2bec7silver |
| Muted | #e1e6ealavender | #151a1eblack |
| Muted foreground | #5a646cdimgray | #939ca5darkgray |
| Accent | #e8e8e8lavender | #1e2429darkslategray |
| Accent foreground | #4e4f50darkslategray | #b2bec7silver |
| Destructive | #710e05maroon | #f52714orangered |
| Destructive foreground | #fcb2aclightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #122535darkslategray | #122535darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.36:1 | AAA |
| Text on card | 19.36:1 | AAA |
| Primary button | 8.15:1 | AAA |
| Secondary button | 6.70:1 | AA |
| Muted text | 4.80:1 | AA |
| Accent | 6.70:1 | AA |
| Destructive | 6.87:1 | AA |
| Text on background | 20.38:1 | AAA |
| Text on card | 20.38:1 | AAA |
| Primary button | 8.15:1 | AAA |
| Secondary button | 8.24:1 | AAA |
| Muted text | 6.29:1 | AA |
| Accent | 8.24:1 | AAA |
| Destructive | 4.04:1 | AA Large |
Paste this into your globals.css to use Buttery in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.001 242.212);
--foreground: oklch(0.143 0.022 237.657);
--muted: oklch(0.922 0.007 242.299);
--muted-foreground: oklch(0.499 0.018 242.668);
--popover: oklch(0.992 0.001 242.212);
--popover-foreground: oklch(0.143 0.022 237.657);
--card: oklch(0.992 0.001 242.212);
--card-foreground: oklch(0.143 0.022 237.657);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.258 0.039 244.82);
--primary-foreground: oklch(0.791 0.057 243.198);
--secondary: oklch(0.931 0 242.199);
--secondary-foreground: oklch(0.428 0.002 242.244);
--accent: oklch(0.931 0 242.199);
--accent-foreground: oklch(0.428 0.002 242.244);
--destructive: oklch(0.352 0.133 30.336);
--destructive-foreground: oklch(0.832 0.087 24.901);
--ring: oklch(0.258 0.039 244.82);
--chart-1: oklch(0.258 0.039 244.82);
--chart-2: oklch(0.931 0 242.199);
--chart-3: oklch(0.931 0 242.199);
--chart-4: oklch(0.954 0 242.197);
--chart-5: oklch(0.258 0.041 245.045);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.115 0.006 238.084);
--foreground: oklch(1 0 180);
--muted: oklch(0.214 0.011 242.861);
--muted-foreground: oklch(0.689 0.016 242.509);
--popover: oklch(0.115 0.006 238.084);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.115 0.006 238.084);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.258 0.039 244.82);
--primary-foreground: oklch(0.791 0.057 243.198);
--secondary: oklch(0.257 0.013 242.895);
--secondary-foreground: oklch(0.795 0.019 242.506);
--accent: oklch(0.257 0.013 242.895);
--accent-foreground: oklch(0.795 0.019 242.506);
--destructive: oklch(0.622 0.238 30.093);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.258 0.039 244.82);
--chart-1: oklch(0.258 0.039 244.82);
--chart-2: oklch(0.257 0.013 242.895);
--chart-3: oklch(0.257 0.013 242.895);
--chart-4: oklch(0.289 0.016 242.934);
--chart-5: oklch(0.258 0.041 245.045);
}