This coding style guide defines formatting and style rules for the HTML and CSS files contained within EPUBs. It aims at promoting effective collaboration and consistent code quality and acts as the official style guide to follow as you markup, code, and transform content for distribution.
This quote from CSS Guidelines, an opinionated CSS style guide, summarizes well the benefits of a style guide for teams:
A good styleguide, when well followed, willStyleguides should be learned, understood, and implemented at all times on a project which is governed by one, and any deviation must be fully justified.
- set the standard for code quality across a codebase;
- promote consistency across codebases;
- give developers a feeling of familiarity across codebases;
- increase productivity.