Adoption tier 1 of 3
Classless
Every page in this site is plain semantic HTML with no class attribute anywhere. One stylesheet is loaded and nothing else:
<link rel="stylesheet" href="semetrika.min.css">
The site at a glance
- Type
- Direct-to-consumer specialty coffee retailer.
- Audience
- Home brewers and small cafés in the UK and Ireland.
- Voice
- Warm, slightly nerdy. Talks about altitude, roast date, and tasting notes without being precious.
- Pages
- Home, product, cart, checkout, order confirmation.
What you get for free
These are all element selectors. Write the element, get the component:
| Element | Where it is used |
|---|---|
article |
Every product tile and cross-sell tile renders as a card. |
table |
Cart lines, order summary, and the origin facts table. |
details |
The FAQ on the home page is an accordion. |
form, fieldset, label, input, select |
Grind and size pickers, the whole checkout. |
progress |
The checkout step indicator. |
blockquote, figure, dl, hr, output |
The roaster quote, product shots, key-value pairs, rules, and the payment confirmation. |
The one attribute this site sets
Semetrika normally leaves the page shell to the consumer, so header and footer span the full width and their content is not centered. The
data-container-semantic attribute on <html> turns on classless page containment, which centers the direct children of
header, main, and footer at the container width. It is an attribute, not a class, so the site stays classless.
What tier 1 gives up
None of these have a semantic element to hang off, so each one needs a class Semetrika cannot infer:
- Site navigation renders as a bulleted list.
navbar,sidenav,breadcrumb,pagination, andtocall need their class. - The skip link is permanently visible. Hiding it until keyboard focus is what
skipdoes. - Links styled as buttons need
btn, so the primary call to action here is an ordinary link. - There is no multi-column grid, no colored section band, and no brand palette. Those are tiers 2 and 3.
The other two tiers
- The Standard Reader, tier 2: Semetrika classes plus a brand palette.
- Helix, tier 3: classes, palette, and consumer components of its own.