this library aims to convert CSS files into SCSS files.
Currently used by http://www.css2scss.net/
The code below takes a few CSS instructions and prints them in a more SCSS like form:
$cssContent = 'body p { font-family: arial; }';
$css2lessParser = new \Ortic\Css2Scss\Css2Scss($cssContent);
echo $css2lessParser->getScss();
output:
body {
p {
font-family: arial;
}
}