Skip to content

Commit f1631dd

Browse files
committed
added readme
1 parent 7e9fe5e commit f1631dd

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
2+
# scssphp-compass
3+
4+
*This is work in progress, expect to have problems!*
5+
6+
This is a library for adding [Compass][0] to your [scssphp][1] installation.
7+
8+
The project composed of a couple parts:
9+
10+
* A script that checks out Compass and extracts the SCSS
11+
* A PHP class that hooks into a instance of `scssc` from scssphp. This script
12+
updates the import path and adds built in functions required my Compass
13+
14+
Compass' SCSS is checked into this repository, so you only need to run the
15+
extract script if you are updating the version of Compass that is included.
16+
17+
## Installation
18+
19+
**scssphp-compass** is a Composer package. Add the following to your
20+
`composer.json`:
21+
22+
{
23+
"require": {
24+
"leafo/scssphp-compass": "dev-master"
25+
}
26+
}
27+
28+
29+
## Usage
30+
31+
<?php
32+
require "vendor/autoload.php";
33+
34+
$scss = new scssc();
35+
new scss_compass($scss);
36+
37+
echo $scss->compile('
38+
@import "compass";
39+
40+
.shadow {
41+
@include box-shadow(10px 10px 8px red);
42+
}
43+
');
44+
45+
46+
[0]: http://compass-style.org/
47+
[1]: http://leafo.net/scssphp/
48+

0 commit comments

Comments
 (0)