Skip to content

ortic/css2less

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Build Status Code Rating Coverage Status

css2less

this library aims to convert CSS files into LESS files.

Currently used by http://www.css2less.net/

example

The code below takes a few CSS instructions and prints them in a more LESS like form:

$cssContent = 'body p { font-family: arial; }';
$css2lessParser = new \Ortic\Css2Less\Css2Less($cssContent);
echo $css2lessParser->getLess();

output:

body {
        p {
                font-family: arial;
        }
}

About

library to convert CSS to LESS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published