<分区>
我的同事认为它们不是,但我会说,为了保持一致性,为所有常见颜色预定义变量:
background: @backgroundBlue;
color: @white;
比以下更一致:
background: @backgroundBlue;
color: (white|#fff|rgb(255,255,255)|etc);
请帮助解决这个冲突。我们的工作关系陷入困境......
最佳答案
我会说你不应该定义 @white
而应该定义一个 @highlightcolor
或 @textcolor
变量,以防你想改变颜色例如从white
到lightgrey
关于css - @white 和@black 应该是 LESS 变量吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26587244/