Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 10974bc

Browse files
committed
clarifying that this undocumented use-case isnt permitted
1 parent a153e67 commit 10974bc

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

‎README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@ Pass arbitrary values between your module files
2727

2828
```css
2929
/* 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 */
3133
@value primary, secondary from colors;
34+
/* make local aliases to imported values */
3235
@value small as bp-small, large as bp-large from "./breakpoints.css";
3336

3437
.header {
@@ -50,6 +53,12 @@ Pass arbitrary values between your module files
5053

5154
**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.
5255

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+
5362
### Justification
5463

5564
See [this PR](https://github.com/css-modules/css-modules-loader-core/pull/28) for more background

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /