Repository navigation
Add product-landscape.css and the page drawing host contract - #157
Merged
Merged
Conversation
0thernet
enabled auto-merge (squash)
October 5, 2026 03:51
0thernet
force-pushed
the
codex/product-landscape
branch
4 times, most recently
from
October 5, 2026 04:14
c80001d to
5a6595b
Compare
One opt-in primitive draws a product's grayscale luminance mask behind public marketing, documentation, and blog pages: tinted from the page's own foreground over its background, tiled vertically so long pages never run out of scenery, swapped for a narrow image on phones, and hidden for forced colors and print. Hosts opt in with data-hraness-landscape="page" (or MarketingPage's landscape prop), application routes opt out with "off", and "contained" draws behind one element. Over the drawing, page wrappers clear to the body colour, code blocks and tables keep opaque rounded surfaces, and small cards and callouts become frosted panels that fall back to opaque without backdrop support, under reduced transparency, and in forced colours. Products pick per-surface behaviour with data-hraness-landscape-surface="clear"|"solid"|"glass". Without a host or --hraness-landscape-image the ruleset is fully inert. styles.css and compiler-foundation.css include it; released as v0.41.0. See LANDSCAPE.md for the image contract and rollout notes. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
0thernet
force-pushed
the
codex/product-landscape
branch
from
October 5, 2026 04:33
5a6595b to
8947a49
Compare
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.
Summary
src/product-landscape.css: one product-specific drawing painted behind public marketing, documentation, and blog pages. The product supplies a grayscale luminance mask; the kit tints it from the page's text and background palette, tiles it down the page (repeat-y) so long pages never run out, swaps in a narrow image on phones, and hides it in forced colors and print.data-hraness-landscape="page"paints behind the whole page,"contained"behind one element,"off"suppresses inherited scenery on application routes. No host or no configured image means no visual change.data-hraness-landscape-surface="clear"|"solid"|"glass"— wrappers clear, code blocks and tables stay opaque with rounded edges, small cards frost over the drawing and fall back to opaque without backdrop support, under reduced transparency, and in forced colors.MarketingPagegains a typedlandscape?: "page" | "contained" | "off"prop that emits the attribute and rejects unknown values withRangeError.@hraness/design-kit/product-landscape.cssand included instyles.cssandcompiler-foundation.css. Documented in LANDSCAPE.md; DESIGN.md records the landscape as the sanctioned exception to the Quiet direction for page-level drawings.Test plan
@import/url(), export wiring,MarketingPagehost values andRangeErroron unknown valuesscripts/product-landscape-browser.ts— page tiling, contained host, off suppression, narrow image, clear/glass/solid surfaces, forced colors, printbun run lint,bun run typecheck,bun run build(dist regenerated)Generated with Devin