Sass is an CSS extension language that helps reduce complexity and increase composability when styling a website. Bootstrap Sass is just one example of a Sass-based project that exposes Sass variables to allow users to easily customize CSS styles.

TODO: do a better job here

When a bs_theme() is used with Shiny or R Markdown, the {sass} object underlying the theme object is compiled into CSS at run-time. Compared to custom theming by overlaying additional CSS rules (which, historically, has been the only way to implement custom themes), there are at least a few huge benefits in taking the Sass based approach:



rstudio/bootstraplib documentation built on June 17, 2024, 9:42 a.m.