mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
Add contrast function following the same format as sass. Added tests.
Added luma calculation.
This commit is contained in:
committed by
Luke Page
parent
7fc6275ba8
commit
bb0886fcc9
@@ -14,6 +14,28 @@
|
||||
greyscale: #2e2e2e;
|
||||
spin-p: #bf6a40;
|
||||
spin-n: #bf4055;
|
||||
luma-white: 100%;
|
||||
luma-black: 0%;
|
||||
luma-black-alpha: 0%;
|
||||
luma-red: 21%;
|
||||
luma-green: 72%;
|
||||
luma-blue: 7%;
|
||||
luma-yellow: 93%;
|
||||
luma-cyan: 79%;
|
||||
luma-white-alpha: 50%;
|
||||
contrast-white: #000000;
|
||||
contrast-black: #ffffff;
|
||||
contrast-red: #ffffff;
|
||||
contrast-green: #000000;
|
||||
contrast-blue: #ffffff;
|
||||
contrast-yellow: #000000;
|
||||
contrast-cyan: #000000;
|
||||
contrast-light: #111111;
|
||||
contrast-dark: #eeeeee;
|
||||
contrast-light-thresh: #111111;
|
||||
contrast-dark-thresh: #eeeeee;
|
||||
contrast-high-thresh: #eeeeee;
|
||||
contrast-low-thresh: #111111;
|
||||
format: "rgb(32, 128, 64)";
|
||||
format-string: "hello world";
|
||||
format-multiple: "hello earth 2";
|
||||
|
||||
Reference in New Issue
Block a user