0

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?

TylerH
  • 20,799
  • 66
  • 75
  • 101
user3817008
  • 613
  • 7
  • 13

1 Answers1

0

Assuming you are using LiveReload or something like this to , split one large file into many smaller files. LiveReload will then only reload/update the files which actually have been changed - which should be much faster/instant.


You can save CSS changes using Chrome Dev Tools - more here How to save CSS changes of Styles panel of Chrome Developer Tools?
Community
  • 1
  • 1
Iladarsda
  • 10,640
  • 39
  • 106
  • 170