Website pieces
Bands
A full-width band sets a section apart by its surface, not by shadows. .kui-band--tint is the theme’s band surface; .kui-band--brand is a brand colour with the text colour that reads on it.
Examples
A tinted band
The band surface is the theme’s choice: the tint when the page is white, white when the page is tinted (the seed’s "page", and "band" to name a brand colour for it).
Za kafiće
Hleb pre otvaranja
Dostava svakog jutra, i nedeljom.
HTML
<section class="kui-band kui-band--tight kui-band--tint" lang="sr-Latn" aria-labelledby="band-1">
<div class="kui-container kui-stack kui-gap-3">
<p class="kui-eyebrow kui-eyebrow--brand">Za kafiće</p>
<h2 class="kui-h2" id="band-1">Hleb pre otvaranja</h2>
<p class="kui-lead">Dostava svakog jutra, i nedeljom.</p>
</div>
</section>
A band in a brand colour
Add the theme’s class of a brand colour, kui-brand-NAME, which the theme tool writes for each brand colour of the seed. Without one the band is the accent. Headings, labels, links, the figure and the buttons inside take the band’s text colour; the main button turns over.
HTML
<section class="kui-band kui-band--tight kui-band--brand" lang="sr-Latn" aria-labelledby="band-2">
<div class="kui-container kui-stack kui-gap-4">
<p class="kui-eyebrow kui-eyebrow--brand">Kontakt</p>
<h2 class="kui-h2" id="band-2">Pozovite pre šest uveče</h2>
<a class="kui-figure" href="tel:+381211234567">021 123 4567</a>
<div class="kui-cluster">
<a class="kui-button kui-button--primary kui-button--lg" href="tel:+381211234567"><svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#phone"></use></svg><span>Pozovite</span></a>
<a class="kui-button kui-button--lg" href="#band-way"><svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#map-pin"></use></svg><span>Kako do nas</span></a>
</div>
</div>
</section>
Classes and attributes
.kui-band, --tight- A full-width section with the section space; --tight halves it.
.kui-band--tint- On the theme’s band surface (--kui-color-band).
.kui-band--rule- A line above and below.
.kui-band--brand- On --kui-band-bg with --kui-band-fg text; the accent when neither is set.
.kui-brand-NAME- Written by the theme tool for each brand colour: sets --kui-band-bg and --kui-band-fg to --kui-color-brand-NAME and --kui-color-on-brand-NAME.
.kui-band__item- An item in a brand band, with a rule above in the band’s text colour.
--kui-color-page, --kui-color-band- The page’s background and the band surface.
Accessibility
- The theme tool checks every brand colour with its text colour at 4.5:1 in light and dark, and the text colours on the band surface.
- Focus rings in a brand band take the band’s text colour, so they keep their contrast.
Do and do not
Do
- Use one dark brand band on a page, where the page ends: contact.
- Let bands differ by surface and density.
Do not
- Do not set a band in a colour the theme does not name.
- Do not lay faint text on a brand band.