{"id":13834055,"url":"https://rstudio.github.io/bslib/","last_synced_at":"2025-07-10T01:33:01.721Z","repository":{"id":37481989,"uuid":"219071141","full_name":"rstudio/bslib","owner":"rstudio","description":"Tools for theming Shiny and R Markdown via Bootstrap 3, 4, or 5.","archived":false,"fork":false,"pushed_at":"2024-11-18T21:29:45.000Z","size":151880,"stargazers_count":489,"open_issues_count":149,"forks_count":57,"subscribers_count":17,"default_branch":"main","last_synced_at":"2024-11-19T11:09:38.631Z","etag":null,"topics":["bootstrap","htmltools","rmarkdown","sass","shiny"],"latest_commit_sha":null,"homepage":"https://rstudio.github.io/bslib/","language":"SCSS","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.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-01T22:21:50.000Z","updated_at":"2024-11-18T23:29:43.000Z","dependencies_parsed_at":"2023-12-14T23:25:10.203Z","dependency_job_id":"84c7124f-bcba-4ff0-84a5-c71b7e2f9cea","html_url":"https://github.com/rstudio/bslib","commit_stats":{"total_commits":916,"total_committers":27,"mean_commits":"33.925925925925924","dds":0.3766375545851528,"last_synced_commit":"85b042832e1520b5f06dc95c769396816be76eca"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstudio%2Fbslib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstudio%2Fbslib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstudio%2Fbslib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstudio%2Fbslib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rstudio","download_url":"https://codeload.github.com/rstudio/bslib/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225610574,"owners_count":17496297,"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":["bootstrap","htmltools","rmarkdown","sass","shiny"],"created_at":"2024-08-04T13:00:48.246Z","updated_at":"2025-07-10T01:33:01.716Z","avatar_url":"https://github.com/rstudio.png","language":"SCSS","readme":"---\noutput: github_document\n---\n\n# bslib \u003ca href='https://rstudio.github.io/bslib/'\u003e\u003cimg src='man/figures/logo.png' align=\"right\" height=\"138\" /\u003e\u003c/a\u003e\n\n\n\u003c!-- badges: start --\u003e\n\n[![CRAN status](https://www.r-pkg.org/badges/version/bslib)](https://cran.r-project.org/package=bslib)\n[![bslib status badge](https://rstudio.r-universe.dev/badges/bslib)](https://rstudio.r-universe.dev/bslib)\n[![R build status](https://github.com/rstudio/bslib/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/rstudio/bslib/actions)\n\n\u003c!-- badges: end --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  message = FALSE,\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\",\n  fig.align = 'center'\n)\nlibrary(bslib)\n```\n\nThe `bslib` R package provides a modern UI toolkit for [Shiny](https://shiny.posit.co/) and [R Markdown](https://rmarkdown.rstudio.com/) based on [Bootstrap](https://getbootstrap.com/). It facilitates:\n\n* Creation of delightful and customizable [Shiny dashboards](https://rstudio.github.io/bslib/articles/dashboards.html).\n  * The underlying UI components (e.g., [cards](https://rstudio.github.io/bslib/articles/cards.html), [value boxes](https://rstudio.github.io/bslib/articles/value-boxes.html), [sidebars](https://rstudio.github.io/bslib/articles/sidebars.html), etc) are also designed to work in other contexts (e.g., in R Markdown).\n* [Custom theming](https://rstudio.github.io/bslib/articles/theming.html) of Shiny apps and R Markdown documents.\n  * Apps can even be themed interactively in real-time.\n* Use of modern versions of Bootstrap and [Bootswatch](https://bootswatch.com/)\n  * Shiny and R Markdown currently default to Bootstrap 3 and may continue to do so to maintain backwards compatibility.\n\n## Installation\n\nInstall the `bslib` package from CRAN as follows:\n\n```r\ninstall.packages(\"bslib\")\n```\n\n## An example\n\nThe quickest way to see what `{bslib}` can do is to run `bslib::bs_theme_preview()` at the console. This launches a demo app containing both `{bslib}` and `{shiny}` UI components as well as an theming widget (`bslib::bs_themer()`) overlaid on the app. See [real-time theming](https://rstudio.github.io/bslib/articles/theming.html#real-time) to learn more.\n\n```{r, echo = FALSE}\n#| fig.alt: \u003e\n#|   An animation showing bslib theming app. As the user changes the Bootswatch\n#|   theme and Bootstrap settings, the app's appearance changes in real-time.\nknitr::include_graphics(\"vignettes/theming/themer.gif\")\n```\n\n## Get started\n\nSince `{bslib}` covers a wide array of uses, it has numerous getting started articles, each focusing on a particular interest:\n\n* [Shiny dashboards](https://rstudio.github.io/bslib/articles/dashboards.html)\n* [Any Bootstrap project](https://rstudio.github.io/bslib/articles/any-project.html)\n* [Theming](https://rstudio.github.io/bslib/articles/theming.html)\n\n\n## Getting help\n\nThere are two main places to get help with `bslib`:\n\n+ The [RStudio community](https://forum.posit.co/) is a friendly place to ask any questions (be sure to add a `bslib` tag when creating a topic).\n\n+ [Stack Overflow](https://stackoverflow.com/questions/tagged/bslib) is a great source of answers to common `bslib` questions. It is also a great place to get help, once you have created a reproducible example that illustrates your problem. Use the tags [`[r][bslib]`](https://stackoverflow.com/questions/tagged/bslib+r) if you ask a question. Add the tag `[bslib]` if you are using a Shiny runtime.\n\n## Code of Conduct\n\nPlease note that the bslib project is released with a [Contributor Code of Conduct](https://github.com/rstudio/bslib/blob/main/CODE_OF_CONDUCT.md). By contributing to this project, you agree to abide by its terms.\n","funding_links":[],"categories":["Packages"],"sub_categories":["Dashboard"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/rstudio.github.io%2Fbslib%2F","html_url":"https://awesome.ecosyste.ms/projects/rstudio.github.io%2Fbslib%2F","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/rstudio.github.io%2Fbslib%2F/lists"}