LibSass is an implementation of Sass in C/C++, designed to be easy to integrate into many different languages. However, as time wore on it ended up lagging behind Dart Sass in features and CSS compatibility. LibSass is just a library. To run the code locally (i.e. to compile your stylesheets), you need an implementer, or "wrapper". There are a number of other wrappers for LibSass. We encourage you to write your own wrapper, the whole point of LibSass is that we want to bring Sass to many other languages, not just Ruby! Sometimes there are multiple wrappers per language, in those cases, we put the most recently-updated wrapper first. To run the compiler on your local machine, you need to build SassC. To build SassC, you must have either a local copy of the LibSass source or it must be installed into your system. For development, please use the source version.
Features
- LibSass is a C++ port of the original Ruby Sass CSS compiler with a C API
- We coded LibSass with portability and efficiency in mind
- You can expect LibSass to be a lot faster than Ruby Sass
- Faster than the best alternative CSS compilers around
- Since LibSass is a pure library, tests are run through the Sass-Spec project
- To build LibSass you need GCC 4.7+ or Clang/LLVM