colorToVal
将颜色的16进制表示转换为对应的变量名
Details
Installs
- Total 414
- Win 297
- Mac 76
- Linux 41
Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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