This is the guide for a developer who is building the front end of a THINQ Site: its theme, its sections (blocks), its header and footer, and any pages with their own logic. It assumes you can read TypeScript and have used React. It does not assume you have seen this codebase.
Most of it was written while Encore Performing Arts' developer built their site on THINQ Site, and the questions they asked are answered here. Every change made to the platform because of that work is listed in CHANGELOG.md.
The stack: TypeScript, Next.js 16 (App Router), React 19, Tailwind CSS v4, Zod v4, Node 22+. Content is JSON files validated by Zod. There is no database, no template language and no plugin system.
Read in this order
| # | Guide | What it covers |
|---|---|---|
| 1 | Getting started | Clone, run, sign in, pull updates, branches and pull requests |
| 2 | How a site is put together | Your repo vs core, how the two are assembled, what you own, what you must not edit |
| 3 | Themes | Colour and spacing tokens, extra colours, the brand colour, fonts, Tailwind |
| 4 | Blocks | Writing a section an editor can add and fill in: the schema is the editor, field-name rules, rich text, images, forms, section anchors, motion, changing a core block |
| 5 | Header and footer | Replacing them without losing the CMS menu, dropdowns, per-item styling, mobile menus, logo image, social links, a form in the footer |
| 6 | Pages, routes and content | CMS pages vs code routes, section pages like /tour/dallas, seed content, where images go |
| 7 | Embeds and integrations | Vendor widgets and iframes (Dancebug worked example), scripts and the allowlist, outside data |
| 8 | Testing and deploying | Preview, the block catalogue, the production build, tests, staging, how core updates reach you |
| 9 | Troubleshooting | Every error we have seen, with its cause and fix |
| — | Questions developers have asked | Every question asked so far, with the current answer and where the guide covers it |
| — | Why not headless? | Why you already have what headless promises, and the one case it wins |
| — | Entrance motion | Scroll-in animation for blocks |
| — | CHANGELOG | Every developer-facing change, why it was made, and what is still open |
New here with a specific question? Start with Questions developers have asked.
The ten rules
If you read nothing else:
- Build in your site repo. Never edit
core/and never edit.thinq/build. Core is shared by every site;.thinq/buildis regenerated on every save. - A block's Zod schema is its editing form. Every field you declare is a field the editor sees. Anything you do not declare is dropped on save.
- Field names choose the editor.
body,description,intro,subtitle,quote,challengeandsolutionget the rich-text editor and hold HTML, so render them with<SafeHtml>.image,photo,logoand anything ending inImageget the media picker.formIdgets a form picker. (Blocks §4.3) - Register, don't switch. One entry in
src/features/index.tsputs a block in the Add menu, the validator and the renderer. Never add aswitchtoBlockRenderer. - Replace the header and footer with
chrome, built from core's parts (SiteNav,SiteLogo,SiteHeaderActions,SiteFooterLinks,SiteLegalLinks), so the menu stays editable in the admin. - Map your palette onto the token names; don't rename them.
--inkis the page background and--creamis the text colour, even in a white theme. - Code-owned images go in
public/; editor-owned images go in the Media library. - A block that renders raw HTML or script must be
adminOnly: true. npm run buildon the assembled tree is the gate. If it fails there, it fails on the host and core updates stop reaching your site.- If the fix belongs in core, send it to Bo. It lands once, for every site, instead of as a local patch that the next update overwrites.
Quick answers
| Question | Answer |
|---|---|
| Can I use Google Fonts or my own font files? | Yes, from your theme with next/font. Themes §3.6 |
| How do I show our logo image instead of the site name? | Set site.header.logo, or render your own <SiteImage>. Header §5.4 |
How do I make a #link jump to a section? |
Give your block an anchor field and put it on the section's id. Blocks §4.8 |
| Social icons and a form in the footer? | Yes. Footer §5.8–5.9 |
| Scrolling feels laggy. | Settings → Smooth scrolling: Soft, Medium, Light or Off, per site. Pages §6.7 |
| Can I change one of the built-in blocks? | Restyle it with tokens, or copy it into your feature as a new block. Blocks §4.11 |
| One page per city, without cluttering the Pages list? | Section pages: create tour/dallas in the admin, no code. They fold under /tour/… in the list. Pages §6.4 |
| Where do vendor iframes go? | The Embed / Code block, or a plain <iframe> in your component. Embeds |
| My admin edits disappear when I save code. | Fixed 2026-10-05. Pull and update core/. Troubleshooting |
Do I need a src/app folder? |
Only for a route that is not a CMS page. Pages §6.3 |
Keeping this guide true
This guide describes code, and code moves. When you change something it describes, change the guide in the same commit, and add a line to CHANGELOG.md. Where this guide and the code disagree, the code is right and the guide has a bug: please report it.
This text is maintained in thinq-site-core at docs/developers/README.md (commit e72488e) and published here unchanged.