UNPKG

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

48 lines (41 loc) 507 B
#ns { .options() { option: true; } } @ns: { @options: { option: true; }; }; & when (#ns.options[option]) { .output { a: b; } } & when (#ns.options[option] = true) { .output-2 { c: d; } } & when (#ns.options[option] = false) { .no-reach { c: d; } } // DR access & when (@ns[@options][option]) { .dr { a: b; } } & when (@ns[@options][option] = true) { .dr-2 { c: d; } } & when (@ns[@options][option] = false) { .dr-no-reach { c: d; } }