Skip to content

Every kind of poster section takes style= and colour= - #175

Merged
markbac merged 1 commit into
mainfrom
claude/laughing-pascal-58kcjh
Oct 21, 2026
Merged

markbac merged 1 commit into
mainfrom
claude/laughing-pascal-58kcjh

Conversation

@markbac

@markbac markbac commented Oct 21, 2026

Copy link
Copy Markdown
Owner

Summary

Every kind of poster section now has a choice of looks with style=, and colour= colours every one of them:

Kind Styles, the default first What colour= paints
A section bar, line, card, plain The bar, the heading, the rule or the top edge
{.stats} strip, tiles, plain The rules, the tiles or the figures
{.abstract} box, quote, outline, plain The fill, the rule, the frame or the text
{.summary} banner, line, plain The banner and the rules
{.references} columns, list The heading
  • How it works: colour= sets one CSS variable, --c, on the part, and every style paints with var(--c, <the theme's colour>). With no colour=, each default looks as it did before.
  • Errors: a style its kind doesn't have is an error that lists the styles it does have.
  • Checked in Chromium in the default, dark and print themes. That caught one problem, now fixed: an outline abstract's frame fell back to secondary, which is nearly white in the print theme. It falls back to accent now.
  • Examples: the release poster's figures are tiles, and the reliability report has a quoted abstract and an underlined summary.
  • Docs: the posters chapter has a table of every kind's styles and what colour= paints. The writing guide covers style=, and FR-160 is extended.

Tests

  • 1341 passed, 20 skipped, including a test of a style and colour on every kind, and the error for a wrong style.
  • The browser tests pass.
  • ruff check . passes, and so do both --strict lint runs.
  • All four example posters build as one-page PDFs.

Generated by Claude Code

A section can be a bar (as before), a line, a card or plain. A stats strip
can be a strip, tiles or plain; an abstract a box, a quote, an outline or
plain; a summary a banner, a line or plain; references in columns or a list.
colour= sets one CSS variable that every style paints with, so it works on
all of them. A style a kind does not have is an error that lists its own.
The release poster's figures are tiles, and the reliability report has a
quoted abstract and an underlined summary.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSgoaW6yVJY8XteKGYy9GB
@markbac
markbac merged commit 1e25e04 into main Oct 21, 2026
6 checks passed
@markbac
markbac deleted the claude/laughing-pascal-58kcjh branch October 21, 2026 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants