https://github.com/sass/ruby-sass
The original, now deprecated Ruby implementation of Sass
https://github.com/sass/ruby-sass
Keywords from Contributors
activerecord activejob mvc rubygem rack sinatra rspec ruby-gem rubocop devise
Last synced: about 14 hours ago
JSON representation
Repository metadata
The original, now deprecated Ruby implementation of Sass
- Host: GitHub
- URL: https://github.com/sass/ruby-sass
- Owner: sass
- License: mit
- Archived: true
- Created: 2018-03-30T02:06:18.000Z (about 8 years ago)
- Default Branch: stable
- Last Pushed: 2019-04-04T00:50:40.000Z (about 7 years ago)
- Last Synced: 2026-05-06T21:04:57.694Z (18 days ago)
- Language: Ruby
- Homepage: https://sass-lang.com
- Size: 18.3 MB
- Stars: 184
- Watchers: 9
- Forks: 41
- Open Issues: 31
- Releases: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: MIT-LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
README.md
Ruby Sass Has Reached End-of-Life
Ruby Sass should no longer be used, and will no longer be receiving any updates.
See the Sass blog, and consider switching to the sassc gem.
Sass

Sass makes CSS fun again. Sass is an extension of CSS,
adding nested rules, variables, mixins, selector inheritance, and more.
It's translated to well-formatted, standard CSS
using the command line tool or a web-framework plugin.
Sass has two syntaxes. The new main syntax (as of Sass 3)
is known as "SCSS" (for "Sassy CSS"),
and is a superset of CSS's syntax.
This means that every valid CSS stylesheet is valid SCSS as well.
SCSS files use the extension .scss.
The second, older syntax is known as the indented syntax (or just "Sass").
Inspired by Haml's terseness, it's intended for people
who prefer conciseness over similarity to CSS.
Instead of brackets and semicolons,
it uses the indentation of lines to specify blocks.
Although no longer the primary syntax,
the indented syntax will continue to be supported.
Files in the indented syntax use the extension .sass.
Using
Sass can be used from the command line
or as part of a web framework.
The first step is to install the gem:
gem install sass
After you convert some CSS to Sass, you can run
sass style.scss
to compile it back to CSS.
For more information on these commands, check out
sass --help
To install Sass in Rails 2,
just add config.gem "sass" to config/environment.rb.
In Rails 3, add gem "sass" to your Gemfile instead.
.sass or .scss files should be placed in public/stylesheets/sass,
where they'll be automatically compiled
to corresponding CSS files in public/stylesheets when needed
(the Sass template directory is customizable...
see the Sass reference for details).
Sass can also be used with any Rack-enabled web framework.
To do so, just add
require 'sass/plugin/rack'
use Sass::Plugin::Rack
to config.ru.
Then any Sass files in public/stylesheets/sass
will be compiled into CSS files in public/stylesheets on every request.
To use Sass programmatically,
check out the YARD documentation.
Formatting
Sass is an extension of CSS
that adds power and elegance to the basic language.
It allows you to use variables, nested rules,
mixins, inline imports,
and more, all with a fully CSS-compatible syntax.
Sass helps keep large stylesheets well-organized,
and get small stylesheets up and running quickly,
particularly with the help of
the Compass style library.
Sass has two syntaxes.
The one presented here, known as "SCSS" (for "Sassy CSS"),
is fully CSS-compatible.
The other (older) syntax, known as the indented syntax or just "Sass",
is whitespace-sensitive and indentation-based.
For more information, see the reference documentation.
To run the following examples and see the CSS they produce,
put them in a file called test.scss and run sass test.scss.
Nesting
Sass avoids repetition by nesting selectors within one another.
The same thing works for properties.
table.hl {
margin: 2em 0;
td.ln { text-align: right; }
}
li {
font: {
family: serif;
weight: bold;
size: 1.2em;
}
}
Variables
Use the same color all over the place?
Need to do some math with height and width and text size?
Sass supports variables, math operations, and many useful functions.
$blue: #3bbfce;
$margin: 16px;
.content_navigation {
border-color: $blue;
color: darken($blue, 10%);
}
.border {
padding: $margin / 2;
margin: $margin / 2;
border-color: $blue;
}
Mixins
Even more powerful than variables,
mixins allow you to re-use whole chunks of CSS,
properties or selectors.
You can even give them arguments.
@mixin table-scaffolding {
th {
text-align: center;
font-weight: bold;
}
td, th { padding: 2px; }
}
@mixin left($dist) {
float: left;
margin-left: $dist;
}
#data {
@include left(10px);
@include table-scaffolding;
}
A comprehensive list of features is available
in the Sass reference.
Executables
The Sass gem includes several executables that are useful
for dealing with Sass from the command line.
sass
The sass executable transforms a source Sass file into CSS.
See sass --help for further information and options.
sass-convert
The sass-convert executable converts between CSS, Sass, and SCSS.
When converting from CSS to Sass or SCSS,
nesting is applied where appropriate.
See sass-convert --help for further information and options.
Running locally
To run the Sass executables from a source checkout instead of from rubygems:
$ cd sass
$ bundle
$ bundle exec sass ...
$ bundle exec scss ...
$ bundle exec sass-convert ...
Authors
Sass was envisioned by Hampton Catlin
(@hcatlin). However, Hampton doesn't even know his way around the code anymore
and now occasionally consults on the language issues. Hampton lives in San
Francisco, California and works as VP of Technology
at Moovweb.
Natalie Weizenbaum is the primary developer and
architect of Sass. Her hard work has kept the project alive by endlessly
answering forum posts, fixing bugs, refactoring, finding speed improvements,
writing documentation, implementing new features, and designing the language.
Natalie lives in Seattle, Washington and works on Dart
application libraries at Google.
Chris Eppstein is a core contributor to
Sass and the creator of Compass, the first Sass-based framework, and
Eyeglass, a node-sass plugin ecosystem for NPM. Chris focuses
on making Sass more powerful, easy to use, and on ways to speed its adoption
through the web development community. Chris lives in San Jose, California with
his wife and two children. He is an Engineer for
LinkedIn.com, where his primary responsibility is to
maintain Sass and many other Sass-related open source projects.
If you use this software, we'd be truly honored if you'd make a
tax-deductible donation to a non-profit organization and then
let us know on twitter, so that we can
thank you. Here's a few that we endorse:
Sass is licensed under the MIT License.
Owner metadata
- Name: Sass
- Login: sass
- Email:
- Kind: organization
- Description:
- Website: https://sass-lang.com
- Location:
- Twitter: SassCSS
- Company:
- Icon url: https://avatars.githubusercontent.com/u/317889?v=4
- Repositories: 28
- Last ynced at: 2024-10-29T23:35:42.738Z
- Profile URL: https://github.com/sass
GitHub Events
Total
- Fork event: 1
- Watch event: 2
Last Year
- Fork event: 1
- Watch event: 1
Committers metadata
Last synced: 1 day ago
Total Commits: 5,127
Total Committers: 226
Avg Commits per committer: 22.686
Development Distribution Score (DDS): 0.239
Commits in past year: 0
Committers in past year: 0
Avg Commits per committer in past year: 0.0
Development Distribution Score (DDS) in past year: 0.0
| Name | Commits | |
|---|---|---|
| Natalie Weizenbaum | n****2@g****m | 3904 |
| Chris Eppstein | c****s@e****t | 645 |
| hcatlin | h****n@7****9 | 77 |
| thedarkone | t****2@g****m | 44 |
| Mislav Marohnić | m****c@g****m | 27 |
| packagethief | p****f@7****9 | 20 |
| Alexander Pavlov | a****v@c****g | 17 |
| Aaron Patterson | a****n@g****m | 16 |
| tom | t****m@7****9 | 15 |
| JonathanTR | J****y@g****m | 15 |
| Jun Aruga | j****a | 10 |
| Christian Peters | c****s@z****e | 10 |
| Thomas Walpole | t****e@g****m | 8 |
| Kaelig | k****g@d****r | 7 |
| Eito Katagiri | e****l@g****m | 7 |
| Joeri Samson | j****i@x****m | 6 |
| Joshua Peek | j****h@j****m | 6 |
| Aman Gupta | a****n@t****t | 5 |
| Norman Clarke | n****n@n****m | 4 |
| Cristi Balan | e****l@c****u | 4 |
| Andre Arko | a****e@a****t | 4 |
| Alexander [Cheba] Mankuta | c****a@p****g | 4 |
| René Föhring | rf@b****e | 4 |
| Sam Rawlins | s****s@g****m | 4 |
| carletex | o****n@g****m | 4 |
| Liang-Bin Hsueh | h****b@h****m | 4 |
| Hampton Catlin | h****n@a****0 | 3 |
| Jason Hutchens | j****s@a****u | 3 |
| xzyfer | x****r@g****m | 3 |
| Phil Hagelberg | t****y@g****m | 3 |
| and 196 more... | ||
Committer domains:
- apfelbox.net: 1
- deadlyicon.com: 1
- jeremyevans.net: 1
- bitsweat.net: 1
- jshawl.com: 1
- thegarvin.com: 1
- lostapathy.com: 1
- suse.de: 1
- lackac.hu: 1
- rapportive.com: 1
- marzelpan.de: 1
- saper.info: 1
- mondoreale.pl: 1
- lazymalevolence.com: 1
- users.sf.net: 1
- uk.ibm.com: 1
- benhollis.net: 1
- morearty.org: 1
- theaboutbox.com: 1
- lixo.org: 1
- donaldbuchanan.com: 1
- darrylmiles.org: 1
- 42dh.com: 1
- danfinnie.com: 1
- livinginthepast.org: 1
- louis.info: 1
- ping.de: 1
- georgemarshall.name: 1
- mccreight.com: 1
- devinesystems.co.nz: 1
- behance.com: 1
- jacobrask.net: 1
- spork.in: 1
- willglynn.com: 1
- sumulshah.com: 1
- espians.com: 1
- novemberain.com: 1
- boonedocks.net: 1
- redhat.com: 1
- hagenburger.net: 1
- braingourmets.com: 1
- duez.me: 1
- paulbarry.com: 1
- roestenburg.io: 1
- pen.mn: 1
- ryanfrederick.com: 1
- ranvis.com: 1
- zes.sx: 1
- cllns.com: 1
- weaverlab.fr: 1
- dasilva.io: 1
- red.(none): 1
- me.com: 1
- faber-ventures.com: 1
- luckie.com: 1
- hester.(none): 1
- liqd.de: 1
- gmx.net: 1
- unwwwired.net: 1
- robwierzbowski.com: 1
- joshsoftware.com: 1
- sap.com: 1
- azure.monochrome: 1
- zenpayroll.com: 1
- sagekey.com: 1
- superlukas.com: 1
- aelogica.com: 1
- trms.com: 1
- onelogin.com: 1
- ulbrich-boerwang.de: 1
- garrettwinder.com: 1
- academia.edu: 1
- newrelic.com: 1
- umich.edu: 1
- upstre.am: 1
- valuadder.com: 1
- alanhogan.com: 1
- dio.jp: 1
- w3masters.nl: 1
- barkingstapler.com: 1
- petebrowne.com: 1
- woodenbits.com: 1
- sallam.me: 1
- econsultancy.com: 1
- prevailhs.com: 1
- roryokane.com: 1
- mcgeary.org: 1
- sampohlenz.com: 1
- sanityinc.com: 1
- wincent.com: 1
- barzel.org: 1
- jones.be: 1
- nyh.se: 1
- gabrielgilder.com: 1
- ericmason.net: 1
- alexbcoles.com: 1
- notesake.com: 1
- sushiandrobots.com: 1
- edelst.am: 1
- agworld.com.au: 1
- handlino.com: 1
- google.com: 1
- bamaru.de: 1
- pointlessone.org: 1
- arko.net: 1
- che.lu: 1
- njclarke.com: 1
- tmm1.net: 1
- joshpeek.com: 1
- xaop.com: 1
- deloumeau.fr: 1
- zweitag.de: 1
- chromium.org: 1
- eppsteins.net: 1
Issue and Pull Request metadata
Last synced: 17 days ago
Total issues: 75
Total pull requests: 25
Average time to close issues: 9 days
Average time to close pull requests: 8 days
Total issue authors: 18
Total pull request authors: 7
Average comments per issue: 0.72
Average comments per pull request: 1.04
Merged pull request: 22
Bot issues: 0
Bot pull requests: 0
Past year issues: 0
Past year pull requests: 0
Past year average time to close issues: N/A
Past year average time to close pull requests: N/A
Past year issue authors: 0
Past year pull request authors: 0
Past year average comments per issue: 0
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- nex3 (58)
- HumanG33k (1)
- cmachu (1)
- TheJaredWilcurt (1)
- leosdad (1)
- ghost (1)
- kaelig (1)
- FunkyloverOne (1)
- glebm (1)
- gpakosz (1)
- anthonyadamski (1)
- bjeanes (1)
- oscarmarcelo (1)
- bunnymatic (1)
- Serranya (1)
Top Pull Request Authors
- nex3 (14)
- junaruga (4)
- yujideveloper (2)
- y-yagi (2)
- greysteil (1)
- huacnlee (1)
- asottile (1)
Top Issue Labels
- enhancement (29)
- bug (26)
- on ice (24)
- implementation (22)
- requires deprecation (6)
- cosmetic (5)
- documentation (4)
- infrastructure (3)
- needs info (1)
- wontfix (1)
Top Pull Request Labels
Package metadata
- Total packages: 3
-
Total downloads:
- conda: 11,899 total
- rubygems: 719,708,047 total
- Total docker downloads: 1,327,357,994
- Total dependent packages: 1,141 (may contain duplicates)
- Total dependent repositories: 1,111,542 (may contain duplicates)
- Total versions: 655
- Total maintainers: 2
gem.coop: sass
Ruby Sass is deprecated! See https://sass-lang.com/ruby-sass for details. Sass makes CSS fun again. Sass is an extension of CSS, adding nested rules, variables, mixins, selector inheritance, and more. It's translated to well-formatted, standard CSS using the command line tool or a web-framework plugin.
- Homepage: https://sass-lang.com/
- Documentation: http://www.rubydoc.info/gems/sass/
- Licenses: MIT
- Latest release: 3.7.4 (published about 7 years ago)
- Last Synced: 2026-05-20T15:10:40.744Z (4 days ago)
- Versions: 327
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 359,798,774 Total
- Docker Downloads: 663,678,997
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 0.05%
- Downloads: 0.064%
- Docker downloads count: 0.136%
- Maintainers (2)
rubygems.org: sass
Ruby Sass is deprecated! See https://sass-lang.com/ruby-sass for details. Sass makes CSS fun again. Sass is an extension of CSS, adding nested rules, variables, mixins, selector inheritance, and more. It's translated to well-formatted, standard CSS using the command line tool or a web-framework plugin.
- Homepage: https://sass-lang.com/
- Documentation: http://www.rubydoc.info/gems/sass/
- Licenses: MIT
- Latest release: 3.7.4 (published about 7 years ago)
- Last Synced: 2026-05-22T03:01:49.574Z (3 days ago)
- Versions: 327
- Dependent Packages: 1,140
- Dependent Repositories: 1,111,541
- Downloads: 359,909,273 Total
- Docker Downloads: 663,678,997
-
Rankings:
- Dependent repos count: 0.003%
- Dependent packages count: 0.044%
- Downloads: 0.049%
- Docker downloads count: 0.193%
- Average: 1.441%
- Stargazers count: 4.173%
- Forks count: 4.188%
- Maintainers (2)
conda-forge.org: rb-sass
- Homepage: https://rubygems.org/gems/sass
- Licenses: MIT
- Latest release: 3.7.4 (published over 6 years ago)
- Last Synced: 2026-04-01T13:29:33.831Z (about 2 months ago)
- Versions: 1
- Dependent Packages: 1
- Dependent Repositories: 1
- Downloads: 11,899 Total
-
Rankings:
- Dependent repos count: 24.392%
- Average: 27.056%
- Stargazers count: 27.217%
- Forks count: 27.631%
- Dependent packages count: 28.983%
Dependencies
- minitest >= 5.0.0, < 6.0.0 development
- mathn >= 0
- rake ~> 11.0
- rake ~> 10.5.0
- sass-spec >= 0
- minitest >= 5 development
- nokogiri ~> 1.6.0 development
- redcarpet ~> 3.3 development
- yard ~> 0.8.7.6 development
- sass-listen ~> 4.0.0
Score: 32.23139725795869