About eight months ago, I had an idea for a potential tool that could help refactor CSS. I wondered, “Why aren’t there many (any?) CSS static code analyzers out there?”
I mean when you think about it, it is a little crazy. CSS is a pretty simple language and it has been around for over 15 years. The selectors can get a little intense and there is a laundry list of properties. But the core syntax of CSS is pretty straightforward.
The premise was simple. In all other languages, I work at writing DRY code. So why can’t something inform me when I’m repeating the same declarations over and over? Better yet, I wouldn’t need a browser to figure this out. I should have all information immediately available in the source code.
I had this idea eight months ago, and I am proud that I had the fortitude to stick with the project and launch it. So here it is.
World, please meet csscss.