Carson Sievert || Custom Theming with {bslib} in Shiny and R Markdown using bs_theme() || RStudio
00:00 Introduction
01:15 Jumping right in with the theme argument in Shiny
01:31 Shiny's classic navbarPage using bs_theme()
01:46 Specifying your Bootstrap version
02:31 Using the theme argument in R Markdown
03:17 Custom theming in R Markdown using bs_theme()
04:10 bslib templates provided by RStudio
05:33 Review of common arguments for the theme parameter
08:47 Tips for working with dark themes
10:34 Introduction to the thematic package, which styles plots
12:04 How thematic handles fonts
13:09 Using fonts with bslib in R Markdown
14:36 Moving a theme from an R Markdown document into a Shiny app
16:51 Setting warnings for contrast ratios
18:42 A quick tour of Bootstrap 4 and Bootstrap 5 Sass variables
20:35 A quick overview of writing custom HTML in Shiny
22:15 How bslib automatically handles color contrast ratios
bs_theme() allows you to creates a Bootstrap theme object, where you can choose a (major) Bootstrap version, choose a Bootswatch theme (optional), customize main colors and fonts via explicitly named arguments (e.g., bg, fg, primary, etc), and customize other, lower-level, Bootstrap Sass variable defaults via ....
You can read more about the bslib package here: https://rstudio.github.io/bslib/
And you can learn more about Shiny here: https://shiny.rstudio.com/
Got questions? The RStudio Community site is a great place to get assistance: https://community.rstudio.com/
Content: Carson Sievert (@cpsievert)
Design and editing: Jesse Mostipak (@kierisi)
bslib
rstudio
Shiny
thematic
RStudio
Data Science
Machine Learning
Python
Stats
Tidyverse
Data Visualization
Data Viz
Ggplot
Technology
Coding
Connect
Server Pro
Shiny
Rmarkdown
Package Manager
CRAN
Interoperability
Serious Data Science
Dplyr
Forcats
Ggplot2
Tibble
Readr
Stringr
Tidyr
Purrr
Github
Data Wrangling
Tidy Data
Odbc
Rayshader
Plumber
Blogdown
Gt
Lazy Evaluation
Tidymodels
Statistics
Debugging
Programming Education
Rstats
Open Source
Oss
Reticulate
Bslib
Bs_theme()
Bs_theme
Carson Sievert