# Designing a theme for lazysite This guide is the same in every kit. It explains how a lazysite site is built, so a design can be taken onto it unchanged. `BRIEF.md` holds what is particular to this site. ## How a lazysite site is put together Three layers, kept apart: Content : Markdown pages written by people and AI agents. Their markup is whatever the Markdown converter and the engine's own components produce - every case is in `specimen.html` and `pages/`. Authors cannot add classes or HTML structure of their own, so a design that depends on extra markup in pages will not survive real content. Layout : One template (`layout.tt`) that wraps every page: the header, navigation, page title, footer, and any hero. It can carry a small `` - `site/apple-touch-icon.png`: 180 by 180 pixels, the mark on a solid background (no transparency; the phone rounds the corners). - Optionally `site/favicon.ico` with 16, 32 and 48 pixel images, drawn at each size. If it is left out, it is made from the SVG. - If the layout shows a mark beside the site name (often drawn in CSS, for example `.site-name a::before`), make the icon the same mark. These are site files, not theme files: they are installed at the site's root, which is why they go in a `site/` folder. ## Fonts Bundle the fonts: `.woff2` files in `assets/fonts/`, loaded with `@font-face` from your stylesheet, with each family's licence file beside them. Use typefaces under the SIL Open Font License or the Apache licence; the Fontsource packages (`@fontsource/` on npm) carry both the files and the licence text. No Google Fonts link or any other external resource: the site refuses them, and a font from another server tells that server about every visitor. ## Every element, every state - Style everything in `specimen.html`, `pages/` and `STATES.md`: every heading level, inline element, list, table, code block, quotation, image, box, form field and form message, in each variant shown, and every state a still page cannot show (hover, focus, visited, disabled, invalid, placeholder, checked, open, the form's messages, a form in steps, both schemes, reduced motion). - Style only what is there. Each selector should match something in the specimen, the pages or `STATES.md`. - The layout's own `