DEV Community

Discussion on: How do I organize my CSS code for components?

xilenomg profile image
Luis Perez Author

It works only on SCSS or SASS. I had to mention that. SASS basically will convert this code into css. You can use variables for colors for example so u dont need to rewrite same hex all the time. There are many benefits (and few cons on my point of view) using SASS.

I think it’s much more organized than pure css and the way i wrote in this article is working for some time already without any change.

Thanks for your comment!

madrafj profile image
Ahmad Rafsanjani

You're welcome