TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Distinguish – a simple way to minify and disambiguate CSS classes

3 pointsby freedmandover 6 years ago

2 comments

freedmandover 6 years ago
Hi all,<p>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 &quot;_cls-&quot; prefix) was a reasonable compromise that only adds clarity and intent.<p>I&#x27;ve used Google&#x27;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&#x27;s what I&#x27;ve found the most useful).
ramonover 6 years ago
this is a very cool project great work, I liked a lot the variable feature looking forward to testing this one soon.