fela-sort-media-query-mobile-first
v12.2.1
Published
Fela enhancer that sorts media queries using a mobile-first approach
Downloads
26,251
Maintainers
Readme
fela-sort-media-query-mobile-first
Uses sort-css-media-queries to sort you mediaQueryOrder
following a mobile-first approach.
Installation
yarn add fela-sort-media-query-mobile-first
You may alternatively use npm i --save fela-sort-media-query-mobile-first
.
Usage
import { createRenderer } from 'fela'
import sortMediaQueryMobileFirst from 'fela-sort-media-query-mobile-first'
const renderer = createRenderer({
enhancers: [sortMediaQueryMobileFirst()],
})
License
Fela is licensed under the MIT License. Documentation is licensed under Creative Commons License. Created with ♥ by @robinweser and all the great contributors.