Is there a JavaScript implementation for LESS for CSS?

I need to perform variable substitution, at least in CSS from JavaScript (let it ignore whether this client or server is currently). Ideally, I would use the LESS syntax , which offers more options than just replacing variables. Has anyone found a JS LESS implementation?

+3
source share
1 answer

The next version of LESS is written in JavaScript. I believe this will work with a client or server. I don't know how well this works right now, but it can be interesting to learn.

The source code is at http://github.com/cloudhead/less.js .

+6
source

Source: https://habr.com/ru/post/1742335/


All Articles