atom-pigments icon indicating copy to clipboard operation
atom-pigments copied to clipboard

Pick up palette defined in a map

Open Cxarli opened this issue 8 years ago • 1 comments

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,
  ),
);

Cxarli avatar Jan 14 '17 22:01 Cxarli

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.

abe33 avatar Jan 24 '17 15:01 abe33