Support for postcss-modules-values
- Lingua principale
- CoffeeScript
- Stelle
- 518
- Fork
- 70
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Hi there! Is there a way in which I can make atom-pigments work with [postcss-modules-values](https://github.com/css-modules/postcss-modules-values)? I would love if it were possible somehow that in the same way that it recognizes all my less @variables with colors across files, it would do that to these.
It works like this:
```
/* colors.css */
@value primary: #BF4040;
@value secondary: #1F4F7F;
.text-primary {
color: primary;
}
.text-secondary {
color: secondary;
}
```
As you can see, there is no @ or $ before calling up the value. This is the same when you call up variables cross-file:
```
/* header.css */
@value colors: "./colors.css";
@value primary, secondary from colors;
.header {
composes: primary from colors;
box-shadow: 0 0 10px secondary;
}
```
I would like the `primary` and `secondary` to have the color they were given in `colors.css`, also when they're imported into a different file.
Let me know if I can do anything to make this happen!
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.