0.0.4 • Published 5 years ago
@somo/postcss-plugins v0.0.4
Somo postcss plugins
Installation
yarn add @somo/postcss-plugins --dev
Usage
Can be used in webpack, storybook or gatsby etc, wherever postcss plugins array is required.
{
loader: 'postcss-loader',
options: {
ident: 'postcss',
plugins: require('@somo/postcss-plugins')(customProperties)
}
}
Custom properties can be injected
customProperties = { '--my-custom-var': 500, '--my-custom-thing': 'blue, }