atom-pigments
atom-pigments copied to clipboard
Pick up palette defined in a map
Copied @ezekg 's question from https://github.com/abe33/atom-pigments/issues/50 since it was irrelevent there but still relevant to the current state:
Any plans for picking up a palette defined in a map?
/**
* Colors
*/
$colors: (
"white": (
"base": #fff,
),
"black": (
"base": #000,
),
"sky": (
"light": #ddf6ff,
"base": #b6ebff,
),
"blue": (
"lightest": #00aeef,
"light": #007dc6,
"base": #0c4da2,
"dark": #12448a,
"darkest": #042758,
),
);
That might be a bit tricky to implement. I was initially reluctant with that because there's so many ways to access data in a sass map making highlighting uses of the map quite complex. Other than that it still possible to play with the same kind of parser I use for stylus hashes. If someone is willing to experiment around that I may merge that in master, but for the moment I don't really have time to investigate this feature.