webwise
webwise

Reputation: 627

Manually created CSS into LESS

Is there a tool available for converting a manually created CSS file into a nested, well optimized LESS file?

Upvotes: 1

Views: 1092

Answers (2)

Nathan Strutz
Nathan Strutz

Reputation: 8123

Short answer: No. Do it yourself.

Long answer: Your CSS file should compile automatically with LESS. Rename .css to .less, then you can progressively improve your CSS file by adding LESS code. Yes it may be the slow way, but it is a great way to go.

Upvotes: 2

user926352
user926352

Reputation:

No. Time to roll up your sleeves and re-create whatever css you have into .less files.

If you are building a framework, I highly suggest looking at this, as it contains many variables and mixins that are helpful for .less files.

Keep in mind that while {less} is awesome, you should not use it for deployment. I suggest using your .less files for development only, and compiling them into minified .css files for deployment/production.

Upvotes: 1

Related Questions