Bread is a shadcn/ui theme built around a muted blue primary color (#7e8ea5) with muted orange accents (#a5957e). The light mode uses a neutral background (#f7f9fd). Dark mode keeps the muted blue primary (#7e8ea5) on a neutral background (#030507).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f9fdghostwhite | #030507black |
| Foreground | #03070dblack | #fcfcfdwhite |
| Card | #f7f9fdghostwhite | #030507black |
| Card foreground | #03070dblack | #fcfcfdwhite |
| Popover | #f7f9fdghostwhite | #030507black |
| Popover foreground | #03070dblack | #fcfcfdwhite |
| Primary | #7e8ea5lightslategray | #7e8ea5lightslategray |
| Primary foreground | #000000black | #000000black |
| Secondary | #a5957erosybrown | #a5957erosybrown |
| Secondary foreground | #000000black | #000000black |
| Muted | #f0e9e0antiquewhite | #1f180fblack |
| Muted foreground | #685e50dimgray | #afa597darkgray |
| Accent | #a5957erosybrown | #a5957erosybrown |
| Accent foreground | #000000black | #000000black |
| Destructive | #a82e10firebrick | #eb4b24chocolate |
| Destructive foreground | #fdf0ecseashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7e8ea5lightslategray | #7e8ea5lightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.19:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 6.29:1 | AA |
| Secondary button | 7.17:1 | AAA |
| Muted text | 5.29:1 | AA |
| Accent | 7.17:1 | AAA |
| Destructive | 6.15:1 | AA |
| Text on background | 19.91:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 6.29:1 | AA |
| Secondary button | 7.17:1 | AAA |
| Muted text | 7.21:1 | AAA |
| Accent | 7.17:1 | AAA |
| Destructive | 3.77:1 | AA Large |
Paste this into your globals.css to use Bread in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 256.674);
--foreground: oklch(0.124 0.018 247.463);
--muted: oklch(0.938 0.015 76.573);
--muted-foreground: oklch(0.486 0.025 76.293);
--popover: oklch(0.982 0.005 256.674);
--popover-foreground: oklch(0.124 0.018 247.463);
--card: oklch(0.982 0.005 256.674);
--card-foreground: oklch(0.124 0.018 247.463);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.642 0.04 256.805);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.677 0.038 76.242);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.677 0.038 76.242);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.488 0.163 34.286);
--destructive-foreground: oklch(0.964 0.015 34.298);
--ring: oklch(0.642 0.04 256.805);
--chart-1: oklch(0.642 0.04 256.805);
--chart-2: oklch(0.677 0.038 76.242);
--chart-3: oklch(0.677 0.038 76.242);
--chart-4: oklch(0.7 0.035 76.306);
--chart-5: oklch(0.64 0.046 256.817);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.112 0.008 251.859);
--foreground: oklch(0.992 0.001 256.655);
--muted: oklch(0.216 0.021 75.623);
--muted-foreground: oklch(0.727 0.023 76.471);
--popover: oklch(0.112 0.008 251.859);
--popover-foreground: oklch(0.992 0.001 256.655);
--card: oklch(0.112 0.008 251.859);
--card-foreground: oklch(0.992 0.001 256.655);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.642 0.04 256.805);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.677 0.038 76.242);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.677 0.038 76.242);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.634 0.202 34.664);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.642 0.04 256.805);
--chart-1: oklch(0.642 0.04 256.805);
--chart-2: oklch(0.677 0.038 76.242);
--chart-3: oklch(0.677 0.038 76.242);
--chart-4: oklch(0.7 0.035 76.306);
--chart-5: oklch(0.64 0.046 256.817);
}