PostCSS Variable Media

PostCSS plugin that allows for defining custom at-rules to represent media queries
/* before */@}@} /* after */{}{}
Usage
See PostCSS docs for examples for your environment.
PostCSS
Add PostCSS to your build tool:
npm install postcss --save-dev
Load PostCSS Variables as a PostCSS plugin:
;
Options
breakpoints
Type: Object
Default: {}
Specifies breakpoint variables and pixel min-width values.
breakpoints: tablet: 768 desktop: 1024 ;
consolidate
Type: boolean
Default: true
Merge repeated breakpoint declarations and append to end of document. If set to false, breakpoints will be converted to media queries in place.
Note: If needing to consolidate across multiple stylesheets, refer to css-mqpacker.
breakpoints: tablet: 768 consolidate: true;
@}@}
{}