Idiomatic CSS is a widely referenced style guide for writing clean, consistent, and maintainable CSS. It lays out naming patterns, file organization, and comment conventions so teams can collaborate without tripping over different styles or habits. The guide emphasizes clarity over cleverness, encouraging predictable selectors and practical class names that scale as a codebase grows. It also discusses how to structure rules, whitespace, and property ordering to make diffs cleaner and reviews faster. Beyond formatting, it promotes a mindset of thoughtful abstraction and restraint, helping developers avoid premature complexity. Because it is tool-agnostic, the advice applies whether you use vanilla CSS, preprocessors, or utility systems, and it can be adapted to fit most workflows and build pipelines.
Features
- Clear naming and selector conventions
- Guidance on file structure and modular organization
- Recommendations for comments, documentation, and code review hygiene
- Property ordering and whitespace rules for readable diffs
- Tool-agnostic principles usable with preprocessors or vanilla CSS
- Emphasis on scalability and team consistency