DEV Community

Discussion on: I front-end and hate CSS. Here's how I deal with it

Collapse
 
mtrantalainen profile image
Mikko Rantalainen

In my experience, Zeplin is pretty poor as far as it comes to CSS. Modern UIs should be designed relative to font size the user has selected for his or her browser and as a result, your front end should be sized using raw em and rem everywhere. Zeplin doesn't support that as far as I know.

Try to create semantic markup first and use CSS (and maybe JS) to tweak the UI if really needed. Once you understand CSS well (and hopefully don't need to support MSIE or older Safari releases) it seems pretty clear that the V in MVC is CSS in web development.

Yeah, CSS is pretty huge spec. And the compability between older browsers hasn't been that good. But in the end, CSS is the best we have for any environment.

Collapse
 
fly profile image
joon

Modern UIs should be designed relative to font size the user has selected for his or her browser
Definitely, something that I had not accounted for when I began CSSing. Thank you for the advice.

Zeplin doesn't support that as far as I know.
Very true, I've just been using the font-size in pixels generated via Zeplin.

it seems pretty clear that the V in MVC is CSS in web development
Very insightful. I put some thought to the notion and I agree completely.

But in the end, CSS is the best we have for any environment
Sad but true... a great big nemesis that I have been forced to conquer :)

I immensely appreciate your feedback Mikko. It widened my perspective related to CSS and also supplied real-life applicable project design advice. Thank you very much! :)

Some comments have been hidden by the post's author - find out more