feat(theme): expose primary/secondary container slugs to WP presets #105
No reviewers
Labels
No labels
priority
P1
priority
P2
priority
P3
priority
P4
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Toilville/toilville-design!105
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/converter-lists-and-products-adapter"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The toilville.com section bands (
What we make,Who we are) usebrand.primary-containeras their tint. Thetoilville-fsepalette had no slugfor it, so a block wanting that colour had to hardcode the value.
Adds
primary-container(#f7ebe7) andsecondary-container(#fcf7e6),both read from
dist/toilville/tokens.dtcg.json— same provenance as the sixslugs added in #104.
Consumed by toilville_rituals#366, which migrates
products-gridto the design.just checkgreen.https://claude.ai/code/session_01Kbzfscp4w5enUrZxMnDt78
Three fixes that together let the "What we make" band round-trip into toilville/products-grid + toilville/product-card. 1. <ul>/<ol> now map to fact_set. They previously fell through to the generic recurse, which walks CHILDREN only — so an <li>'s own text was dropped and a decorative <span>-</span> bullet was all that survived. That is the "(--)" rows in the review renders. Leading bullet glyphs are stripped so each fact reads as its own text. 2. <img> now emits an image block instead of being dropped. The vocabulary already had one (see _build_labeled's media/image branch); nothing routed to it from the heuristic path, so the product logos were lost. 3. _products_grid adapter: context("[ NN ]") + header, then repeating [image? section(tag) header(name) section(body) fact_set] card runs, emitted as a products-grid wrapping one product-card per card. The logo URL picks the card's tint — that is how the design distinguishes Rituals from Spelwork, and the copy alone does not say it. Landing now emits hero-home, products-grid + 2 product-cards, and joinband-cta. Not yet carried: the per-card "See Rituals ->" links. The design writes them as plain anchors, which the converter does not treat as actions. Claude-Session: https://claude.ai/code/session_01Kbzfscp4w5enUrZxMnDt78