3 ms·
I really like the ITCSS approach - you define your rules the way you’d create a sculpture out of granite. Start by taking a granite block out of the quarry / de
by andrei_says_ 5y ago
I really like the ITCSS approach - you define your rules the way you’d create a sculpture out of granite. Start by taking a granite block out of the quarry / define the most common rules with widest coverage, then gradually carve the largest details / more specialized rules and then focus on the details.
This way you work with the cascade, as CSS was designed.
Defining sensible defaults and then having a few utility classes for layout helps with this. You could follow it BEM for the rest.
This structure results in minimal CSS that doesn’t fight itself.