Buckle is a shadcn/ui theme built around a muted blue primary color (#5f6a95) with muted yellow accents (#958b5f). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the muted blue primary (#5f6a95) on a blue-tinted background (#06080e).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #06080eblack |
| Foreground | #03050dblack | #f8f9fcghostwhite |
| Card | #fcfcfdwhite | #06080eblack |
| Card foreground | #03050dblack | #f8f9fcghostwhite |
| Popover | #fcfcfdwhite | #06080eblack |
| Popover foreground | #03050dblack | #f8f9fcghostwhite |
| Primary | #5f6a95slategray | #5f6a95slategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #958b5fgray | #958b5fgray |
| Secondary foreground | #000000black | #000000black |
| Muted | #e3e2degainsboro | #21201cblack |
| Muted foreground | #69675ddimgray | #a29f96darkgray |
| Accent | #958b5fgray | #958b5fgray |
| Accent foreground | #000000black | #000000black |
| Destructive | #e33b02orangered | #fd6735tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5f6a95slategray | #5f6a95slategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.83:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 5.25:1 | AA |
| Secondary button | 6.11:1 | AA |
| Muted text | 4.37:1 | AA Large |
| Accent | 6.11:1 | AA |
| Destructive | 4.29:1 | AA Large |
| Text on background | 19.03:1 | AAA |
| Text on card | 19.03:1 | AAA |
| Primary button | 5.25:1 | AA |
| Secondary button | 6.11:1 | AA |
| Muted text | 6.15:1 | AA |
| Accent | 6.11:1 | AA |
| Destructive | 7.16:1 | AAA |
Paste this into your globals.css to use Buckle in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 275.01);
--foreground: oklch(0.114 0.023 266.249);
--muted: oklch(0.912 0.005 95.103);
--muted-foreground: oklch(0.513 0.015 95.354);
--popover: oklch(0.991 0.002 275.01);
--popover-foreground: oklch(0.114 0.023 266.249);
--card: oklch(0.991 0.002 275.01);
--card-foreground: oklch(0.114 0.023 266.249);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.534 0.069 273.072);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.634 0.061 95.782);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.634 0.061 95.782);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.603 0.211 34.858);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.534 0.069 273.072);
--chart-1: oklch(0.534 0.069 273.072);
--chart-2: oklch(0.634 0.061 95.782);
--chart-3: oklch(0.634 0.061 95.782);
--chart-4: oklch(0.66 0.062 95.777);
--chart-5: oklch(0.528 0.079 272.719);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.134 0.015 271.224);
--foreground: oklch(0.981 0.004 274.979);
--muted: oklch(0.243 0.007 95.366);
--muted-foreground: oklch(0.702 0.014 95.258);
--popover: oklch(0.134 0.015 271.224);
--popover-foreground: oklch(0.981 0.004 274.979);
--card: oklch(0.134 0.015 271.224);
--card-foreground: oklch(0.981 0.004 274.979);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.534 0.069 273.072);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.634 0.061 95.782);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.634 0.061 95.782);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.696 0.194 38.081);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.534 0.069 273.072);
--chart-1: oklch(0.534 0.069 273.072);
--chart-2: oklch(0.634 0.061 95.782);
--chart-3: oklch(0.634 0.061 95.782);
--chart-4: oklch(0.66 0.062 95.777);
--chart-5: oklch(0.528 0.079 272.719);
}