antd-theme-generator
Version:
This a script to generate color specific styles less file and which you can use to change theme dynamically in browser
40 lines (39 loc) • 908 B
text/less
.eval {
js: `42`;
js: `1 + 1`;
js: `"hello world"`;
js: `[1, 2, 3]`;
title: `typeof process.title`;
ternary: `(1 + 1 == 2 ? true : false)`;
multiline: `(function(){var x = 1 + 1;
return x})()`;
}
.scope {
empty: `+function(){}`;
: 42;
var: `parseInt(this.foo.toJS())`;
escaped: ~`2 + 5 + 'px'`;
}
.vars {
: `4 + 4`;
width: ;
}
.escape-interpol {
: "world";
width: ~`"hello" + " " + @{world}`;
}
.arrays {
: 1, 2, 3;
: 1 2 3;
ary: `@{ary}.join(', ')`;
ary1: `@{ary2}.join(', ')`;
}
.transitions(...) {
: ~`"@{arguments}".replace(/[\[\]]*/g, '')`;
1: ; // rounded to integers
2: ~`"@{arguments}"`; // rounded to integers
3: ; // OK
}
.test-tran {
.transitions(opacity 0.3s ease-in 0.3s, max-height 0.6s linear, margin-bottom 0.4s linear;);
}