PostCSS plugin for css modules to pass arbitrary values between your module files.
Usage
See PostCSS docs for examples for your environment.
Export value
/* colors.css */ @/* or without colon for preprocessors */@ /* transforms to */
If you are using Sass along with this PostCSS plugin, do not use the colon :
in your @value
definitions. It will cause Sass to crash.
Note also you can import multiple values at once but can only define one value per line.
@/* defines a as "b, c: d" */
Importing value
@/ /* transforms to similar exports */ /)
Importing value in JS
///); // ->
Aliases
Do not conflict between names you are able to import values with aliases
@/@)/{}
Messages
postcss-icss-values passes result.messages
for each declared or imported value
Justification
See this PR for more background
License
MIT © Glen Maddern and Bogdan Chadkin, 2015