Skip to content

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

Closed

Activity

  1. cderv commented on Dec 21, 2020

    @cderv
    Collaborator

    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.

  2. linked a pull request that will close this issueAdd Bootstrap 4 support #1706on Dec 21, 2020
  3. cderv commented on Jan 20, 2021

    @cderv
    Collaborator

    @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

  4. github-actions commented on Jul 20, 2021

    @github-actions

    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.

  5. locked as resolved and limited conversation to collaborators on Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions