How to change CSS values with live preview. Less.js?

时间:2015-08-07 02:36:42

标签: less

I want to make a page in an Admin CP where you can customize the values of some CSS properties, e.g. background-colors. This should have a live preview like e.g. in Wordpress, but I don't know how.

I'm using LESS for the styles, so I thought about using Less.js and

less.modifyVars()

It works, but the problem is, it takes about one second to show the change in the page, since the less file is not small, because I also import Bootstrap.

Any other idea how to do something like this?

0 个答案:

没有答案