Freeframe

Documentation

Lintel

v1.0.0Updated Nov 29, 2026An architect's portfolio drawn like a construction set, with interactive plans, sections and elevations for every project and a brief builder that plans your timeline.

Overview#

Lintel is a portfolio website for an architecture practice, an architect's or small architecture firm's site with projects, drawings, the team, the process and a way to start a project, built as a WordPress block theme. The fictional Lintel Architecture is a six-person practice at 206 Winnebago Street in Decorah, Iowa, working in Central time (America/Chicago) on houses, renovations, cabins and small civic buildings across northeast Iowa and the Driftless. The theme has a home page with an axonometric hero that draws itself; a projects index with eleven projects, filters, sorts, starred projects and a county map; a project page with a drawing viewer (plan, section and elevation) and a materials schedule; the practice and its team; the six phases of working with an architect with durations by project type; a six-step brief builder with a phased timeline and a first meeting request; a journal; a contact page with live studio hours, a drawn map and a contact form; and a 404 page. It is version 1.0.0 (see template.json and style.css), works with WordPress 7.1 and PHP 7.4 or newer, and is the WordPress version of the HTML template of the same name. See it live at freeframe.dev/templates/lintel.

Headings, copy, sheet labels, title blocks, lists, cards, quotes and buttons are core WordPress blocks arranged in block patterns, so you edit them in the block editor without touching code. The parts that are worked out in the browser (the project cards and every project drawing, the county map, the drawing viewer, the people, awards and publications, the phase chart and questions, the brief builder, the meeting slots, the journal notes, the studio hours) work as in the HTML version: they are Custom HTML blocks driven by assets/js/main.js, which reads the practice's content from assets/js/data.js. The hand-drawn sheets (the hero axonometric, the studio elevation, the downtown map and the 404 plan) are Custom HTML blocks with inline SVG, so their linework follows the theme's colors and dark mode. Colors and fonts are design tokens in theme.json: change them in Appearance > Editor > Styles and the whole site follows. Every date is worked out in Central time from rules rather than fixed dates, so the demo never goes stale.

The look is an architect's drawing set: warm drafting paper with a measured 12-pixel grid, graphite linework, hairline rules, one accent (blueprint blue), sheet numbers such as A-101 as section labels, title blocks, dimension lines and north arrows. A dark mode turns the set into a blueprint at night.

Quick start#

Requirements: WordPress 7.1 or newer and PHP 7.4 or newer. No plugins are needed.

  1. Download lintel.zip from freeframe.dev/templates/lintel (the WordPress tab).
  2. In your WordPress admin go to Appearance > Themes > Add New Theme > Upload Theme, choose the zip and click Install Now, then Activate. The theme is listed as Freeframe Lintel.
  3. Go to Appearance > Lintel setup and click Create the demo pages. This creates the Home, Projects, Project, Practice, Process, Start a project, Journal and Contact pages from the theme's page patterns, sets Home as the front page (Settings > Reading) and creates the header menu. Pages that already exist with the same slug are left alone, so it is safe to click it again.
  4. In Settings > General, set the Site Title to your practice's name and the Tagline to a short line; the home page's browser title is built from both ("Lintel Architecture: houses and small buildings in Decorah, Iowa").
  5. Visit your site. Edit any page in Pages, and the header, footer and templates in Appearance > Editor.

You can also try the theme without installing anything: the Try it in WordPress button on freeframe.dev opens it in WordPress Playground (WordPress running in your browser) with the demo pages already set up.

To work on the theme's files locally you need Node.js 24 and pnpm; WordPress itself runs in WordPress Playground, so there is no PHP, web server or database to install:

sh
pnpm install
pnpm dev     # builds the CSS, then starts WordPress with the theme at http://127.0.0.1:9400

pnpm dev signs you in as admin (password password) and creates the demo pages. The site is rebuilt from scratch every time you start it; your edits to theme files are live, edits made in the WordPress admin are not kept.

Pages#

Each page is a page pattern (in Patterns > Lintel pages) made of section patterns. Every section is also offered on its own in the block inserter under Patterns > Lintel.

