How to Write a Flexbox Layout Engine – tchayen.com
tchayen.com · 5,527 words · saved by 1 readers
You won't guess how little code it takes to write a full-blown layout engine.
How to Write a Flexbox Layout Engine - tchayen.com How to Write a Flexbox Layout Engine June 25, 2023 In this episode of reinventing the wheel, I will show how to write a layout engine from scratch in TypeScript. The goal is to achieve something closely resembling Yoga by Facebook. But why Maybe before we start, it’s worth answering this simple question. Putting aside the problem of whether or not we should be writing our own layout engine, when would we need one in the first place? The layout engine is practical when we need to orchestrate views around the screen. Which usually means that we
saved by
related reading
- An Interactive Guide to Flexbox in CSS • Josh W. Comeaujoshwcomeau.com
- Flexbox | Codropstympanus.net
- Understanding Layout Algorithms • Josh W. Comeaujoshwcomeau.com
- A Complete Guide to CSS Flexbox | CSS-Trickscss-tricks.com
- Common CSS Flexbox Layout Patterns with Example Code | Tobias Ahlintobiasahlin.com
- Flexbox Froggyflexboxfroggy.com
- Basic concepts of flexbox - CSS | MDNdeveloper.mozilla.org
- Cheng Lou on X: "My dear front-end developers (and anyone who’s interested in the future of interfaces): I have crawled through depths of hell to bring you, for the foreseeable years, one of the more important foundational pieces of UI engineering (if not in implementation then certainly at https://t.co/BKnwCDIp75" / Xx.com
- Inside Framer's Magic Motionnan.fyi
- GitHub - chenglou/pretext: Fast, accurate & comprehensive text measurement & layoutgithub.com
- The CSS behind Figmaishadeed.com
- CSS polyfills from the futuregss.github.io