So you want to write a GUI framework (2021)
I think the 3 absolute demons that will eventually seek to destroy you in any homebrewn GUI framework will eventually be:<p>- Rendering and dealing with text in all of its extreme permutation. Styling. Localization. Character sets. Etc.<p>- Modern accessibility standards. There are countless annoying yet de facto UX patterns that are just nightmarish to check off the list from scratch. Inputs&#x2F;forms&#x2F;etc. Even worse than accessibility, because you can decide to forgo that completely if you really wanted. The sheer volume of UX use cases and edge cases involved in even seemingly basic input components is also an exercise in rote dread. You&#x27;ve got input validation, error states, just so many ergonomics to deal with.<p>- Fluid layouts and scaffolding. This is where modern HTML&#x2F;CSS finally starts to shine because making flexible layouts is actually quite painless. But it&#x27;s a motherfucker to roll your own approach.