⚠️There's a newer version (1.2.0) of this package. Take me there.

shinythemes

See the documentation at http://rstudio.github.io/shinythemes/.

The shinythemes package provides some Bootstrap themes for use with Shiny. The themes are from from http://bootswatch.com/:

Using themes

Using the themes is simple. Use the theme argument to bootstrapPage, fluidPage, navbarPage, or fixedPage. The value should be shinytheme("<theme>"); for example, shinytheme("cerulean").

For example, a ui.R file might look something like this:

library(shinythemes)

navbarPage("United",
  theme = shinytheme("cerulean"),
  tabPanel("Plot", "Plot tab contents..."),
  navbarMenu("More",
    tabPanel("Summary", "Summary tab contents..."),
    tabPanel("Table", "Table tab contents...")
  )
)

An example single-file app might look like this:

library(shinythemes)

shinyApp(
  ui = navbarPage("United",
    theme = shinytheme("united"),
    tabPanel("Plot", "Plot tab contents..."),
    navbarMenu("More",
      tabPanel("Summary", "Summary tab contents..."),
      tabPanel("Table", "Table tab contents...")
    )
  ),
  server = function(input, output) { }
)

Copy Link

Version

Down Chevron

Install

install.packages('shinythemes')

Monthly Downloads

29,189

Version

1.0.1

License

GPL-3 | file LICENSE

Maintainer

Last Published

March 2nd, 2015

Functions in shinythemes (1.0.1)