sass v0.1.1

0

Monthly downloads

0th

Percentile

Syntactically Awesome Style Sheets (Sass) for R

An 'SCSS' compiler, powered by the 'libSass' library. With this, R developers can use variables, inheritance, and functions to generate dynamic style sheets. The package uses the Sass CSS extension language, which is stable, powerful, and CSS compatible.

Readme

README

sass

Travis build
status AppVeyor build
status CRAN\_Status\_Badge

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++.

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


Functions in sass

Name Description
as_sass List to Sass converter
sass Compile Sass to CSS
sass_cache_options Caching Options for Sass
sass_options Compiler Options for Sass
sass_import Sass Import
No Results!

Vignettes of sass

Name
sass.Rmd
No Results!

Last month downloads

Details

Type Package
License MIT + file LICENSE
URL https://github.com/rstudio/sass
BugReports https://github.com/rstudio/sass/issues
Encoding UTF-8
LazyData true
RoxygenNote 6.1.1
SystemRequirements GNU make
VignetteBuilder knitr
NeedsCompilation yes
Packaged 2019-06-09 03:38:17 UTC; rich
Repository CRAN
Date/Publication 2019-06-11 10:00:03 UTC

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/sass)](http://www.rdocumentation.org/packages/sass)