# Home Icon Breadcrumbs

> A pill-shaped breadcrumb bar that starts with a home icon and uses drawn chevrons as separators.

- Category: [CSS Navigation](https://copy-css.com/category/navigation)
- Tags: breadcrumbs, icon, chevron, pill, svg
- Live preview: https://copy-css.com/snippets/home-icon-breadcrumbs
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<nav class="home-crumbs" aria-label="Breadcrumb">
  <ol>
    <li><a href="#" aria-label="Home"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M3 11l9-8 9 8"/><path d="M5 10v10h5v-6h4v6h5V10"/></svg></a></li>
    <li><a href="#">Settings</a></li>
    <li aria-current="page">Alerts</li>
  </ol>
</nav>
```

## CSS

```css
.home-crumbs ol {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 6px 14px 6px 6px;
  list-style: none;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 1px #d1fae5, 0 2px 6px #064e3b14;
  color: #064e3b;
  font: 600 14px system-ui, sans-serif;
}

.home-crumbs li {
  display: flex;
  align-items: center;
}

/* Chevron drawn with two borders */
.home-crumbs li + li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin: 0 10px 0 4px;
  border: solid #6ee7b7;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}

.home-crumbs a {
  display: grid;
  place-items: center;
  min-height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  color: #047857;
  text-decoration: none;
}

.home-crumbs li:first-child a {
  width: 30px;
  padding: 0;
  background: #d1fae5;
}

.home-crumbs svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

.home-crumbs a:hover {
  background: #a7f3d0;
}

.home-crumbs a:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 1px;
}
```

## Notes

- This CSS Home Icon Breadcrumbs is 64 lines of pure CSS (1.1 KB) with no JavaScript and no dependencies. It uses transforms, box shadows, CSS Grid and Flexbox.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
