abe33 / abe33/atom-pigments

Pick up palette defined in a map

未關閉
#268 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
CoffeeScript
星號
518
分支
70
PR 合併指標
30 天內沒有已合併 PR

描述

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?

``` scss
/**
* Colors
*/
$colors: (
"white": (
"base": #fff,
),
"black": (
"base": #000,
),
"sky": (
"light": #ddf6ff,
"base": #b6ebff,
),
"blue": (
"lightest": #00aeef,
"light": #007dc6,
"base": #0c4da2,
"dark": #12448a,
"darkest": #042758,
),
);
```

貢獻指南

開啟貢獻指南

研究方向

查看 pigments 目前如何解析 SCSS 檔案中的色彩定義,相關程式碼可能位於 lib/parsers 或 lib/color-finder 目錄中。這個 issue 是要擴充 parser,使其能辨識在類似 $colors 的巢狀 map 中定義的色彩。先檢查現有的 SCSS 解析邏輯,並加入對 map 結構的支援。建立一個包含指定 map 的範例 SCSS 檔案,並確認 pigments 是否將這些色彩標示出來,以此進行測試。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
coffeescript, sass
領域
tooling
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
描述清楚
新手友好度
40/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。