CSS Modules: Values
Pass arbitrary values between your module files
Usage
/* colors.css */@@
/* breakpoints.css */@);@));@);
/* my-component.css *//* alias paths for other values or composition */@//* import multiple from a single file */@/* make local aliases to imported values */@//* value as selector name */@ {}{}
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" */
License
ISC
With thanks
- Mark Dalgleish
- Tobias Koppers
- Josh Johnston
Glen Maddern, 2015.