CSS and SASS in Shiny

CSS = Cascading Style Sheets

  • Selector
  • Declaration

To add CSS to Shiny:

  • Add styling to tags
  • Add CSS to HTML header
  • Add style sheets with the www directory (most ideal)

SASS = Systematically Awesome Style Sheets (built on top of CSS)

SASS CSS
Object oriented Statement oriented
Allows nesting No nesting
Allows variables Limited variable declaration

Table by Pedro Silva from Appsilon

Mike Nguyen, PhD
Mike Nguyen, PhD
Visiting Professor of Data Sciences and Operations

My research interests include marketing, and social science.

Next
Previous

Related