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