NPM
npm install --save @markmiro/css-base
Yarn
yarn add @markmiro/css-base
HTML (latest)
<link
rel="stylesheet"
href="https://unpkg.com/@markmiro/css-base@latest/base.css"
/>
HTML (2.0.0)
<link
rel="stylesheet"
href="https://unpkg.com/@markmiro/css-base@2.0.0/base.css"
/>
- Box sizing
border-box
- Remove default margins on all elements
- Add 100% height to
html
element - Display block for images and media
- Make form elements inherit document font
- Avoid text overflows (
overflow-wrap: break-word
) - Dark mode
- Links inherit text color (helps with link color in dark mode)
- System font
Modern browsers.
- Based on a CSS reset from joshwcomeau.com.
- The NPM package structure is based off of the normalize.css repo.