Breadcrumbs - Component
Code
Source (Nunjucks)
<nav class="breadcrumbs" aria-label="breadcrumbs">
<ul class="breadcrumbs__list" role="list">
<li>
<a href="/">
{% raw %}
<!-- USE THIS IN THE MAIN SITE: {{ svg('../../images/lockup.svg', {label: 'web.dev'}) }} -->
{% endraw %}
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 125 28.5" enable-background="new 0 0 125 28.5"><path d="M24 17.3h-8.9c-.1 0-.3 0-.4.1L8 22.7c-.1.1-.1.2 0 .3 0 .1.1.1.2.1h15.9c1.6 0 3-1.4 2.9-3.1-.1-1.6-1.5-2.7-3-2.7" fill-rule="evenodd" clip-rule="evenodd" fill="#00c9db"/><g transform="translate(.639 .717)"><defs><filter id="a" filterUnits="userSpaceOnUse" x="0" y=".1" width="16.1" height="22.3"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"/></filter></defs><mask maskUnits="userSpaceOnUse" x="0" y=".1" width="16.1" height="22.3" id="b"><path d="M0 .1h16.1v22.3H0V.1z" fill-rule="evenodd" clip-rule="evenodd" fill="#fff" filter="url(#a)"/></mask><path d="M16.1 11c-.1-.8-.5-1.6-1.1-2.1L4.7.7c-1.3-1-3.1-.8-4.1.5-1 1.3-.8 3.1.5 4.1l7.5 6-7.5 6c-1.3 1-1.5 2.8-.5 4.1 1 1.3 2.8 1.5 4.1.5L15 13.5c.7-.6 1.1-1.4 1.1-2.3V11" mask="url(#b)" fill-rule="evenodd" clip-rule="evenodd" fill="#0d55ff"/></g><path d="M27 20.2c0 1.6-1.3 2.9-2.9 2.9-1.6 0-2.9-1.3-2.9-2.9 0-1.6 1.3-2.9 2.9-2.9 1.6 0 2.9 1.3 2.9 2.9" fill-rule="evenodd" clip-rule="evenodd" fill="#7000f2"/><path d="M119.6 20.1h-2.2l-4.8-11.9h2.4l3.5 9.2 3.5-9.2h2.4l-4.8 11.9zm-16.8-7.3h6.8c-.1-1.6-1.4-2.9-3.4-2.9-1.7 0-3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<li>
<a href="/learn/">Learn</a>
</li>
<li>
<a href="/learn/css/">CSS</a>
</li>
</ul>
</nav>
Output
<nav class="breadcrumbs" aria-label="breadcrumbs">
<ul class="breadcrumbs__list" role="list">
<li>
<a href="/">
<!-- USE THIS IN THE MAIN SITE: {{ svg('../../images/lockup.svg', {label: 'web.dev'}) }} -->
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 125 28.5"
enable-background="new 0 0 125 28.5"
>
<path
d="M24 17.3h-8.9c-.1 0-.3 0-.4.1L8 22.7c-.1.1-.1.2 0 .3 0 .1.1.1.2.1h15.9c1.6 0 3-1.4 2.9-3.1-.1-1.6-1.5-2.7-3-2.7"
fill-rule="evenodd"
clip-rule="evenodd"
fill="#00c9db"
/>
<g transform="translate(.639 .717)">
<defs>
<filter
id="a"
filterUnits="userSpaceOnUse"
x="0"
y=".1"
width="16.1"
height="22.3"
>
<feColorMatrix
values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"
/>
</filter>
</defs>
<mask
maskUnits="userSpaceOnUse"
x="0"
y=".1"
width="16.1"
height="22.3"
id="b"
>
<path
d="M0 .1h16.1v22.3H0V.1z"
fill-rule="evenodd"
clip-rule="evenodd"
fill="#fff"
filter="url(#a)"
/>
</mask>
<path
d="M16.1 11c-.1-.8-.5-1.6-1.1-2.1L4.7.7c-1.3-1-3.1-.8-4.1.5-1 1.3-.8 3.1.5 4.1l7.5 6-7.5 6c-1.3 1-1.5 2.8-.5 4.1 1 1.3 2.8 1.5 4.1.5L15 13.5c.7-.6 1.1-1.4 1.1-2.3V11"
mask="url(#b)"
fill-rule="evenodd"
clip-rule="evenodd"
fill="#0d55ff"
/>
</g>
<path
d="M27 20.2c0 1.6-1.3 2.9-2.9 2.9-1.6 0-2.9-1.3-2.9-2.9 0-1.6 1.3-2.9 2.9-2.9 1.6 0 2.9 1.3 2.9 2.9"
fill-rule="evenodd"
clip-rule="evenodd"
fill="#7000f2"
/>
<path
d="M119.6 20.1h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3h2.3l2.6 9 2.9-9h2.3l2.9 9 2.6-9h2.6z"
fill-rule="evenodd"
clip-rule="evenodd"
class="brand-primary"
fill="#5f6368"
/>
</svg>
</a>
</li>
<li>
<a href="/learn/">Learn</a>
</li>
<li>
<a href="/learn/css/">CSS</a>
</li>
</ul>
</nav>
Information
A simple navigation pattern that adds spacing and decoration between each item. Beware that there is now flex wrapping, so try to keep this as succinct as possible.