postcss-border-shortcut
PostCSS plugin for assign default border type if not expressed.
/* Before */ /* After */
Installation
$ npm install postcss-border-shortcut --save-dev
Usage
JS API
const postcss = ;
See PostCSS docs for other examples.
Options
borderType
Type: string
Default: solid
You can define a default border
style property, like: solid
, dashed
, dotted
, double
, ect...
// Set in build tool, etc.border borderType: 'dashed'