CSS Home Icon Breadcrumbs

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

  • breadcrumbs
  • icon
  • chevron
  • pill
  • svg
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
.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;
}

About this CSS Home Icon Breadcrumbs

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. It works in current versions of Chrome, Edge, Safari and Firefox. It works in any stack: plain HTML, React, Vue, Svelte, Astro, WordPress or Webflow.

CSS features used

Customize it

The colors in this snippet. Search and replace them to match your brand:

  • #ffffff
  • #d1fae5
  • #064e3b14
  • #064e3b
  • #6ee7b7
  • #047857
  • #a7f3d0
  • #059669

How to use this home icon breadcrumbs

  1. Copy the HTML and paste it where you want the element to appear.
  2. Copy the CSS into your stylesheet, or inside a <style> tag.
  3. Keep the .home-crumbs class name, or rename it in both places. Then tweak colors, sizes and timing to match your design.
  4. Using React or Next.js? Change class to className in the HTML. The CSS works as is, including in Tailwind projects (put it in your global stylesheet).

Building with an AI tool?

“Copy for AI” copies a short prompt for Cursor, Claude Code, Lovable, Bolt or v0. Your AI tool opens the Markdown version of this snippet and reads the HTML, CSS and setup notes there. If your tool can't open links, with the code instead. More ways to use copy CSS with AI.

Feedback