acdlite / acdlite/json-sass

Quote the keys of the sass map variables

Aperta
#2 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
96
Fork
25
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Due to the way sass works if you don't quote the maps you can have issues with map keys being other object types such as a color. e.g values like "red" getting converted into #f00 etc. This can be avoided by quoting the key.
### Current Output:

```
$theme: (
Primary: (
Ocean Blue: (
model: RGB,
type: 2,
rgb: (57, 84, 216),
code: 3954d8
),
Tree Green: (
model: RGB,
type: 2,
rgb: (154, 188, 47),
code: 9abc2f
)
)
);
```
### Suggested Output

```
$theme: (
"Primary": (
"Ocean Blue": (
"model": RGB,
"type": 2,
"rgb": (57, 84, 216),
"code": 3954d8
),
"Tree Green": (
"model": RGB,
"type": 2,
"rgb": (154, 188, 47),
"code": 9abc2f
)
)
);
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.