| 1 | LibSass - Sass compiler written in C++ |
| 2 | ====================================== |
| 3 | |
| 4 | Currently maintained by Marcel Greter ([@mgreter]) and Michael Mifsud ([@xzyfer]) |
| 5 | Originally created by Aaron Leung ([@akhleung]) and Hampton Catlin ([@hcatlin]) |
| 6 | |
| 7 | [](https://github.com/sass/libsass/actions/workflows/build-and-test.yml "GitHub CI") |
| 8 | [](https://ci.appveyor.com/project/sass/libsass/branch/master "Appveyor CI") |
| 9 | [](https://coveralls.io/r/sass/libsass?branch=master "Code coverage of spec tests") |
| 10 | [](http://isitmaintained.com/project/sass/libsass "Percentage of issues still open") |
| 11 | [](http://isitmaintained.com/project/sass/libsass "Average time to resolve an issue") |
| 12 | [](https://www.bountysource.com/trackers/283068-libsass?utm_source=283068&utm_medium=shield&utm_campaign=TRACKER_BADGE "Bountysource") |
| 13 | [](https://libsass-slack.herokuapp.com/ "Slack communication channels") |
| 14 | |
| 15 | **Warning:** [LibSass is deprecated](https://sass-lang.com/blog/libsass-is-deprecated). |
| 16 | While it will continue to receive maintenance releases indefinitely, there are no |
| 17 | plans to add additional features or compatibility with any new CSS or Sass features. |
| 18 | Projects that still use it should move onto |
| 19 | [Dart Sass](https://sass-lang.com/dart-sass). |
| 20 | |
| 21 | [LibSass](https://github.com/sass/libsass "LibSass GitHub Project") is just a library! |
| 22 | If you want to use LibSass to compile Sass, you need an implementer. Some |
| 23 | implementations are only bindings into other programming languages. But most also |
| 24 | ship with a command line interface (CLI) you can use directly. There is also |
| 25 | [SassC](https://github.com/sass/sassc), which is the official lightweight |
| 26 | CLI tool built by the same people as LibSass. |
| 27 | |
| 28 | ### Excerpt of Supported Implementations: |
| 29 | |
| 30 | - https://github.com/sass/node-sass (Node.js) |
| 31 | - https://github.com/sass/perl-libsass (Perl) |
| 32 | - https://github.com/sass/libsass-python (Python) |
| 33 | - https://github.com/wellington/go-libsass (Go) |
| 34 | - https://github.com/sass/sassc-ruby (Ruby) |
| 35 | - https://github.com/sass/libsass-net (C#) |
| 36 | - https://github.com/medialize/sass.js (JS) |
| 37 | - https://github.com/bit3/jsass (Java) |
| 38 | - https://github.com/scottdavis/sass.ex (Elixir) |
| 39 | - https://github.com/Youimmi/sass_compiler (Elixir) |
| 40 | |
| 41 | This list does not say anything about the quality of either the listed or not listed [implementations](docs/implementations.md)! |
| 42 | The authors of the listed projects above are just known to work regularly together with LibSass developers. |
| 43 | |
| 44 | About |
| 45 | ----- |
| 46 | |
| 47 | LibSass is a C++ port of the original Ruby Sass CSS compiler with a [C API](docs/api-doc.md). |
| 48 | We coded LibSass with portability and efficiency in mind. You can expect LibSass to be a lot |
| 49 | faster than Ruby Sass and on par or faster than the best alternative CSS compilers around. |
| 50 | |
| 51 | Developing |
| 52 | ---------- |
| 53 | |
| 54 | As noted above, the LibSass repository does not contain any binaries or other way to execute |
| 55 | LibSass. Therefore, you need an implementer to develop LibSass. Easiest is to start with |
| 56 | the official [SassC](http://github.com/sass/sassc) CLI wrapper. It is *guaranteed* to compile |
| 57 | with the latest code in LibSass master, since it is also used in the CI process. There is no |
| 58 | limitation here, as you may use any other LibSass implementer to test your LibSass branch! |
| 59 | |
| 60 | Testing |
| 61 | ------- |
| 62 | |
| 63 | Since LibSass is a pure library, tests are run through the [Sass-Spec](https://github.com/sass/sass-spec) |
| 64 | project using the [SassC](http://github.com/sass/sassc) CLI wrapper. To run the tests against LibSass while |
| 65 | developing, you can run `./script/spec`. This will clone SassC and Sass-Spec under the project folder and |
| 66 | then run the Sass-Spec test suite. You may want to update the clones to ensure you have the latest version. |
| 67 | Note that the scripts in the `./script` folder are mainly intended for our CI needs. |
| 68 | |
| 69 | Building |
| 70 | -------- |
| 71 | |
| 72 | To build LibSass you need GCC 4.7+ or Clang/LLVM. If your OS is older, you may need to upgrade |
| 73 | them first (or install clang as an alternative). On Windows, you need MinGW with GCC 4.7+ or VS 2013 |
| 74 | Update 4+. It is also possible to build LibSass with Clang/LLVM on Windows with various build chains |
| 75 | and/or command line interpreters. |
| 76 | |
| 77 | See the [build docs for further instructions](docs/build.md)! |
| 78 | |
| 79 | Compatibility |
| 80 | ------------- |
| 81 | |
| 82 | For all intents and purposes LibSass is fully compatible with the Sass language spec. Any known |
| 83 | differences can be found as open issues. |
| 84 | |
| 85 | |
| 86 | |
| 87 | |
| 88 | About Sass |
| 89 | ---------- |
| 90 | |
| 91 | Sass is a CSS pre-processor language to add on exciting, new, awesome features to CSS. Sass was |
| 92 | the first language of its kind and by far the most mature and up to date codebase. |
| 93 | |
| 94 | Sass was originally conceived of by the co-creator of this library, Hampton Catlin ([@hcatlin]). |
| 95 | Most of the language has been the result of years of work by Natalie Weizenbaum ([@nex3]) and |
| 96 | Chris Eppstein ([@chriseppstein]). |
| 97 | |
| 98 | For more information about Sass itself, please visit https://sass-lang.com |
| 99 | |
| 100 | Initial development of LibSass by Aaron Leung and Hampton Catlin was supported by [Moovweb](http://www.moovweb.com). |
| 101 | |
| 102 | Licensing |
| 103 | --------- |
| 104 | |
| 105 | Our [MIT license](LICENSE) is designed to be as simple and liberal as possible. |
| 106 | |
| 107 | [@hcatlin]: https://github.com/hcatlin |
| 108 | [@akhleung]: https://github.com/akhleung |
| 109 | [@chriseppstein]: https://github.com/chriseppstein |
| 110 | [@nex3]: https://github.com/nex3 |
| 111 | [@mgreter]: https://github.com/mgreter |
| 112 | [@xzyfer]: https://github.com/xzyfer |