ECSS and global styles
Whilst the Lion's share of CSS in a web application can be described as module based, there is an inevitable amount of global CSS we need to deal with. From an ECSS perspective we should keep this global CSS as minimal as possible. Typically, besides any requisite reset styles, there will be a default font-size, font-family and perhaps some default colours. These are styles that are usually applied to type selectors. Unless you have classes on the root HTML element of body for example.
Note
If you are looking for a base set of reset styles for a web application you may find my App Reset CSS useful. You can find it on GitHub here: https://github.com/benfrain/app-reset or install via NPM with npm install app-reset.
There may ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access