DEV Community

Discussion on: Why is CSS Hated On?

Collapse
 
johannes5 profile image
Johannes5

I just despise having to open a document and change some values (and sometimes even having to refresh the page) before seeing a result. That's like making Typewriter art.

Don't blame a designer wanting to create components in a design tool, where he can drag, resize and otherwise use interfaces that represent the desired behaviour better than a bunch of css keys that have to coexist in the right way (with multiple gotchas to look out for).

Luckily, there is a tool called Plasmic.app which not only generates components for, but keeps their design (in Plasmic Studio) in sync with your codebase. And also allows you to "register" pre-existing components to configure them in Plasmic or insert public components like Antd. And you can directly feed components with content from your CMS without having to touch code at all.
And if you decide using their "Codegen" option (React only), you have little to be desired in terms of customisability. Your own, let's say "Modal" component, wraps a "PlasmicModal" component. Which you wont touch directly(because it will be overwritten), but you can manipulate its elements and variants and slots(content) via props.