~/talk

Styling Shiny apps with Sass and Bootstrap 4

Talkat rstudio::conf 2019 · 2019-01-15..01-18· [css, web-platform]
name:Joe Cheng
github:jcheng5
slides:none on file

Two new R packages let apps set Bootstrap variables from R and recompile Sass into CSS so one-line changes replace a color used in 25 different CSS occurrences; usage is BS_theme_new(), bs_theme_add_variables(primary = "#ff6600"), and bootstrap() to inject a custom build. A live editor run_with_themer previews changes and prints the code to persist them. This works with both sass compilation and bootstraplib and adds an opt-in plot auto colors feature for plots.

AI-written summary · about

  1. 0:00Start
  2. 12:55Load library
  3. 13:07Set Bootstrap over
  4. 13:18Build and insert Boo
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.