Themes as modules, not as a folder
A theme is the only part of a page a reader notices, and the only part a developer treats as decoration. This demo page exists to make that gap visible: everything below is the theme's own markup, rendered against one fixture.
The kernel hands a theme a payload and the theme answers with HTML. No template engine, no parent theme, no cascade of overrides — one class, one stylesheet, and a handful of scripts that self-gate on the markup they find.
What the payload carries
Articles travel as plain objects. The theme reads slug, title, excerpt, cover,
date, category and author through get_object_vars(); it never imports the
blog entity, so removing the blog module does not break the theme.
Why objects and not arrays
An object with a missing field is a visible absence; an array with a missing key is a notice in a log nobody reads. The conversion happens once, at the boundary.
What the theme owns
- the markup of every surface it implements;
- the stylesheet that styles it;
- the behaviour scripts, gated on their own markup;
- the tests that pin all three.
If a page needs a class the theme does not define, the page is wrong — not the theme.