bo_style
v1.3.4
Published
scss mixins for scss perverts
Readme
scss boilerplate
install package
yarn add bo_style -Dusage
- create config like this default-config
- import package and your config
@import 'bo_style';
@import './your-config.scss';simple example, how to use:
$rem-baseline: 18px;
$breakpoints: ('mob': 0, 'xs': 600px, 'xl': 1200px);
.div {
@include width(('mob': 20px, 'xl': 300px));
@include display(('mob': block, 'xs': flex));
}compiles to:
.div {
width: 1.111rem;
display: block;
}
@media (min-width: 600px) {
.div {
display: flex;
}
}
@media (min-width: 1200px) {
.div {
width: 16.667rem;
}
}list of mixins, functions and placeholders
_
mixins
functions
helpers
TODO
- [ ] sassdoc
- [ ] mixins with breakpoints(wh, abs-center e.t.c)