Page Slug Page pattern Sections (pattern files in patterns/)
Home / page-home.php home-hero (sheet A-000, axonometric and title block), selected-projects, practice-brief, recognition, on-the-boards, journal-latest (with the next design start)
Projects /projects/ page-projects.php projects-header (counts), project-index (filters, sort, starred only, the cards and the county diagram)
Project /project/?p=<slug> page-project.php project-sheet (facts, axonometric, drawing viewer, story, collaborators, recognition, materials, previous and next), project-missing ("We couldn’t find that project.")
Practice /practice/ page-practice.php practice-hero, principals, studio-team, approach, values (with the studio elevation), awards (#recognition, awards and publications)
Process /process/ page-process.php process-hero, durations (type buttons, totals and the bar chart), phases, process-faq
Start a project /start/ page-start.php start-hero, brief-builder (the six steps, the result and the first meeting request)
Journal /journal/, /journal/?post=<slug> page-journal.php journal-index (subject filter and notes), journal-note (one note, and "We couldn’t find that note.")
Contact /contact/ page-contact.php contact-hero, contact-studio (address, hours, the downtown map and the contact form)
404 any missing URL templates/404.html 404 (a plan with a missing room)

The project and journal pages show one project or note at a time, chosen by the address (?p=trout-run-house, ?post=<slug>); the script fills them from data.js and removes the view that isn't shown, so each has one h1. WordPress posts use templates/single.html; the blog, archives and search results use templates/index.html, templates/archive.html and templates/search.html.

Project structure#

freeframe-lintel/
  style.css                 theme header (name, version, requirements, license); no styles
  theme.json                design tokens: palette, fonts, font sizes, spacing, layout widths, button
  functions.php             loads the files in inc/
  inc/setup.php             stylesheet and scripts (with the script's strings and page URLs), editor
                            styles, the no-flash dark mode script, theme color and favicon, page titles,
                            pattern categories
  inc/icons.php             registers assets/icons/*.svg for the Icon block
  inc/icon-labels.php       the icons' names shown in the editor
  inc/block-styles.php      button block styles
  inc/site-setup.php        Appearance > Lintel setup: creates the demo pages and the menu
  templates/                page.html (pages), page-with-title.html, single.html, index.html,
                            archive.html, search.html, 404.html
  parts/                    header.html and footer.html (they show the header and footer patterns)
  patterns/                 every section and page (PHP files with block markup)
  assets/css/theme.css      the compiled stylesheet (do not edit: built from src/)
  assets/css/editor.css     the same for the block editor (generated by src/editor-css.mjs)
  assets/js/data.js         the practice's content (window.LINTEL): STUDIO, PROJECTS, PEOPLE, PHASES,
                            BRIEF, CAPACITY, CONSULT, POSTS and more
  assets/js/main.js         every interaction and the drawing generator (the HTML version's script plus
                            a WordPress adapter)
  assets/icons/             the icons used by Icon blocks (outline SVG paths)
  assets/img/               logo.svg, logo-dark.svg, favicon.svg, the social image
  assets/fonts/             Tenor Sans, Inria Sans and Syncopate, with their licenses
  src/theme.css             the Tailwind CSS source of assets/css/theme.css (tokens, dark mode, drawings)
  src/icons.css             the arrow drawn after button text with CSS (generated)
  src/editor-css.mjs        writes assets/css/editor.css after each build
  languages/                freeframe-lintel.pot, the template for translations
  blueprint.json            WordPress Playground setup used by `pnpm dev`
  screenshot.png            the picture shown in Appearance > Themes
  package.json              the CSS build and the local WordPress (Node.js tooling)
  readme.txt, README.md, DOCS.md, CHANGELOG.md, LICENSE.txt

Customizing#

Brand and colors#

The palette is in theme.json (settings.color.palette) and shows in Appearance > Editor > Styles > Colors. The stylesheet maps every Tailwind color to these presets (--color-blue: var(--wp--preset--color--blue) in src/theme.css), so changing Blueprint blue in Styles changes every button, link, sheet number and accent line that uses blue, including the lines the script draws.

Color Light Dark Used for
Paper / Paper 2 #f4f1e9 / #ebe6da #11161d / #17202a Page / bands, roofs in drawings
Card #faf8f2 #1a232e Sheets, cards, inputs
Ink, Ink soft, Ink faint #23262b, #484c53, #5f636a #ebe7dd, #c0bcb2, #a09d95 Text and linework
Line / Line strong #d3cdbf / #8d887c #2b3542 / #66717f Hairlines and the grid / inputs, dimensions
Blueprint blue, Blue deep, Blue soft #1d4f8f, #143b6d, #dde5ef #8fb5ea, #b7d0f3, #1f3048 The accent: links, buttons, sheet numbers, tags / hover / tinted fills
On blue #faf8f2 #10161d Text on blue
Glass #c9d7e6 #2c4561 Glazing and rivers in drawings
Danger #a3361a #ff9d85 Form errors

The light values are the presets in theme.json; the dark values are set in src/theme.css under html.dark (they replace the presets while dark mode is on). If you change a color in Styles, change its dark value there too and run pnpm build.

The repeated pieces are classes in src/theme.css: .drafting (the measured grid), .sheet and .sheet-inset (drawing sheets with a hairline frame), .sheet-head (sheet number, hairline and title), .sheet-no, .label, .label-strong, .h-display, .h-page, .h-section, .lead, .link, .chip, .tb-cell (title block cells), .toggle, .tab, .choice and the form fields (.field, .field-label, .field-error, .field-hint). Add them to any block under Advanced > Additional CSS class(es). The drawings' line styles (.dwg .wall, .dwg .glass, .axo .roof...) are at the end of the components.

Typography#

Three families are bundled in assets/fonts/ and declared in theme.json (no requests to Google), the same files Google Fonts serves to the HTML version:

  • Tenor Sans (font-display): headings and large numbers.
  • Inria Sans 300, 400, 700 and italic 400 (font-sans): body text, 17 px.
  • Syncopate 400 and 700 (font-label): sheet numbers, labels, the logo and the text inside drawings, like wide drafting lettering.

Swap a family in Styles > Typography, or add your own fontFace files to theme.json. The script's drawings use the label font through var(--font-label), so they follow.

Content#

Page copy (headings, paragraphs, the four principles, the jury quote, the approach and values, the brief builder's side notes, the contact details) is in the pages: edit it in the block editor. Everything the script renders lives in assets/js/data.js on window.LINTEL, as in the HTML version:

Constant What it holds
STUDIO Name, address, phone, email, timeZone: 'America/Chicago', founded: 2011, and hours (Mon–Thu 8:30–17:30, Fri 8:30–15:00)
TYPES Project types: residential, civic, renovation, small ("Small buildings")
STATUSES built, construction ("In construction"), design ("In design")
SORTS recent, oldest, largest, name
COUNTIES, RIVERS, TOWNS The county diagram on the projects page, in miles from the northwest corner of Howard County, with label positions chosen to stay clear of the pins
PROJECTS Eleven projects with facts, story, collaborators, awards and the data for every drawing
PEOPLE Six people: id, name, role, group (principal or team), initials, since, bio, fact
AWARDS, PUBLICATIONS Past recognition with real dates (YYYY-MM-DD) and a project slug
PHASES The six phases with weeks per brief type (house, renovation, small, civic) and the copy for each
FAQS Questions and answers on the process page
BRIEF Brief builder options: types, sites (with extraWeeks), sizes (with mid and factor), budgets, costPerSqFt, priorities, maxPriorities: 3, seasonCount: 8, seasonLeadDays: 182
CAPACITY leadDays: 21, queueWeeks per type (civic: 8, others 0) and a note
CONSULT First meetings: days: [2, 3, 4] (Tue–Thu), times: ['10:00', '15:00'], leadDays: 3, count: 6, and modes
POSTS Seven journal notes: slug, date, tag, author (a PEOPLE id), optional project, title, dek, body

The project slugs, in order (sheets A-101 to A-111, pins 1 to 11 on the map): trout-run-house, canoe-creek-farmhouse, turkey-river-library, burr-oak-meeting-house, yellow-river-cabin, winnebago-alley-house, arcade-block-storefront, paint-creek-house, mcgregor-bluff-house, castalia-township-hall, calmar-seed-barn. Four have featured: true and appear on the home page; the four that aren't built have a phase line ("This week") and appear in "Currently on the boards".

To add a project, copy a project object in PROJECTS and change it. Drawing data is in feet:

js
{
  slug: 'bluff-sauna', name: 'Bluff Sauna', town: 'Decorah', county: 'Winneshiek',
  map: [42, 12],                 // position on the county diagram, in miles
  type: 'small', status: 'built', year: 2026, area: 140, featured: false,
  client: '...', summary: '...', story: ['...'], facts: { stories: '1', structure: '...', energy: '...' },
  collaborators: ['...'], awards: [],
  plan: {
    label: 'Floor plan', north: 0,
    outline: [[0, 0], [10, 0], [10, 14], [0, 14]],
    rooms: [{ name: 'Hot room', x: 0, y: 0, w: 10, h: 8, note: '...' }],
    windows: [[2, 0, 8, 0]],
    doors: [[0, 10, 3, 0]]
  },
  section: { width: 10, profile: [[0, 0], [10, 0], [10, 8], [5, 12], [0, 8]], levels: [{ z: 0, label: 'Floor' }], spaces: [{ x: 5, z: 4, name: 'Hot room' }] },
  elevation: { label: 'South elevation', width: 10, profile: [[0, 0], [10, 0], [10, 8], [5, 12], [0, 8]], cladding: 'board',
               openings: [{ x: 3.5, z: 0, w: 3, h: 7, kind: 'door' }], tags: [{ code: 'M1', x: 2, z: 5 }] },
  axon: { depth: 14 },
  materials: [{ code: 'M1', name: 'Cedar siding', spec: '...', where: '...' }]
}

Optional drawing fields: plan.existing, section.floors, section.steps, section.piers, section.ground, section.below, elevation.lines, elevation.base, elevation.piers. Cladding types: board, batten, lap, metal, brick, stone, concrete. Opening kinds: window, glass, door, garage, transom, screen, round. If you move a pin (map), check that it doesn't land on a label.

The script links to the theme's pages by the HTML version's file names (project.html?p=…, journal.html?post=…) and turns them into your WordPress page URLs with freeframe_lintel_page_urls() in inc/setup.php. If you rename the Project or Journal page, change its URL there. Edit data.js in a child theme (see Child themes) so an update doesn't overwrite it.

Images and artwork#

All artwork is SVG drawn for this template; there are no photos.

  • Project drawings (plans, sections, elevations, axonometrics, the county diagram) are generated by drawPlan(), drawSection(), drawElevation(), drawAxon() and drawCountyMap() in section 5 of assets/js/main.js from each project's data. To show photos on the cards instead, replace the drawAxon() call in projectCard() with an <img> at about a 16:10 ratio.
  • Hand-drawn sheets: the home hero axonometric, the studio elevation on the practice page, the downtown map on the contact page and the 404 plan are Custom HTML blocks with inline SVG, so their lines follow the theme's colors and dark mode. Replace a block with an Image block (keep roughly the same aspect ratio) when you have real pictures.
  • Monograms for people are drawn by monogram() in main.js, each with its own motif.
  • Logo: two Image blocks in the header and footer, assets/img/logo.svg (light) and assets/img/logo-dark.svg (dark mode; the classes ff-logo-light and ff-logo-dark show one at a time). Select one and Replace to use your own; replace both, or remove the dark one and its class if your logo works on both backgrounds.
  • Social image: assets/img/og-image.png (1200 x 630, source og-image.svg). Favicon: assets/img/favicon.svg, used until you set a Site Icon in Settings > General.

The header and footer are template parts (parts/header.html, parts/footer.html) showing the header and footer patterns. Edit them in Appearance > Editor > Patterns > Header / Footer.

The header has two Navigation blocks showing the same menu: the desktop one (from 1024 px) and the one in the phone menu. Edit the menu once in Appearance > Editor > Navigation (the setup creates "Main menu": Projects, Practice, Process, Journal and Contact). Each label ends with its sheet number in a span, Projects<span class="label" aria-hidden="true">A-100</span>, shown at the right of the phone menu only; leave it out for a plain label. WordPress marks the current page's link with aria-current="page" (drawn as a blue line under it); the script also marks Projects on a project page, the logo on the home page and the header's "Start a project" button on the start page. A Navigation block that doesn't point at a menu shows the most recently created one; to pin a menu, select the Navigation block and choose it in the block settings, for both blocks.

The footer is a title block: the logo and address, the sheet index (a List block: click a link to change it, press Enter to add one), studio hours with the live open status, and who drew the set with the date issued. The copyright year is written by PHP and kept current by the script. The phone number, email and address appear in the footer and on the contact and start pages; search for them when you change them.

Dark mode#

The moon button in the header ([data-theme-toggle]) switches dark mode. A small script printed first in <head> (freeframe_lintel_head_script() in inc/setup.php) adds the dark class to <html> before the page paints, using the saved choice (lintel:theme) or the system setting, so there is no flash of the light page. The dark colors are the html.dark block in src/theme.css.

To ship light only, remove the switch's Custom HTML block from the header and the t==='dark' part of the head script (in a child theme, replace the function). To default to dark, change the script's fallback to 'dark'.

Features#

Hero axonometric#

The home hero is an inline SVG in a Custom HTML block (home-hero pattern). Each line has pathLength="1" and a delay (--d); CSS in src/theme.css (.axo, @keyframes ax-draw) draws the lines one by one, fills the faces in afterward and fades in the dimensions and notes. With prefers-reduced-motion: reduce (or without JavaScript) the drawing is shown complete. Below 640 px the notes and dimensions are hidden so the drawing stays readable. The title block under it shows today's date ([data-today]).

Projects index#

The projects page, initProjects() in main.js. Type and status buttons ([data-filter-type], [data-filter-status]), the sort select (#sort) and the "Starred only" toggle ([data-filter-starred]) filter and sort PROJECTS. Sorts: Most recent puts in design first, then in construction, then built work by year (newest first); Oldest first is the reverse; Largest first sorts by area; Name, A to Z by name. The address keeps the view shareable: type, status, sort and starred=1, looked up with own-key checks, so unknown values fall back to the defaults. For example /projects/?type=residential&sort=largest reads "Showing 3 of 11 projects": Trout Run House, McGregor Bluff House and Paint Creek House. An empty state offers "Clear filters".

The county diagram (drawCountyMap()) draws six counties, three rivers, nine towns, the studio and a numbered pin per project (pin 1 is A-101); pins hidden by a filter fade. Each pin links to its project. Below 1024 px a numbered key under the diagram lists each pin's project and town; below 640 px the town names are hidden and the county names drawn larger.

Project page and drawing viewer#

/project/?p=<slug>, initProject() and initViewer(). Without ?p the first project (trout-run-house) is shown; an unknown slug shows "We couldn’t find that project." with a list of all projects.

The viewer has three tabs ([data-sheet-tab]: Plan A-101, Elevation A-201, Section A-301) using the ARIA tab pattern (arrow keys, Home and End). The chosen sheet is kept in ?sheet=section or ?sheet=elevation. On the plan, numbered buttons sit on each room ([data-room]); choosing one, or a row of the room schedule, highlights the room and shows its name, area, size and note; choosing it again clears it. The schedule ends with the net area on the floor and the project's total ("2,368 sq ft net on this floor · 2,480 sq ft total" for Trout Run House). Room names are drawn on the plan only where they fit, and not below 640 px; the hotspots and the schedule always name them. Every sheet has a graphic scale and the plan a north arrow; elevations carry circled material tags that match the materials schedule.

Starred projects#

Every project card and project page has a Star button ([data-star], aria-pressed). Starred slugs are saved in lintel:starred; the counts ([data-star-count]) and the "Starred only" filter use them.

Process durations#

The process page, initProcess(). The type buttons ([data-process-type]: New house, Renovation, Small building, Civic) set the weeks shown in every phase, the bar chart, "Design and permits" and "Start to finish", with months as Math.round(weeks × 7 / 30.4375). Totals: house 72 weeks (about 17 months), renovation 57 (13), small 40 (9), civic 92 (21). The type is kept in ?type= (default house).

Brief builder#

The start page, initBrief() and computeBrief(). Six steps: type, site, size, budget, move-in season and up to three priorities. Next checks that the step has an answer ("Choose a project type to continue.") and Back returns. Answers and the current step are saved after every change, so a reload returns to the same place; Start over clears them, Change answers returns to step 1. All dates are in Central time:

  1. Design start: the first Monday on or after today + CAPACITY.leadDays (21) + 7 × queueWeeks[type]; a Monday that is a federal holiday moves to the next Monday.
  2. Phases: Math.round(PHASES[i].weeks[type] × sizes[size].factor) weeks each, plus sites[site].extraWeeks on pre-design, one after the other.
  3. Realistic finish: the last day of construction, as month and year.
  4. Move-in check: eight seasons are offered, starting with the one that contains today + 182 days. "On track" if the finish is in or before the chosen season, otherwise "Later than hoped" with the season of the finish.
  5. Budget check: size mid × costPerSqFt[type], low and high rounded to $5,000: "Tight", "In range" or "Room to spare".
  6. Capacity: "We have room" when the type's queue is 0, otherwise "A short wait".
  7. Reference: LT- + the two-digit year and month + - + four digits worked out from the answers.

On Nov 29, 2026, a new house on land you own, 1,800 to 3,000 sq ft, $700,000 to $1.2 million, fall 2027, with energy, aging in place and daylight, gives LT-2611-3517: design starts Monday, Dec 21, 2026, 91 weeks (about 21 months), finish Sep 2028, "Later than hoped" (fall 2028), typical cost $780,000 to $1,080,000, "In range". A civic project on the same day starts Monday, Feb 22, 2027 (Feb 15 is Washington’s Birthday).

First meeting request#

Below the result. Slots (meetingSlots()): CONSULT.days (Tuesday to Thursday) at 10:00 a.m. and 3:00 p.m. Central, from today + 3 days, skipping federal holidays, the first six. On Nov 29, 2026 they are Wed, Dec 2 and Thu, Dec 3 at both times, then Tue, Dec 8 at both times. The success panel repeats the time, the place and the brief reference and says Astrid will confirm by the next working day.

Journal#

The journal page, initJournal(). Notes are sorted newest first, with subject buttons built from the posts' tag values. ?post=<slug> shows one note with its drawing, its project link and older and newer notes; an unknown slug shows "We couldn’t find that note." The notes live in POSTS in data.js, not in WordPress posts, so they keep the drawing-set layout; use WordPress posts (templates/single.html) if you prefer to write in the editor.

Studio hours and holidays#

initHours() shows "Open now, until 5:30 p.m. Central" or "Closed now. Opens tomorrow at 8:30 a.m. Central" in the footer and on the contact page, the next holiday closure ("Closed Friday, Dec 25 for Christmas Day.") and the contact reply date (two working days ahead). Hours come from STUDIO.hours. federalHolidays(year) computes the US federal holidays by rule (a Saturday holiday is observed on Friday, a Sunday one on Monday); they close the studio, skip meeting slots and move design starts.

The menu button (#menu-toggle) opens the phone menu with aria-expanded; Escape closes it and returns focus. The header gets a hairline shadow once the page scrolls. Elements with .reveal fade in once as they scroll into view. With prefers-reduced-motion: reduce there is no reveal, hero animation or smooth scrolling.

Keeping the demo current#

Nothing dated goes stale: design starts, meeting slots, move-in seasons, the studio's open status, holiday closures, the title block date, years in practice and the copyright year are all computed from today in Central time. Past content keeps its real dates: journal notes, awards, publications and project years. The "This week" lines of projects in progress (phase in PROJECTS) are written text; update them as your projects move along.

The patterns contain the text for Nov 29, 2026, so the page reads correctly before the script runs. A preview parameter pretends it is another moment in Central time, for reviews: /start/?now=2027-06-01T10:00. It is controlled by ALLOW_NOW_PARAM at the top of main.js; set it to false on a live site. For fixed dates, change CAPACITY, CONSULT and BRIEF.seasonLeadDays, or replace designStart() and meetingSlots() with your own lists.

Block styles#

In the block settings' Styles panel:

Block Styles
Button Fill (default, the blue button), Outline, Quiet (a hairline button for secondary actions)

The class is-small on a Button block makes it the smaller size. The arrow after button text is drawn with CSS (icon-after-arrow-right, from src/icons.css).

Forms#

There are two forms, both Custom HTML blocks. They don't send anything until you connect them.

  • Contact (#contact-form, contact-studio pattern, initContact()): name (2+ characters), email, optional phone (10 digits), a topic (project, existing, press, careers, other; preset with ?topic=press) and a message of 20+ characters. Errors show under each field with aria-invalid ("Enter your name.", "Enter an email address like you@example.com.", "Choose what your message is about.", "Tell us a little more: at least 20 characters."); the success panel shows a reference (LT-M plus four digits) and the reply date.
  • First meeting (#consult-form, brief-builder pattern, inside initBrief()): a slot, a place to meet, a name and an email; the phone is optional.

To connect a form service such as Formspree, find the comment in the submit handler in assets/js/main.js (in a child theme) and send the form with fetch, showing the success panel only when the service answers OK:

js
fetch('https://formspree.io/f/your-id', {
  method: 'POST',
  headers: { Accept: 'application/json' },
  body: new FormData(form)
}).then(function (res) {
  if (res.ok) { form.hidden = true; success.hidden = false; }
});

For the meeting request, add the brief's answers (from lintel:brief) as extra FormData entries. You can also replace a form's Custom HTML block with a form plugin's block; add the classes field-label, field, choice and btn-primary to its labels, fields, options and button so it matches.

Saved data (localStorage)#

All storage goes through safeStorage in main.js, which falls back to memory when localStorage is blocked (private modes, sandboxed frames), so the features keep working for the visit.

Key Shape Validation on read
lintel:theme 'light' or 'dark' Anything else means "follow the system"
lintel:starred ["trout-run-house", ...] Must be an array; unknown slugs and duplicates are dropped
lintel:brief { v: 1, step, type, site, size, budget, season, priorities: [] } v must be 1; each answer must be an own key of its BRIEF list; a season that has rolled out of the list is dropped; priorities are capped at 3 and kept in the order of BRIEF.priorities

These are the HTML version's keys. To reset, use Start over on the brief, unstar projects, or remove the keys in the browser's developer tools (Application > Local Storage). Values read from the address are checked with own-key lookups, so ?type=toString is ignored.

SEO and sharing#

Page titles come from WordPress: the page title, a middle dot and the site name (for example "Projects · Lintel Architecture"); the home page shows "Lintel Architecture: houses and small buildings in Decorah, Iowa", built from the site title and tagline (Settings > General) by freeframe_lintel_front_title(). The project and journal pages set the browser title to the project or note shown. The theme doesn't output meta descriptions or Open Graph tags; use an SEO plugin such as Yoast SEO, Rank Math or The SEO Framework, and give it assets/img/og-image.png (or your own 1200 x 630 image) as the default social image. WordPress generates a sitemap at /wp-sitemap.xml; project and note pages are chosen by ?p= and ?post=, so consider listing those addresses with your SEO plugin, or making one WordPress page per project.

Accessibility#

Built in: a skip link to the main content (added by WordPress, styled by the theme), landmarks (header, labeled navigation, main, footer), one h1 per page, sections labeled by their headings, visible focus outlines in blue, filters and toggles with aria-pressed, the drawing viewer as an ARIA tab list with arrow-key navigation, room hotspots as labeled buttons mirrored by the room schedule, drawings with role="img" and a description, labeled map pins, counts, stars and the brief announced in a polite live region, form errors linked with aria-describedby and fields marked aria-invalid, AA contrast in light and dark, and reduced-motion support. The demo passes axe (WCAG 2.1 A and AA) in light and dark mode in its checks.

When you edit: keep one Heading 1 per page, give images alt text (or mark them decorative), label every field you add, and keep body text at the Ink soft color or darker.

Building and deploying#

You only need this if you change the theme's files. The stylesheet assets/css/theme.css is compiled with Tailwind CSS from src/theme.css and the classes used in patterns/, parts/, templates/, inc/ and assets/js/:

sh
pnpm install
pnpm build   # compile assets/css/theme.css and assets/css/editor.css
pnpm watch   # recompile assets/css/theme.css on every change (run pnpm build before you commit)

Run pnpm build after adding a utility class to a pattern, template or the script's markup, otherwise the class has no style; keep each class name whole in the script (not built from pieces). Classes you type in the editor's Additional CSS class(es) field are only styled if the stylesheet already contains them.

To deploy, zip the theme folder (named freeframe-lintel, without node_modules/) and upload it in Appearance > Themes, or copy the folder to wp-content/themes/ on your server. Use HTTPS, set ALLOW_NOW_PARAM to false if you like, and connect the forms before you go live.

Translations#

The theme is translation-ready with the text domain freeframe-lintel. All text in patterns, templates and PHP goes through WordPress's translation functions; the script's own messages (validation errors, the menu button, "Next" and "See my timeline") are translated in PHP (freeframe_lintel_script_strings() in inc/setup.php). Sentences the script builds from pieces (dates, counts, the brief's checks, the studio hours) are written in English in main.js; translate them there. The practice's content in assets/js/data.js is edited there directly. Create a translation with Loco Translate, or with WP-CLI and Poedit:

sh
wp i18n make-pot wp-content/themes/freeframe-lintel wp-content/themes/freeframe-lintel/languages/freeframe-lintel.pot

Save freeframe-lintel-es_ES.mo (for example) in wp-content/languages/themes/ or in the theme's languages/ folder. Page content created by Lintel setup is copied into your pages in the site's language at that moment; translate it in the editor like any other content.

Child themes#

Use a child theme for changes you want to keep when Lintel is updated (your projects, people and journal notes in particular). Create wp-content/themes/lintel-child/style.css:

css
/*
Theme Name: Lintel Child
Template: freeframe-lintel
*/

Templates, parts, patterns and theme.json in the child theme override the parent's files of the same name. To use your own data.js, replace the parent's data script (freeframe-lintel-data) under the same handle in the child's functions.php:

add_action( 'wp_enqueue_scripts', function () {
	wp_deregister_script( 'freeframe-lintel-data' );
	wp_register_script( 'freeframe-lintel-data', get_stylesheet_directory_uri() . '/data.js', array(), '1.0', array( 'in_footer' => true, 'strategy' => 'defer' ) );
}, 15 );

Do the same for assets/js/main.js (handle freeframe-lintel), keeping the inline window.freeframeLintel strings and URLs. The parent's stylesheet only contains the classes the parent uses: if your child theme uses new utility classes, compile a stylesheet for the child (copy package.json and src/theme.css, point the @source lines at the child's folders) and enqueue it.

Troubleshooting#

  • The pages look unstyled or new classes do nothing. The stylesheet only contains classes it found when it was built. Run pnpm build after editing patterns, then reload.
  • "This block contains unexpected or invalid content". A pattern or page was edited by hand with markup that doesn't match the block. Click Attempt recovery, or re-insert the section from Patterns > Lintel.
  • The drawings are empty. data.js must load before main.js; if you replaced it in a child theme, check the handle and look for a syntax error in the browser console.
  • Project or journal links go to the wrong page. The script links to /project/ and /journal/. If you renamed those pages, change their URLs in freeframe_lintel_page_urls() in inc/setup.php.
  • My brief keeps coming back. It is saved in lintel:brief; use Start over.
  • Dates look wrong while testing. Remove ?now= from the address, or set ALLOW_NOW_PARAM to false.
  • The logo shows the wrong colors in dark mode. The header and footer show logo-dark.svg in dark mode; replace both Image blocks when you change the logo.
  • Lintel setup says the pages exist, but they are empty. It never overwrites existing pages. Delete (and empty the trash of) the pages with those slugs, or open each page and insert its page pattern from Patterns > Lintel pages.

License#

Split license: the PHP code and block markup are licensed under the GNU GPL, version 2 or later, and the CSS, JavaScript, images and design under the Freeframe Commercial License (unlimited sites for you and your clients; no resale or redistribution as a theme). The full terms, with your licensee details, are in LICENSE.txt and at https://freeframe.dev/license#commercial. Third-party components keep their own licenses. Fonts: Tenor Sans and Inria Sans are licensed under the SIL Open Font License 1.1 (OFL.txt in their folders of assets/fonts/), and Syncopate under the Apache License 2.0 (the license file is in assets/fonts/syncopate/). Lintel Architecture, its people, clients, projects and contact details are fictional.

Search documentation

Search the guides and every template's documentation