3 Replies
why not just use custom props
π€
Background images can be set in CSS, so it's possible to insert spam or porn. It's also possible to replace content on the page, which could be the basis for a scam.
Doing custom props requires me to structure the page and figure out all the ways a user might want to alter the appearance.
Say they want a border radius of 5% on the header & 2rem on the body elements. With CSS they can do that pretty readily (if I use a coherent semantic markup), if I'm defining all the props, I'll need separate ones for each different location.
For me to create a structure that matches the natural expressiveness of CSS is pretty much impossible.