File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,11 @@ Pass arbitrary values between your module files
27
27
28
28
``` css
29
29
/* my-component.css */
30
- @value colors: "./colors.css";
30
+ /* alias paths for other values or composition */
31
+ @value colors: "./colors.css";
32
+ /* import multiple from a single file */
31
33
@value primary, secondary from colors;
34
+ /* make local aliases to imported values */
32
35
@value small as bp-small, large as bp-large from "./breakpoints.css";
33
36
34
37
.header {
@@ -50,6 +53,12 @@ Pass arbitrary values between your module files
50
53
51
54
** 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.
52
55
56
+ Note also you can _import_ multiple values at once but can only _define_ one value per line .
57
+
58
+ ```css
59
+ @value a: b, c: d; /* defines a as "b, c: d" */
60
+ ```
61
+
53
62
### Justification
54
63
55
64
See [this PR](https://github.com/css-modules/css-modules-loader-core/pull/28) for more background
You can’t perform that action at this time.
0 commit comments