rstudio / rmarkdown

Dynamic Documents for R
https://rmarkdown.rstudio.com
GNU General Public License v3.0
2.88k stars 975 forks source link

Improvement/enhancement: Update html_document themes to support the most recent ones in bootswatch #1988

Closed jmcastagnetto closed 3 years ago

jmcastagnetto commented 3 years ago

Just a minor suggestion, to support the current themes at https://bootswatch.com/. The repo is at: https://github.com/thomaspark/bootswatch

cderv commented 3 years ago

Hi,

We are currently working on integration between rmarkdown and bslib (WIP in #1706). This should lead to access to any bslib feature and you should be able to create a theme using any of the one in bootswatch (https://rstudio.github.io/bslib/#create-a-theme).

I leave this open until we finish the work.

cderv commented 3 years ago

@jmcastagnetto if you install the dev version of rmarkdown with

remotes::install_github("rstudio/rmarkdown", dependencies = TRUE)

so that Suggests dependencies are also installed (you need bslib)

you can the pass a list to theme argument that will be passed to bslib::bs_theme(). For example, this would use the Lux bootswatch theme:

title: "Untitled"
output: 
  html_document:
    theme: 
      bootswatch: lux

You can do much more. You'll find the information for now in the bslib doc and in the upcoming talk about bslib at rstudio::global: https://global.rstudio.com/student/activity/40601

github-actions[bot] commented 3 years ago

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.