All Projects → leafo → scssphp-compass

leafo / scssphp-compass

Licence: other
Compass for scssphp

Programming Languages

PHP
23972 projects - #3 most used programming language
shell
77523 projects

scssphp-compass

This is work in progress, expect to have problems!

This is a library for adding Compass to your scssphp installation.

The project composed of a couple parts:

  • A script that checks out Compass and extracts the SCSS
  • A PHP class that hooks into a instance of scssc from scssphp. This script updates the import path and adds built in functions required my Compass

Compass' SCSS is checked into this repository, so you only need to run the extract script if you are updating the version of Compass that is included.

Installation

scssphp-compass is a Composer package. Add the following to your composer.json:

{
  "require": {
    "leafo/scssphp-compass": "dev-master"
  }
}

Usage

<?php
require "vendor/autoload.php";

$scss = new scssc();
new scss_compass($scss);

echo $scss->compile('
  @import "compass";

  .shadow {
    @include box-shadow(10px 10px 8px red);
  }
');
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].