DEV Community

Discussion on: How do you organize your CSS?

Collapse
 
pgrab86 profile image
Paweł Grabowski

Yeah, the worst thing for me also is the time of changes, or when suddenly there is a need to design a new view, and designer use some new font size...this is the moment, when I want to kill somebody. I really HATE writing additional exceptions and have no idea how to predict situations like that. For example:

I tried to name classess because of their margin/padding from other elements. Created .smallMargin, .normalMargin, .largeMargin...what if in future design there will be something between normalMargin and largeMargin? From one side such naming is easy to remember, but the main downside is case I wrote about.

Collapse
 
allison_seboldt profile image
Allison Seboldt

Saaaame.