⚠️There's a newer version (0.4.9) of this package. Take me there.

README

sass

The sass R package is a CSS preprocessor, letting R developers use variables, inheritance, and functions to generate dynamic style sheets.

sass uses the Sass CSS extension language. Sass is stable, powerful, and CSS compatiable. sass is an R wrapper for LibSass, a fast Sass compiler written in C++.

Installation

Install the released version of sass from CRAN:

install.packages("sass")

Install the latest development build from GitHub:

# install.packages("devtools")
devtools::install_github("rstudio/sass")

Getting Started

The Sass language syntax is similar to CSS, but allows functions and variables, and it can do arbitrary computations.

library(sass)

sass("
  $size: 50%;
  foo { margin: $size * .33; }
")
#> /* CSS */
#> foo {
#>   margin: 16.5%;
#> }

For an overview of the major features of Sass such as variables, nesting, and imports check out the official Sass Basics.

Examples

Copy Link

Version

Down Chevron

Install

install.packages('sass')

Monthly Downloads

809,452

Version

0.1.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

June 11th, 2019

Functions in sass (0.1.1)