Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: Distinguish – a simple way to minify and disambiguate CSS classes (github.com/freedmand)
3 points by freedmand on Jan 2, 2019 | hide | past | favorite | 2 comments



Hi all,

I created Distinguish because I was frustrated with how messy naming CSS classes and IDs can be. There was (for me at least) no simple system that could reduce class names and work across any file extensions. So I reasoned that employing the author to add a little extra information to the class name (the "_cls-" prefix) was a reasonable compromise that only adds clarity and intent.

I've used Google's Closure Stylesheets before to great results, but it depends on a very specific build system. My intent with Distinguish is for it to be very lightweight, modular, and fast (and it can work for any type, not just CSS classes and IDs, though that's what I've found the most useful).


this is a very cool project great work, I liked a lot the variable feature looking forward to testing this one soon.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: