Clickables with Emdash are largely interchangeable with only minor differences, namely: labels do not wrap and links can optionally use their default link styling or be paired with buttons/labels.
Breadcrumbs #
<nav id="breadcrumbs" class="breadcrumbs mb-6" aria-label="breadcrumbs">
<div class="breadcrumb"> <a href="//localhost:1313/" class="purple text-xs uppercase">Emdash CSS</a> </div>
<div class="breadcrumb"> <a href="//localhost:1313/layouts/" class="purple text-xs uppercase">Layouts</a> </div>
<div class="breadcrumb"> <a href="//localhost:1313/layouts/spreads/" class="purple text-xs uppercase">Spreads</a> </div>
</nav>
Buttons #
A button
can be used in a Spread or a Stack. They automatically align text to their x-
and y-
center. Buttons inherit their color
and background-color
– this makes it easy to use color classes that will always be legible.
<section class="spread">
<div class="spread-center c-sp-1 c-rounded-4">
<button class=" black text-xs"> Get Started</button>
<button class=" white text-xs"> Get Started</button>
<button class=" red text-xs"> Get Started</button>
<button class=" blue text-xs"> Get Started</button>
<button class=" green text-xs"> Get Started</button>
<button class=" yellow text-xs"> Get Started</button>
</div>
<div class="stack-center c-sp-1 c-rounded-4">
<button class=" black text-xs"> Get Started</button>
<button class=" white text-xs"> Get Started</button>
<button class=" red text-xs"> Get Started</button>
<button class=" blue text-xs"> Get Started</button>
<button class=" green text-xs"> Get Started</button>
<button class=" yellow text-xs"> Get Started</button>
</div>
</section>
Labels #
A label
can be used in a Spread or a Stack. They automatically align text to their x-
and y-
center, however their text does not wrap. Labels inherit their color
and background-color
– this makes it easy to use color classes that will always be legible. They do not convert your mouse to a pointer.
<section class="spread c-pinned-top">
<div class="spread-left c-sp-1">
<div class="label black text-xs"> Dog</div>
<div class="label white text-xs"> Cat</div>
<div class="label red text-xs"> Pamplemousse</div>
<div class="label blue text-xs"> Pokemon</div>
<div class="label green text-xs"> Wildlding</div>
<div class="label yellow text-xs"> Unknown</div>
</div>
<div class="stack-center c-sp-1">
<div class="label black text-xs"> Dog</div>
<div class="label white text-xs"> Cat</div>
<div class="label red text-xs"> Pamplemousse</div>
<div class="label blue text-xs"> Pokemon</div>
<div class="label green text-xs"> Wildling</div>
<div class="label yellow text-xs"> Unknown</div>
</div>
</section>
Links #
Links can either use their default styling or have their styling overriden by color
, label
, and button
classes.
<section class="spread c-pinned-top">
<div class="spread-left c-sp-1">
<a class="text-xs" href="google.com"> default link</a>
<a class="black xs" href="google.com"> colored link</a>
<a class="white text-xs text-right" href="google.com"> link right </a>
<a class="red text-xs text-center" href="google.com"> link center </a>
</div>
<div class="stack c-sp-1">
<a class="black xs" href="google.com"> link</a>
<a class="white text-xs text-right" href="google.com"> link</a>
<a class="red text-xs text-center" href="google.com"> link</a>
</div>
</section>