Section library

The section library

Every section a website needs, from the header and hero to the blog and footer. Each says when to use it. Copy the ones you need, in order, then set the fonts and colours in one place. All words and pictures here are invented placeholders.

  • 6 heroes
  • 20 sections
  • Fonts and colours
  • 6 page assemblies
  • 4 sample sites

Hero 1: full photo. Use when one strong photo says what you do: a place, a dish, a finished job.

[One line that says what you do and for whom]

[One sentence: the result the visitor gets.]

Hero 2: split. Use when the words matter as much as the picture. On a phone the words come first.

[What you offer, in under ten words]

[Who it is for, and the one problem it solves.]

[Describe what the photo shows]

Hero 3: type only. Use when you have no good photo, or the idea is the product. The headline is the design.

[A short, bold claim]

[The sentence that backs it up.]

Hero 4: video. Use when movement shows the work: a kitchen, a workshop, an event. Muted, with a pause button and a poster photo.

[A line that the video proves]

[One sentence.] Add your video file

Hero 5: centred with a product picture. Use for an app, a product or a course, where the screen or the item is the proof.

[The promise, with a number if you have a real one]

[Who it is for. What changes for them.]

[Describe the product picture]

Hero 6: mosaic. Use when variety is the point: a menu, a portfolio, a venue with many spaces.

[What you make or offer]

[One sentence on the range.]

[Photo 1] [Photo 2] [Photo 3]

[Our work]

Gallery: swipe. Use on phones for a set of five to ten. Snaps one at a time. No script.

[Browse the set]

  • [Photo 1]
  • [Photo 2]
  • [Photo 3]
  • [Photo 4]

About. Use to say who is behind it. A real photo of a real person, a short story and three true facts.

[About us]

[Two or three sentences: who you are, why you started, who you serve.]

[One sentence on how you work.]

  • [N][years, jobs, students: a true number]
  • [N][a second true number]
  • [N][a third]

Features. Use for three to six things you get. One idea per card, the most important first.

[What you get]

  • [Benefit one]

    [One sentence.]

  • [Benefit two]

    [One sentence.]

  • [Benefit three]

    [One sentence.]

Steps. Use to show how it works or how to start. Three steps is ideal.

[How it works]

  1. [Step one]

    [What the visitor does, and how long it takes.]

  2. [Step two]

    [What happens next.]

  3. [Step three]

    [The result.]

Quote. Use only with a real customer's words, with their permission. If you have none, leave this section out.

[A real customer's words, exactly as they said them.]
[Name], [role or place] Real quote only

Pricing. Use for two or three plans. Mark one as recommended, in words as well as colour.

[Prices]

Questions. Use for the three to six questions people really ask. Each opens on a tap. No script.

[Questions]

[A question people ask]

[A short, direct answer.]

[Another question]

[The answer.]

[A third question]

[The answer.]

Contact. Use to be reached or visited: a short form, the address and the hours. The form needs a service to send it; until then, use a mailto link.

[Get in touch]

[Address line]
[City]

[email] · [phone]

Opening hours
[Monday to Friday][8am to 6pm]
[Saturday][9am to 4pm]
[Sunday][Closed]

Call to action. Use near the end of a landing page: the promise again, one button.

[The promise, once more]

[One sentence that removes the last doubt.]

[Main action]

Blog list. Use for a blog or news page. Newest first, each post with a picture, a date, a title and one line.

Article. Use for a content page or blog post: a readable column, a photo and related posts.

[Date] · [Author]

[Article title]

[The point of the article in one sentence.]

[What the photo shows]

[Body paragraph.]

[Subheading]

[Body paragraph.]

Read next

Fonts

Two tokens set every font: --display for headings and --text for the rest. Both are system fonts, so the page needs no network. This is the scale every section uses.

h1, heroHeading one
h2, sectionHeading two
h3, cardHeading three
body, 17pxBody text sits at 60 to 75 characters a line, so it reads comfortably on a laptop and a phone.
small, notesSmall text for dates, captions and the legal line.

Three pairs to start from

Paste one pair over the two font lines in :root.

  • Classic, this page

    Serif headings

    Sans-serif text. Warm and trusted: shops, cafés, services.

    --display:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif; --text:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  • Modern

    Sans everywhere

    Clean and quiet: studios, apps, galleries.

    --display:"Avenir Next","Segoe UI",system-ui,sans-serif; --text:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  • Editorial

    Serif everywhere

    Made for long reading: blogs, essays, newsletters.

    --display:Charter,"Bitstream Charter","Sitka Text",Cambria,serif; --text:Charter,"Bitstream Charter","Sitka Text",Cambria,serif;

Colours

Six tokens colour the whole page. Keep the balance near 60-30-10: about 60 parts calm background, 30 parts panels and text, 10 parts the one accent, kept for what to act on.

Check a finished page with workshop/tools/check_colour_balance.py in the Practical AI repository.

  • --bg#fbfaf7

    The 60. Page background.

  • --panel#f1eee8

    The 30, with the text. Every other section.

  • --ink#1c2321

    Main text, 15.3 to 1 on --bg.

  • --muted#5b6461

    Secondary text, 5.8 to 1 on --bg.

  • --accent#1f6f5c

    The 10. Buttons and links. White on it is 6.0 to 1.

  • --line#dcd7ce

    Borders and rules.

The sample sites, recoloured

The same sections with six new tokens. Every text pair passes 4.5 to 1.

  • Spa: mist, sage, deep green, plum accent
  • Personal blog: white, ink, one blue
  • Gallery: a dark room with one gold accent

Page assemblies

The sections above, in the order that works for common pages. Start here, then add or remove one section at a time.

  • Small business home page

    Site header, hero (photo or split), about, gallery, contact with hours, footer.

  • Landing page for one offer

    Site header, hero (centred or split), features, steps, quote if real, pricing, questions, call to action, footer.

  • Blog or content site

    Site header, hero (type), blog list, article, call to action, footer.

  • Portfolio

    Site header, hero (mosaic), gallery grid, about, contact, footer.

  • Event

    Site header, hero (video or photo), steps as the programme, pricing as tickets, questions, contact, footer.

  • Social post formats

    Five picture shapes for posts, stories and link previews, in the social folder, and post previews.