How to Learn How Any Website Was Built
By @andymarrows · Updated · 4 min read
In short
The fastest way to learn how a website was built is to rebuild it as a project with Livery Build, run it, and read its TOUR.md, which walks through the sections, layout, type, colours and motion and links each point to its file. Paste the site, download the folder, run npm install and npm run dev, then change things to see what happens.
Why view-source isn't enough to learn how a website was built
Open the source of a modern site and you'll find one long line of markup, class names like a7x3k and a script bundle nobody can read. The design is in there, but not in a form you can learn from.
What helps is the same site as a normal project: one file per section, readable styles, the fonts and pictures in a folder, and something that runs when you type npm run dev.
From a website's link to a project folder
- 1Paste the address on build.livery.site/start and pick this page or the whole site.
- 2Wait a few minutes while the folder is put together. You can watch each step.
- 3Download the zip, unzip it and run npm install, then npm run dev.
- 4Open TOUR.md beside the running site and follow it top to bottom.
What to look at first in a rebuilt website
- The layout: the grid, the content width and the widths where it changes.
- The type: which faces, which sizes, and how headings and body text relate.
- The colours: the few that do most of the work, and where the accent appears.
- The motion: what moves on scroll and on hover, and how long it takes.
Once you know how the site is built, change one thing at a time. Swap a colour, shorten a heading, remove a section. Seeing what breaks teaches more than reading what works.
Use a rebuilt website fairly
The words, pictures and brand belong to the site's owner. Learn from them freely, but build your own site with your own content.
Questions
- Do I need to know React?
- No. You can learn a lot just from TOUR.md and the running site. Knowing a little React helps when you start changing things.
- Does it work on sites made with Webflow or Framer?
- Yes. Any public page works, whatever it was made with.
In short
The fastest way to learn how a website was built is to rebuild it as a project with Livery Build, run it, and read its TOUR.md, which walks through the sections, layout, type, colours and motion and links each point to its file.
Try it on a site you love
Paste a link