Flowershow layout features for research and knowledge-base sites

What Flowershow would need so a research, knowledge-base or tutorial site reads as well as the Claude Markdown viewer, out of the box, without CSS hacks. Written from piloting the research style on collective-action.seedsofrenaissance.org (2026-10-31) and the teardown of the Claude viewer (ux-patterns, Claude Markdown previewer.md).

The problem in one paragraph

Flowershow's theming is CSS over one fixed page structure: navbar, optional site sidebar on the left, the text, a page contents panel on the right. Fonts, colours and spacing can be changed in custom.css, and that part works well. But the things that make the best reading sites good are structural: where the contents sit and how they behave, how footnotes open, whether figures and tables can be wider than the text, what the page header shows. In the pilot each of these took either !important overrides of the theme's grid or a script that rebuilds the page after it loads (house.js). That is fragile (it breaks when the theme's markup changes), shows the old layout for a moment before the script runs, and needs Premium for the script. So the proposal is that layout becomes configuration: a small set of named layouts, each with its own HTML, chosen per site and overridable per page.

What the pilot had to hack

WantWhat we didWhy it's a hack
Contents as ticks at the far left, outline on hoverHid .page-toc-container, overrode .layout-inner.has-toc grid with !important, injected a rail with a scriptTwo copies of the contents logic; the grid override depends on theme class names and breakpoints
Inline contents on phonesScript inserts a <details> under the headerFlowershow already knows the headings; it could render this
Footnote cards ("Jump to note")Script rewires GFM footnote linksWorks, but Premium-only, and runs after first paint
Column centred once the right panel is goneGrid override plus max-width on .layout-inner-centerFights the theme's three-column grid
Tables and figures wider than the textNot possible; tables fill the column at mostBreakout needs a grid with spare columns, which the layout doesn't have
Custom callout types (reflect, exercise, poll, key ideas)Data-URI SVG icons in CSS masks, labels via ::afterCallout types should be config: label, icon, colour
Page title and summary styling!important on .page-header-titleFine, but sizes should be tokens

Proposal: named layouts, chosen in config

{
  "layout": "reading",
  "layouts": {
    "reading": { "toc": "rail", "footnotes": "cards", "width": "36em", "breakout": true }
  }
}

A page can override with layout: in its frontmatter, as layout: plain works today. Four layouts would cover our sites:

  • reading (essays, papers, long notes): one centred column of about 70 characters; contents as a rail at the far left or inline on narrow screens; footnote cards; figures and tables may break out to a wide or full width; a page header with authors, date, version and a cite-as block from frontmatter.
  • wiki (knowledge bases): the reading column plus wiki affordances: backlinks, hover previews of linked notes, tags, "last updated", status (seedling, evergreen), breadcrumbs from the folder.
  • docs (tutorials and courses): the site tree on the left, the text, page contents either inline or as the rail; previous and next links at the foot; numbered steps.
  • default (today's layout) and plain (today's layout: plain), unchanged.

Features, in priority order

Each says what we want, why, and what Flowershow would need. Priority is our view of reading gain for effort.

1. Page contents: position and style (high)

  • Want: toc: right | left | rail | inline | none. rail: one short tick per heading in the far-left gutter, the current section highlighted and read sections dimmed, the outline opening on hover or focus; only on pages with three or more headings. inline: a collapsible "Contents" block under the page header, used automatically below the width where the rail fits.
  • Why: the contents should be there when you reach for it and invisible otherwise. A permanent right-hand panel takes a third of the width for something read once. The Claude viewer and many docs sites put it at the far left, away from the text.
  • Needs: the layout to render the contents in a different place and markup (it's HTML, not CSS); a small script for current-section tracking, which Flowershow's contents panel may already have.

2. Content widths and breakout (high)

  • Want: a set measure for text (width, default about 36em), with figures, tables, code and embeds able to go wide (about 1.5× the text) or full (the window), by markup in Markdown: for images, the title or an attribute (![alt](img.png "wide") or {.wide}); for tables, automatically wide when they don't fit, with a class to force it.
  • Why: research pages have charts, diagrams and wide tables that are cramped at 70 characters; the best essay sites (Distill, Ink & Switch, Works in Progress) let figures breathe while keeping text narrow.
  • Needs: the page body as a CSS grid with named columns (full, wide, content), the standard "breakout grid" pattern, with nothing else (contents panel, sidebar) occupying the space a wide figure needs; and the Markdown pipeline passing the width through as a class.

3. Footnotes: end, cards or sidenotes (high)

  • Want: footnotes: end | cards | sidenotes. cards: clicking the number opens the note in a card beside it, with "Jump to note ↓" and a brief highlight where you land; closes on Escape, a click outside or scrolling away. sidenotes: notes in the margin on wide screens (Tufte CSS, Gwern), falling back to cards on phones.
  • Why: reading the note without losing your place is the biggest single gain for research pages, which carry many notes (collective-action chapters have 30 to 90).
  • Needs: built into the theme (not Premium head code); sidenotes also need the breakout grid's margin column.

4. Paper apparatus from frontmatter (medium)

  • Want: fields rendered by the layout: authors, date and updated, version, series with previous, up and next, citation (cite-as text and BibTeX, generated from the fields), pdf (a download link), status.
  • Why: every research site hand-writes these in HTML today (.sor-paper-meta, .sor-pager, cite blocks), differently each time.
  • Needs: frontmatter fields in the page schema and a header and footer in the reading layout that render them.

5. Design tokens in config (medium)

  • Want: theme.fonts (body, heading, mono, with Google Fonts or self-hosted files), theme.size, theme.measure, theme.accent, theme.ink and theme.paper (light and dark), with every border and fill derived from the ink.
  • Why: most of a research style is these values; today they are CSS variables plus overrides of theme selectors.
  • Needs: the theme to read these and expose them as CSS variables everywhere it styles.

6. Callout types in config (medium)

  • Want: callouts: { reflect: { label: "Reflect", icon: "lightbulb", color: "amber" } }, so a site can define its own types without CSS masks.
  • Why: courses need types like reflect, exercise, poll and key ideas; collective-action does this with data-URI SVGs in CSS.
  • Needs: the callout renderer to look up type definitions in config, with an icon set.

7. Knowledge-base affordances (medium, for the wiki layout)

  • Hover previews of internal links (the linked note's title and first paragraph in a card), as Gwern, Andy Matuschak's notes and Obsidian Publish do. The biggest gain for wikis after footnote cards.
  • Backlinks (already there: showBacklinks) shown under the text as "Linked from", with a line of context.
  • Note status and dates: seedling, budding, evergreen; created and updated (Maggie Appleton's garden).
  • Tags and index pages generated per tag; breadcrumbs from folders.
  • Definitions: a glossary page whose terms are linked or previewed where they're used.
  • Bibliography: one references file (BibTeX or CSL JSON) and [@key] citations rendered as numbered notes and a reference list.

8. Tutorials and courses (lower)

  • Previous and next links from the site tree; numbered steps; a progress marker in the tree; "time to read" per page.

9. Smaller things that add up (lower)

  • text-wrap: pretty and balance by default; heading anchors (already there); 6rem of space at the foot of a page; print styles that hide navigation; dark mode from the same tokens.

What we do meanwhile

The research style in the design repo (research-flowershow-theme/: custom.css and house.js) does items 1, 3 and part of 5 by CSS and script, on Premium sites. As Flowershow gains each feature, drop that part of the script and the overrides. The sample site research-flowershow-theme/sample-site/ (published with fl at research-style-sample-rufuspollock.flowershow.me) is the place to try each change.

Open questions

  • Named layouts, or independent switches (toc, footnotes, width) with presets? Switches are more flexible; presets are easier to explain. Probably presets built from switches.
  • Should the reading layout drop the site sidebar entirely, or keep it collapsible on the left with the rail beside it?
  • Which of these does the Flowershow team already plan? (To check against the roadmap before filing separate issues.)