preset-style
v2.0.6
Published
Preset web application styles.
Downloads
11
Readme
preset-style
Preset web application styles.
Installation
Using npm:
npm install preset-style --save
Using yarn:
yarn add preset-style
Features
Reset browser styles:
- Reset Elements
padding
andmargin
- Remove inputs element
outline
andborder
- Remove tag
a
link element default color and decoration style - Replace autofill input shadow styles
- Remove tag
img
border
Common style snippets:
- Clear floor
.clear-fix
- Overflow ellipsis
.overflow-ellipsis
- iOS X safe container
.safe-area
- Mobile phone balance scroll container
.scroller
Some compatibility snippets:
- Adapter style for MAC OS dark theme
Example Usage
Using in css
, less
and sass
:
@import('preset-style/dist/index.css');
Using in js
:
import 'preset-style/dist/index.css'