Yoga: A cross-platform layout engine
Why not just embrace Cassowary (<a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Cassowary_(software)" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Cassowary_(software)</a>) aka the algorithm behind Cocoa&#x27;s Auto Layout? Auto Layout isn&#x27;t perfect but I think that it&#x27;s fundamentally the API&#x2F;UI that you are working with, the concepts are definitely at the right level of abstraction. Some sort of DSL could really solve this.<p>Flexbox could be implemented as a framework on top of this.