Repository navigation
Selectable themes, each a palette and a typeface - #8
Merged
Merged
Conversation
A theme is a palette and a type stack. A rendered note carries only the values it was made with, resolved into one :root block — never the list of themes that exist — so a theme added later cannot leave a note on disk stale. The gallery holds the catalogue and hands a note a different value set through the card's link, which the note applies without learning a name. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
davertor
force-pushed
the
feat/themes
branch
from
September 9, 2026 12:14
4d2782e to
7c1aaa8
Compare
This was referenced Sep 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TLDR: Adds eight themes the reader can switch between, each defining its own palette, typeface and paper. A note carries only the values it was rendered with, so adding a theme later never leaves notes on disk stale.
The same note in all nine themes. The palette, the typeface, the paper and the corners all come from the theme; the composition never moves.
scripts/themes.py— one source of truth for colour and type. Each theme declares 12 colour tokens, a scheme, grain, radius, border, paper texture, and a type stack (display / body / label faces plus weight, variable axes and tracking).palette_cssresolves one theme into a single:root;autois the only one that needs the light/dark pair. Nothing in a note names a theme, so a theme added years from now cannot make it stale.paper,field,blueprint,graphite), plusbureau,acid,barbie,petrolandnotebook, each with its own faces. Accents span seven hues where the shipped design had one.--selftestasserts WCAG AA for every text token against its own paper, for text on bands and highlights, that the two muted tiers are tellable apart, and that a stack's display weight is one its family actually loads.#fffon the accent (2.25:1 on the darkest theme) and is now--paper; print overrides use!importantso an injected theme cannot print in colour.themesto the CI selftest loop, andmarketplace.jsonto the version cross-check it had drifted out of.Genres (field-guide and recipe layouts) build on this and land separately.