Parts that behave.
One element, many settings.
Add space.js and any element with data-living becomes a living logo. It is real text, so screen readers read the name.
<span class="lk" data-living data-lines="Promote Freedom|Foundation" // | = new line data-amp=".5" // widest letter space, em data-speed="1" // tempo data-ws="1" // pin the yellow space data-fit></span> // shrink to fit its box <script src="assets/js/space.js"></script>
Hover and a space opens.
Yellow for the one main action on a screen, ink for strong secondary actions, outline for the rest. At least 48 px tall. Click the second row to see busy and done.
<a class="btn btn-hl" href="…">Take part <span class="c">→</span></a> <button class="btn btn-ink">Read <span class="c">↓</span></button> <button class="btn btn-line btn-s">Small</button> // busy: aria-busy="true" · done: .is-done // disabled: the disabled attribute, never colour alone
For choices, not for actions.
Choices always announce their state (aria-pressed, aria-selected, checked), so it is never shown by colour alone.
Make room.
Take part · Support this work
Dear [Title Surname]…
<div role="group" aria-label="Language">
<button class="pill" aria-pressed="true">English</button>
</div>
<div class="segc" role="group">…buttons…</div>
<div class="tabs" data-tabs>
<div role="tablist"><button role="tab"
aria-controls="p1">…</button></div>
<div role="tabpanel" id="p1">…</div>
</div>
<label class="sw"><input type="checkbox"><i></i>Quiet</label>Labels above, errors in words.
Every field has a visible label. Errors say what to do, never rely on red alone, and we only ask for what we need. Type in the first field to see it validate.
<div class="fld err">
<label for="email">Email</label>
<input id="email" type="email" aria-invalid="true"
aria-describedby="email-help">
<span class="help" id="email-help">
Add an @ and a domain.</span>
</div>Say what happened, in words.
Success is verdigris, errors are vermilion, notices get the yellow space. Always with an icon and a sentence.
Sent. We’ll reply within two working days.
Two fields need attention. They are marked below.
Office closed 24–26 December. Replies resume on the 29th.
How are donations used?
Every contribution is reported with what it paid for. [Link to the report]
Who can apply?
Criteria are published with each call.
<div class="alert ok" role="status">
<span class="ic">✓</span><p><b>Sent.</b> …</p>
</div>
PFF.toast("Copied to clipboard");
PFF.nudge("id", "Hold the name. The space grows.");
<div class="acc"><details><summary>…</summary>…</details></div>For pages people may need to leave fast.
On support and reporting pages only. Always visible, bottom right. It replaces the page in the history, so Back doesn’t return here. Esc three times does the same. This demo goes nowhere.
<a class="exit on" href="https://www.bbc.com/weather" rel="noreferrer" referrerpolicy="no-referrer">Exit this page</a> // site.js: location.replace() on click or Esc ×3
Five promises.
lang="uk" so screen readers switch voice.