RStudio Community: R Markdown RStudio Ask a question: 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++.


Install the released version of sass from CRAN:

Install the latest development build from GitHub:

Getting Started

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

#> /* 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.