Skip to the content
Konstruktor UI

Website pieces

Steps and drawings

.kui-steps shows a short procedure as a numbered row on a laptop and a column on a phone. .kui-drawing colours a line drawing in SVG from the theme.

CSS only

Examples

Four steps

  1. Pozovite

    Recite za kada i za koliko osoba.

  2. Izaberite ukus

    Čokolada, voće ili orasi.

  3. Kapara

    Trećina cene, u pekari.

  4. Preuzimanje

    U dogovoreno vreme, ili dostavom.

HTML
<ol class="kui-steps" lang="sr-Latn">
  <li><h3 class="kui-steps__title">Pozovite</h3><p class="kui-steps__text">Recite za kada i za koliko osoba.</p></li>
  <li><h3 class="kui-steps__title">Izaberite ukus</h3><p class="kui-steps__text">Čokolada, voće ili orasi.</p></li>
  <li><h3 class="kui-steps__title">Kapara</h3><p class="kui-steps__text">Trećina cene, u pekari.</p></li>
  <li><h3 class="kui-steps__title">Preuzimanje</h3><p class="kui-steps__text">U dogovoreno vreme, ili dostavom.</p></li>
</ol>

A line drawing

Lines are the accent, kui-drawing__fill the band surface, kui-drawing__quiet a quiet line, kui-drawing__solid a filled shape. kui-drawing__brand with a theme’s kui-brand-NAME class draws a line in that brand colour.

HTML
<div class="kui-cluster kui-gap-6"><svg class="kui-drawing" viewBox="0 0 120 90" aria-hidden="true" focusable="false"><path class="kui-drawing__quiet" stroke-width="2" d="M8 80h104"/><path class="kui-drawing__fill" stroke-width="3" d="M20 74c-6-22 8-44 40-44s46 22 40 44z"/><path stroke-width="3" d="M42 40c-4 8-5 16-4 24M60 36c-3 9-3 19-1 28M78 40c-1 9 0 17 3 24"/></svg><svg class="kui-drawing" viewBox="0 0 120 90" aria-hidden="true" focusable="false"><path class="kui-drawing__quiet" stroke-width="2" d="M8 80h104"/><path class="kui-drawing__fill" stroke-width="3" d="M26 48h68v32H26z"/><path stroke-width="3" d="M26 60c6 5 11 5 17 0s11-5 17 0 11 5 17 0 11-5 17 0M40 48V36M60 48V30M80 48V36"/><path class="kui-drawing__solid" d="M40 30c-2-3 0-6 0-6s2 3 0 6zM60 24c-2-3 0-6 0-6s2 3 0 6zM80 30c-2-3 0-6 0-6s2 3 0 6z"/></svg><svg class="kui-drawing" viewBox="0 0 120 90" aria-hidden="true" focusable="false"><path class="kui-drawing__quiet" stroke-width="2" d="M8 80h104"/><path class="kui-drawing__fill" stroke-width="3" d="M14 34h56v38H14zM70 46h20l14 14v12H70z"/><circle class="kui-drawing__fill" cx="34" cy="74" r="7" stroke-width="3"/><circle class="kui-drawing__fill" cx="88" cy="74" r="7" stroke-width="3"/><path stroke-width="3" d="M26 50h30M26 58h20"/></svg></div>

Classes and attributes

.kui-steps, .kui-steps__title, .kui-steps__text
A numbered procedure of three to five steps.
.kui-drawing
An SVG line drawing whose colours come from the theme.
.kui-drawing__fill, __solid, __quiet, __text, __brand
The parts of a drawing: a fill on the band surface, a solid shape, a quiet line, text, a line in a brand colour.

Accessibility

  • The steps are an ordered list, so a screen reader says how many there are.
  • A drawing that only decorates is aria-hidden.

Do and do not

Do

  • Keep each step to one sentence.

Do not

  • Do not set a line width in a stylesheet; it belongs to the drawing.