Breadfruit is a shadcn/ui theme built around a near-white primary color (#f8fcf9) with near-white accents (#f8fcfa). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#f8fcf9) on a neutral background (#020402).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020402black |
| Foreground | #010902black | #f8fcf8mintcream |
| Card | #fcfcfcsnow | #030703black |
| Card foreground | #010501black | #fbfdfcwhite |
| Popover | #ffffffwhite | #020402black |
| Popover foreground | #010902black | #f8fcf8mintcream |
| Primary | #f8fcf9mintcream | #f8fcf9mintcream |
| Primary foreground | #1f3d22darkslategray | #1f3d22darkslategray |
| Secondary | #fafcf8snow | #fafcf8snow |
| Secondary foreground | #2b3d1fdarkslategray | #2b3d1fdarkslategray |
| Muted | #dde0dcgainsboro | #21231fblack |
| Muted foreground | #40403fdarkslategray | #bfc0bfsilver |
| Accent | #f8fcfamintcream | #f8fcfamintcream |
| Accent foreground | #1f3d30darkslategray | #1f3d30darkslategray |
| Destructive | #792302maroon | #fc6327tomato |
| Destructive foreground | #fec5afpeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f8fcf9mintcream | #f8fcf9mintcream |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.16:1 | AAA |
| Text on card | 20.07:1 | AAA |
| Primary button | 11.56:1 | AAA |
| Secondary button | 11.32:1 | AAA |
| Muted text | 7.80:1 | AAA |
| Accent | 11.45:1 | AAA |
| Destructive | 6.72:1 | AA |
| Text on background | 19.90:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 11.56:1 | AAA |
| Secondary button | 11.32:1 | AAA |
| Muted text | 8.65:1 | AAA |
| Accent | 11.45:1 | AAA |
| Destructive | 6.95:1 | AA |
Paste this into your globals.css to use Breadfruit in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.124 0.03 146.224);
--muted: oklch(0.904 0.007 131.787);
--muted-foreground: oklch(0.372 0.002 131.776);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.124 0.03 146.224);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.099 0.024 146.224);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.986 0.005 148.008);
--primary-foreground: oklch(0.327 0.059 145.915);
--secondary: oklch(0.987 0.005 131.764);
--secondary-foreground: oklch(0.335 0.053 133.271);
--accent: oklch(0.987 0.004 169.559);
--accent-foreground: oklch(0.331 0.042 165.286);
--destructive: oklch(0.388 0.125 38.266);
--destructive-foreground: oklch(0.869 0.072 42.593);
--ring: oklch(0.986 0.005 148.008);
--chart-1: oklch(0.986 0.005 148.008);
--chart-2: oklch(0.987 0.005 131.764);
--chart-3: oklch(0.987 0.004 169.559);
--chart-4: oklch(1.006 0.002 311.706);
--chart-5: oklch(0.987 0.006 148.003);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.095 0.012 147.145);
--foreground: oklch(0.987 0.006 147.996);
--muted: oklch(0.254 0.009 132.032);
--muted-foreground: oklch(0.806 0.002 131.744);
--popover: oklch(0.095 0.012 147.145);
--popover-foreground: oklch(0.987 0.006 147.996);
--card: oklch(0.12 0.016 147.145);
--card-foreground: oklch(0.993 0.003 148.031);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.986 0.005 148.008);
--primary-foreground: oklch(0.327 0.059 145.915);
--secondary: oklch(0.987 0.005 131.764);
--secondary-foreground: oklch(0.335 0.053 133.271);
--accent: oklch(0.987 0.004 169.559);
--accent-foreground: oklch(0.331 0.042 165.286);
--destructive: oklch(0.689 0.199 39.558);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.986 0.005 148.008);
--chart-1: oklch(0.986 0.005 148.008);
--chart-2: oklch(0.987 0.005 131.764);
--chart-3: oklch(0.987 0.004 169.559);
--chart-4: oklch(1.006 0.002 311.706);
--chart-5: oklch(0.987 0.006 148.003);
}