先看atom中该插件的设置是如何说的
默认情况是这样的
故对于后缀名为css或者预处理器的是支持的
在来看看文档是如何说的
Pigments supports out of the box most of the color transformations functions and expressions of the three biggest CSS pre-processors out there, namely LESS, Sass and Stylus.
颜色支持开箱即用的三种最大的CSS预处理器的大部分颜色转换功能和表达式,即LESS,Sass和Stylus
故在默认情况下对于后缀名为html是不支持的,你css单独写就没问题了。
文档
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…