normal.css
Normalize browser's styles with less than 1KB
CONTENTS
Feature
- Less than < 1 KB
- Geometric precision rendering for prettier text
- Antialiased font smoothing looks great
- Prettier default
sans
and mono
font - Set most tags to
margin: 0
and padding: 0
- Providing
:root
variable: --font-mono
, --font-sans
, --font-serif
- Globaly
box-sizing: border-box
- Globaly
border: 0
- Set controls
color: inherit
- Set
a, button, [role=button], [type=button]
property cursor: pointer
line-height: 1.2
tab-size: 4
-webkit-touch-callout: none
-webkit-tap-highlight-color: transparent
text-size-adjust: 100%
font-weight: bolder
- Set
img, svg, video, canvas, audio, iframe, embed, object
to display: block
- ... check source code
Install
npm install @master/normal.css
CDN
Usage
@import '@master/normal.css';