A list of CSS authoring rules with examples and a Stylelint config accessible from the top of the page.
I've come to these through 20 years of experience and a willingness to make vanilla CSS a better alternative to frameworks.
I encourage you all to comment on the rules themselves and the Stylelint Config for ECSS. Here's the link for faster access (I still suggest at least zipping through the rules beforehand).
https://www.npmjs.com/package/@efficientcss/stylelint-config...
> /* Do */
> [id="main"] { max-width: 80ch; }
> /* Don't */
> #main { Max-width: 80ch; }
I strongly disagree with this kind of guideline. The id attribute has very good uses, and in those cases the hash syntax should be the preferred way.
The use of id in an attribute selector is such a bad choice that makes me question the whole document.