talira

modern-normalize

Normalize browsers' default style

open sourceMITself-hostablefree

modern-normalize is a small CSS file that smooths over the differences in browsers' default styles so pages start from the same baseline in every browser. Compared with normalize.css it's smaller, includes only the normalisations the latest Chrome, Firefox and Safari still need, sets box-sizing: border-box, improves the consistency of default fonts and sets a more readable tab size, and it's tested. You install it from npm or a CDN and import it before your own styles; Sass and Less projects import the CSS directly. Its stated goal is to make itself obsolete. It's MIT-licensed and maintained by Sindre Sorhus.

Problems it solves

  • buttons, form fields and fonts look slightly different in Chrome, Firefox and Safari before I've styled anything
  • a small baseline stylesheet so my own CSS starts from the same defaults in every modern browser
  • set box-sizing to border-box everywhere without writing my own reset
  • normalize.css carries fixes for old browsers we no longer support
  • consistent default font stacks and tab size across browsers

Features

  • normalisations only for the latest Chrome, Firefox and Safari
  • smaller than normalize.css
  • sets box-sizing: border-box
  • more consistent default fonts and a more readable tab size
  • fully tested
  • install from npm or load from jsDelivr, unpkg or cdnjs

Limitations

  • Doesn't support older browsers: it only normalises the latest Chrome, Firefox and Safari1