Convert CSS to less

Alex's Avatar


25 Aug, 2010 03:23 PM

I know this is possible with scss using the included sass-convert utility.

I wonder what it would take to get it for less? It would be so helpful compared with hand-converting css files.

  1. 1 Posted by Mike on 07 Sep, 2010 02:55 PM

    Mike's Avatar

    I second this!

  2. 2 Posted by luca.candela on 22 Sep, 2010 07:41 PM

    luca.candela's Avatar

    I vehemently agree with this need.

  3. 3 Posted by turner.alphonso on 23 Sep, 2010 01:54 AM

    turner.alphonso's Avatar

    Hmm interesting...

  4. 4 Posted by Murray on 23 Feb, 2011 04:46 AM

    Murray's Avatar

    I also agree, this would be a major helper!

  5. 5 Posted by lennart on 29 Aug, 2011 12:24 PM

    lennart's Avatar

    Since less.js now supports the parent selector & it seems to be possible to just leverage sass-convert for exactly that

    sass-convert -F css -T scss style.css > style.less
    lessc style.less

    seems to work fine

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac