Skip to main content

Padding Tutorials

Design and frontend

Interfaces that load fast, read well and work for everyone.

3 tutorials

All in this category

  • How to Improve Largest Contentful Paint (LCP) on Your Website

    You will measure Largest Contentful Paint on a deliberately slow page, find which of its four parts is wasting time, fix it by making the hero image discoverable early and by serving a smaller one, and learn how to check the result with field data, because 2.5 seconds is the line between good and not good.

    Intermediate · 24 min · Design and frontend

  • How to Build Accessible HTML Forms

    You will build a contact form that works with keyboards and screen readers, with real labels, grouped radio buttons, hints tied to their fields, autocomplete values, and an error summary that takes focus and links to each problem, checking the result against specific WCAG 2.2 criteria.

    Intermediate · 24 min · Design and frontend

  • How to Add Dark Mode to a Website with CSS Variables

    You will define your colours once as CSS custom properties, switch them with light-dark() and the user's system setting, add a toggle button that remembers the choice without a flash on reload, and check the text contrast of both themes with a short script.

    Intermediate · 20 min · Design and frontend