Website pieces
Call to action
.kui-cta is a dark band near the end of a page with one heading, one sentence and one or two buttons. It is the strongest surface on the page, so use it once.
Examples
Default and in a row
--row puts the text and the buttons side by side from 768 pixels up. The primary button keeps the accent; other buttons are drawn light on the dark band.
Send your first invoice today
It takes about four minutes. No card is needed for the first 30 days.
Spremni za prelazak?
Prenosimo vaše klijente i otvorene fakture iz starog programa besplatno.
HTML
<section class="kui-cta" aria-labelledby="cta-1-title">
<h2 class="kui-cta__title" id="cta-1-title">Send your first invoice today</h2>
<p class="kui-cta__text">It takes about four minutes. No card is needed for the first 30 days.</p>
<div class="kui-cluster">
<a class="kui-button kui-button--primary kui-button--lg" href="#cta-start">Start free</a>
<a class="kui-button kui-button--lg" href="#cta-sales">Talk to sales</a>
</div>
</section>
<section class="kui-cta kui-cta--row" lang="sr-Latn" aria-labelledby="cta-2-title">
<div class="kui-stack kui-gap-3">
<h2 class="kui-cta__title" id="cta-2-title">Spremni za prelazak?</h2>
<p class="kui-cta__text">Prenosimo vaše klijente i otvorene fakture iz starog programa besplatno.</p>
</div>
<a class="kui-button kui-button--primary kui-button--lg" href="#cta-move">Zakažite prelazak</a>
</section>
Centred
Rechnungen schreiben ohne Papierkram
Dreißig Tage kostenlos, danach monatlich kündbar.
Jetzt startenHTML
<section class="kui-cta kui-cta--center" lang="de" aria-labelledby="cta-3-title">
<h2 class="kui-cta__title" id="cta-3-title">Rechnungen schreiben ohne Papierkram</h2>
<p class="kui-cta__text">Dreißig Tage kostenlos, danach monatlich kündbar.</p>
<a class="kui-button kui-button--primary kui-button--lg" href="#cta-de">Jetzt starten</a>
</section>
Classes and attributes
.kui-cta- The band: dark in light mode and light in dark mode (it uses the strongest text colour as its fill).
--row, --center- Side by side from a tablet up; or centred.
.kui-cta__title, .kui-cta__text- The heading and the sentence.
Accessibility
- The band is a section named by its heading.
- Text and button outlines on the band keep their contrast in both modes; focus rings switch to the accent so they show on the dark fill.
- Button text says the action, not “Click here”.
Do and do not
Do
- Repeat the main action of the hero at the end of a long page.
- Keep one primary button.
Do not
- Do not put two bands on one page.
- Do not put a form with several fields in the band.