1

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

2
  • 1
    There's this: leafo.net/lessphp/lessify - but it's incomplete to the point of mostly being useless. Just do it manually. Anyway, if you want to use LESS, you need understand it. Commented Sep 19, 2011 at 8:34
  • It seems sufficient for what I need, that is aggregation of nested classes - I'll do the rest manually. Cheers! Commented Sep 19, 2011 at 11:06

2 Answers 2

2

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.

Sign up to request clarification or add additional context in comments.

Comments

1

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.