CSSBaseline
The CSSBaseline component normalizes styles using normalize.css that provides better cross-browser consistency in the default styling of HTML elements.
- Preserves useful defaults, unlike many CSS resets.
- Normalizes styles for a wide range of elements.
- Corrects bugs and common browser inconsistencies.
- Improves usability with subtle modifications.
- Explains what code does using detailed comments.
Import
Usage
Notes
box-sizingis set globally on thehtmlelement toborder-box. Every element including*::beforeand*::afterwill inherit this property, which ensures that the width of the element is never exceeded due to padding or border.- No font size is declared on
<html>, but 16px is assumed as the browser default. - Base font family is declared on
<html>: - Monospaced font family is delcared on
<pre>,<code>,<kbd>, and<samp>: