normalize.css (which you should eventually prefer over this) with some personal and slightly more opinionated adaptions.
npm i ronalize.css
- Default to box-sizing for border-box
- Usage of System Font Stack
- Base font size of 16px (in order to use
rem
) - Typography base font size of 1.125rem (18px)
- Controls (input, button, etc.) inherit font and have a line-height of 1
- Document (html & body) with a height of 100%
- Smooth scrolling and speed-optimized text rendering by default
- Disabled animations and smooth scroll for users requesting reduced motion