{"id":13654044,"url":"https://github.com/rstudio/shinythemes","last_synced_at":"2025-04-04T19:12:06.571Z","repository":{"id":24213840,"uuid":"27605687","full_name":"rstudio/shinythemes","owner":"rstudio","description":"Themes for Shiny","archived":false,"fork":false,"pushed_at":"2022-02-25T15:37:49.000Z","size":3366,"stargazers_count":155,"open_issues_count":6,"forks_count":77,"subscribers_count":51,"default_branch":"main","last_synced_at":"2025-03-28T18:15:27.582Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://rstudio.github.io/shinythemes/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rstudio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-05T19:00:43.000Z","updated_at":"2025-02-08T07:25:08.000Z","dependencies_parsed_at":"2022-08-10T07:00:17.740Z","dependency_job_id":null,"html_url":"https://github.com/rstudio/shinythemes","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstudio%2Fshinythemes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstudio%2Fshinythemes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstudio%2Fshinythemes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstudio%2Fshinythemes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rstudio","download_url":"https://codeload.github.com/rstudio/shinythemes/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247234923,"owners_count":20905854,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T02:01:22.467Z","updated_at":"2025-04-04T19:12:06.555Z","avatar_url":"https://github.com/rstudio.png","language":"R","funding_links":[],"categories":["R","Tools","Theming"],"sub_categories":["Packages","Generic Theming"],"readme":"shinythemes\n===========\n\n\u003e NOTE: This package has been superseded by the [`{bslib}` package](https://rstudio.github.io/bslib/), which provides Bootswatch (and as well as custom) themes for both Bootstrap 3 and 4.\n\nSee the documentation at https://rstudio.github.io/shinythemes/.\n\nThe shinythemes package provides some Bootstrap themes for use with Shiny. The themes are from from https://bootswatch.com/:\n\n* [cerulean](https://bootswatch.com/3/cerulean/)\n* [cosmo](https://bootswatch.com/3/cosmo/)\n* [cyborg](https://bootswatch.com/3/cyborg/)\n* [darkly](https://bootswatch.com/3/darkly/)\n* [flatly](https://bootswatch.com/3/flatly/)\n* [journal](https://bootswatch.com/3/journal/)\n* [lumen](https://bootswatch.com/3/lumen/)\n* [paper](https://bootswatch.com/3/paper/)\n* [readable](https://bootswatch.com/3/readable/)\n* [sandstone](https://bootswatch.com/3/sandstone/)\n* [simplex](https://bootswatch.com/3/simplex/)\n* [slate](https://bootswatch.com/3/slate/)\n* [spacelab](https://bootswatch.com/3/spacelab/)\n* [superhero](https://bootswatch.com/3/superhero/)\n* [united](https://bootswatch.com/3/united/)\n* [yeti](https://bootswatch.com/3/yeti/)\n\n## Using themes\n\nUsing the themes is simple. Use the `theme` argument to `bootstrapPage`, `fluidPage`, `navbarPage`, or `fixedPage`. The value should be `shinytheme(\"\u003ctheme\u003e\")`; for example, `shinytheme(\"cerulean\")`.\n\nFor example, a single-file app might look like this:\n\n```R\nshinyApp(\n  ui = navbarPage(\"United\",\n    theme = shinythemes::shinytheme(\"united\"),  # \u003c--- Specify theme here\n    tabPanel(\"Plot\", \"Plot tab contents...\"),\n    navbarMenu(\"More\",\n      tabPanel(\"Summary\", \"Summary tab contents...\"),\n      tabPanel(\"Table\", \"Table tab contents...\")\n    )\n  ),\n  server = function(input, output) { }\n)\n```\n\n## Live theme selector\n\nIf you want to quickly test out different themes with an application, you can simply add `themeSelector()` somewhere to the UI. This will add a select box which lets you choose the theme. It will change the theme without having to reload or restart your app. You can see the theme selector in action [here](https://gallery.shinyapps.io/117-shinythemes/).\n\nThe theme selector is only meant to be used while developing an application. Once you've decided on which theme to use, pass it to the `theme` argument as described earlier.\n\nHere's an example app with the theme selector:\n\n```R\nshinyApp(\n  ui = fluidPage(\n    shinythemes::themeSelector(),  # \u003c--- Add this somewhere in the UI\n    sidebarPanel(\n      textInput(\"txt\", \"Text input:\", \"text here\"),\n      sliderInput(\"slider\", \"Slider input:\", 1, 100, 30),\n      actionButton(\"action\", \"Button\"),\n      actionButton(\"action2\", \"Button2\", class = \"btn-primary\")\n    ),\n    mainPanel(\n      tabsetPanel(\n        tabPanel(\"Tab 1\"),\n        tabPanel(\"Tab 2\")\n      )\n    )\n  ),\n  server = function(input, output) {}\n)\n```\n\nOnce you've found a theme that you like, use it in the page as shown above, with `theme = shinythemes::shinytheme(\u003ctheme here\u003e)`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frstudio%2Fshinythemes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frstudio%2Fshinythemes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frstudio%2Fshinythemes/lists"}