A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/rstudio/sass below:

rstudio/sass: Sass compiler package for R

sass

<style> pre { border: 1px solid #eee; } pre.r { background-color: #ffffff; } pre.r code { background-color: #ffffff; } pre.css { margin-top: -1.25rem; background-color: #f8f8f8; border-radius: 0; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; } </style>

The sass R package provides bindings to LibSass, a fast Sass compiler written in C++. Sass is a mature and stable CSS extension language that makes styling modern websites less complex and more composable.

Install the released version of sass from CRAN:

Install the latest development build from GitHub:

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

To compile Sass into CSS, provide Sass to the input argument of the sass() function. input can be any of the following:

library(sass)
sass(input = "
  $size: 50%;
  foo { margin: $size * .33; }
")
<style>foo { margin: 16.5%; } </style>

See sass’s overview vignette as well as the official Sass documentation.

If you have a question about sass, try asking one on https://forum.posit.co:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4