Padding Tutorials
Design and frontend
Interfaces that load fast, read well and work for everyone.
Filter
5 tutorials
All in this category
How to Set Up Tailwind CSS 4 with Vite
You will add Tailwind CSS 4.3 to a new Vite 8 project with its official Vite plugin, style a card with utility classes, add your own brand colour with @theme, use the dark and responsive variants, and check in the production build that only the classes you use are generated.
Beginner · 18 min · Design and frontend
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 Page Layouts with CSS Grid
You will build a page with a header, sidebar, main area and footer using named grid areas, fill it with a grid of cards that adds and removes columns by itself, make one card span two columns, and change the layout for narrow screens.
Beginner · 18 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