3 ms·
> None of them actually solve this problem because they can’t generate the actual code. That is a crucial part. Because there are a million ways to generate th
by dmitriid 4y ago
> None of them actually solve this problem because they can’t generate the actual code. That is a crucial part.
Because there are a million ways to generate that code (if we're talking about the browser), and they will all break when coming into contact with reality.
- your sizes are in em/rem, and your root font size is off? Goodbye design
- you absolutely need something at the bottom of the screen (think media controls), and you have absolute positioning? Goodbye design for large combinations combination of screen/positioning
- you need something centered on, say, third element from the right? And then another element is added on the left? Goodbye design
- you need something animated? Goodbye design
- etc. etc. etc.
However, for some established patterns you might get away with some standard design choices and some generated code