如何通过在css文件中应用hue change co all color来改变css配色方案

Lor*_*ABA 6 css shell hue

我有一个css文件,我想自动创建文件的几个颜色变化,使用GIMP中的"着色"之类的东西来移动模板的色调.

我找到了一些特别适合我想要的东西:http://adityabhandari.com/wp-content/uploads/2011/01/ColorChanger.html 但它不支持rgba()我经常使用的符号.

我是linux用户所以也许一些棘手的shell脚本与正则表达式会做,问题是我真的很吮吸正则表达式.

如果您发布php/python/awk解决方案,我就足够聪明地使用它.

cra*_*ale 0

LESS.css

它为 CSS 添加了许多方便的方法,包括十六进制/rgba 算术,并将使用命令行实用程序编译为“本机”CSS,您会发现这很直观。

spin(#BEFBA, 10);   // return a color with a 10 degree larger in hue than #BEFBA
@color: #BEFBA;     // just a variable
spin(@color, -10);  // return a color with a 10 degree smaller in hue than @color

// applied to css class:
.myStyle{
    background-color: spin( @color, 10 );  
}
Run Code Online (Sandbox Code Playgroud)