UNPKG

postcss-sparrow-units-filter

Version:

A PostCSS Sparrow plugin that helps you filter declarations by its unit.

15 lines (10 loc) 226 B
import * as R from 'ramda' const getUnits = R.prop('units') const unitList = [ 'px', 'fr', '%', 'em', 'rem', 'vw', 'vh', 'vmin', 'vmax', 'ch' ] const getAllUnits = R.always(unitList) export { getUnits, getAllUnits }