normalize.css extended with opinionated resets & defaults
notable resets:
- paddings, margins
- borders in
fieldset
,iframe
- spacing after
audio
,canvas
,iframe
,img
,svg
,video
elements
defaults:
- set
box-sizing
globally toinherit
parent value - use
box-sizing: border-box
inhtml
- set default font-family to
system-ui
- make inputs, buttons, links to
inherit
text styles - enable
font-smoothing
by default svg
to usecurrentColor
for filling
...and many other, see source code
npm install --save defaults.css
- normalize.css — A collection of HTML element and attribute style-normalization
- sanitize.css — The best-practices CSS foundation
- MiniReset.css — A tiny modern CSS reset
- reset.css — Eric Meyer's CSS reset
MIT © John Grishin