Skip to content

References

References

  • Supersedes/extends packages/retail-studio-interpreter/src/interpreters/psd/docs/rsts-schema-proposal.md — its text half (style runs, pattern matching, per-ratio typography, non-uniform glyph scale) already shipped; its layer-level non-uniform scale (scaleX/scaleY on layoutStateSchema itself, distinct from the already-shipped text-level version) and its frames/grouping/pins proposal (§4.3, unbuilt) are the ground this plan's Positioning/ Background redesigns build on.
  • Bespoke components this plan retires or migrates: betta-price-box, freshmart-price-box, freshmart-save-box, jb-price-box (Price's four real currency-formatter consumers) and betta-discount-box (Text Foundation's padding fix only). jb-price-frenzy shares the naming pattern but carries no currency logic and renders a freeform headline string — out of scope for both, named here only to avoid it being mistaken for a fifth target.
  • Keyframe Animation's design: an earlier design pass had already fully worked out the easing/keyframe/cue-retiming model documented on that page; this plan carries it forward as real, scoped work rather than leaving it as prior art.

Matthew's technical preferences

  • Content as an array union discriminated by value/price
  • layout.mode discriminated union
  • Relative typography resolved to absolute in our own resolver (no CSS em/ch/cap reliance)
  • Price built on locale-aware part formatting
  • Groups flat and by-reference
  • The breaking reshape done once, new modes added additively
  • Background padding as a purely paint-time effect, never a layout input
  • Pins supersede attachTo rather than coexisting with it