CSS Arrow Breadcrumbs

Breadcrumbs shaped as interlocking arrow segments with clip-path, with the current page filled in.

  • breadcrumbs
  • chevron
  • clip-path
  • steps
  • ribbon
HTML
<nav class="arrow-crumbs" aria-label="Breadcrumb">
  <ol>
    <li><a href="#">Shop</a></li>
    <li><a href="#">Shoes</a></li>
    <li><span aria-current="page">Running</span></li>
  </ol>
</nav>
CSS
.arrow-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 600 13px system-ui, sans-serif;
}

.arrow-crumbs a,
.arrow-crumbs span {
  position: relative;
  z-index: 0;
  display: block;
  padding: 9px 14px 9px 22px;
  color: #4338ca;
  text-decoration: none;
}

.arrow-crumbs li + li {
  margin-left: -6px;
}

/* Arrow shape lives on a pseudo-element so focus outlines are not clipped */
.arrow-crumbs a::before,
.arrow-crumbs span::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: #e0e7ff;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%);
  transition: background-color 0.2s ease;
}

.arrow-crumbs li:first-child a::before {
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}

.arrow-crumbs li:first-child a {
  padding-left: 14px;
}

.arrow-crumbs a:hover::before {
  background: #c7d2fe;
}

.arrow-crumbs span {
  color: #ffffff;
}

.arrow-crumbs span::before {
  background: #4f46e5;
}

.arrow-crumbs a:focus-visible {
  border-radius: 4px;
  outline: 2px solid #4f46e5;
  outline-offset: 1px;
}

About this CSS Arrow Breadcrumbs

This CSS Arrow Breadcrumbs is 61 lines of pure CSS (1.2 KB) with no JavaScript and no dependencies. It uses transitions, clip paths, Flexbox and keyboard focus styles. 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:

  • #4338ca
  • #e0e7ff
  • #c7d2fe
  • #ffffff
  • #4f46e5

How to use this arrow 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 .arrow-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