colorToVal
将颜色的16进制表示转换为对应的变量名
Details
Installs
- Total 408
- Win 291
- Mac 76
- Linux 41
Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | Aug 15 | Aug 14 | Aug 13 | Aug 12 | Aug 11 | Aug 10 | Aug 9 | Aug 8 | Aug 7 | Aug 6 | Aug 5 | Aug 4 | Aug 3 | Aug 2 | Aug 1 | Jul 31 | Jul 30 | Jul 29 | Jul 28 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
colorToVal
一个输入颜色的16进制可转为对应变量的Sublime Text 3自动完成插件。
插件效果:(colorToVal)
安装(github)
- Ctrl+Shift+P 输入 Package Control: Add Repository
- 添加git地址 https://github.com/yh418807968/colorToVal
- Ctrl+Shift+P 输入 Package Control: Install Package
- 搜索 colorToVal
- 重启 Sublime Text
配置参数
参数配置默认文件:Sublime Text -> Preferences -> Package Settings -> colorToVal -> setting-Default
exts
- 启用此插件的文件类型。默认为:[“.css”, “.scss”, “.less”, “.sass”, “.styl”]。data
- 用户自定义的数据。默认举例为: “data”:{"$c-bg1":"#dadada", "$c-night":"#000", "$c-bg2-night":"#000", "$c-bg3":"#fff",
}。 用户在setting-User中设置数据后,将覆盖此数据。
用户参数配置文件:Sublime Text -> Preferences -> Package Settings -> colorToVal -> setting-User
{
“data”:{
//your data here
}
}
注:key变量名为,value为16进制色值,一个16进制色值可对应多个变量。
使用
输入16进制色值(可省略#),以字母t为触发快捷键,找到对应的变量,按enter键替换。详情见动图colorToVal.gif
@ youhong SOHU SNS FE-Group