csstools-normalize is a CSS library that provides consistent, cross-browser default styling of HTML elements.
npm install --save @csstools/normalize.css
Import csstools-normalize in CSS:
@import '~@csstools/normalize.css';
Alternatively, import csstools-normalize in JS:
import '@csstools/normalize.css';
In webpack.config.js
, be sure to use the appropriate loaders:
module.exports = {
module: {
rules: [
{
test: /\.css$/,
use: [ 'style-loader', 'css-loader' ]
}
]
}
}
Download
See https://csstools.github.io/normalize.css/latest/normalize.css
- Normalizes styles for a wide range of elements.
- Corrects bugs and common browser inconsistencies.
- Explains what code does using detailed comments.
- Chrome (last 3)
- Edge (last 3)
- Firefox (last 3)
- Firefox ESR
- Opera (last 3)
- Safari (last 3)
- iOS Safari (last 2)
- Internet Explorer 9+
Please read the contribution guidelines in order to make the contribution process easy and effective for everyone involved.
- opinionate.css - A supplement to normalize.css with opinionated rules
- sanitize.css - An alternative to normalize.css, adhering to common developer expectations and preferences
normalize.css is a project by Jonathan Neal, co-created with Nicolas Gallagher.