• Stars
    star
    365
  • Rank 116,851 (Top 3 %)
  • Language
    Ruby
  • License
    MIT License
  • Created over 9 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Use libsass with Ruby!

SassC Build Status Gem Version

Use libsass with Ruby!

This gem combines the speed of libsass, the Sass C implementation, with the ease of use of the original Ruby Sass library.

libsass Version

3.6.1

Installation

Add this line to your application's Gemfile:

gem 'sassc'

And then execute:

bundle

Or install it yourself as:

gem install sassc

Usage

This library utilizes libsass to allow you to compile SCSS or SASS syntax to CSS. To compile, use a SassC::Engine, e.g.:

SassC::Engine.new(sass, style: :compressed).render

Note: If you want to use this library with Rails/Sprockets, check out sassc-rails.

Additionally, you can use SassC::Sass2Scss to convert Sass syntax to Scss syntax.

Credits

This gem is maintained by Ryan Boland and awesome contributors.

Changelog

See CHANGELOG.md.

Contributing

Project Setup

  1. Clone repo
  2. Install dependencies - bundle install
  3. Run the tests - bundle exec rake test

Code Changes

  1. Fork it ( https://github.com/sass/sassc-ruby/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature') - try to include tests
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

More Repositories

1

sass

Sass makes CSS fun!
TypeScript
15,081
star
2

node-sass

🌈 Node.js bindings to libsass
C++
8,506
star
3

libsass

A C/C++ implementation of a Sass compiler
C++
4,331
star
4

dart-sass

The reference implementation of Sass, written in Dart.
Dart
3,913
star
5

sassc

libsass command line driver
C
785
star
6

sassc-rails

Integrate SassC-Ruby with Rails!
HTML
707
star
7

libsass-python

A straightforward binding of libsass for Python. Compile Sass/SCSS in Python with no Ruby stack at all!
Python
560
star
8

sass-site

Sass Website
TypeScript
312
star
9

node-sass-middleware

connect middleware extracted from node-sass
JavaScript
263
star
10

sass-spec

Official Sass Spec Suite
SCSS
200
star
11

ruby-sass

The original, now deprecated Ruby implementation of Sass
Ruby
181
star
12

embedded-host-node

A Node.js library that will communicate with Embedded Dart Sass using the Embedded Sass protocol
TypeScript
149
star
13

node-sass-binaries

Platform specific binaries for node-sass
127
star
14

libsass-net

A lightweight wrapper around libsass
C#
95
star
15

migrator

Tool for migrating stylesheets to new Sass versions
Dart
84
star
16

ruby-libsass

Ruby bindings for libsass
Ruby
81
star
17

dart-sass-embedded

A wrapper for Dart Sass that implements the compiler side of the Embedded Sass protocol
Dart
66
star
18

linter

An experimental Sass linter written using the Dart Sass AST
Dart
39
star
19

homebrew-sass

A Homebrew tap for Sass
Ruby
35
star
20

embedded-protocol

A protocol for communicating between a Sass implementation and a host language
31
star
21

perl-libsass

Perl bindings for libsass (CSS::Sass)
Perl
29
star
22

sass-registry

Extension registry for Sass
Ruby
7
star
23

libsass.com

CSS
6
star
24

sass-site-built

The built HTML of the Sass website, used to see output diffs in code reviews
HTML
6
star
25

clone-linked-repo

A utility action that emits information about one PR linked from another's message
Shell
3
star