CSS Specificity Graph Generator (jonassebastianohlsson.com)
over 8 years ago from Catalin Cimpanu
over 8 years ago from Catalin Cimpanu
Of course we should thanks Harry Roberts - I only wrote this because of him. Hope I have credited him enough.
All of a sudden CSS specificity is cool. Maybe we should thank Harry Roberts.
Well I guess this is what BEM gets you.
I think your graph is a great outcome! Harry's idea of a hockey-stick shape isn't appropriate for a web application (maybe a single stylesheet marketing site), where you might be building components and trying to namespace them within partials.
I've probably got 25 or so scss partials. I bet if I processed any one of the larger ones, they'd probably look more like the ideal hockey stick.
This seems optimal. Each partial should ideally be a world unto itself (not always the case, but a guy can dream).
Designer News
Where the design community meets.
Designer News is a large, global community of people working or interested in design and technology.
Have feedback?
Login to Comment
You'll need to log in before you can leave a comment.
LoginRegister Today
New accounts can leave comments immediately, and gain full permissions after one week.
Register now