Install any skill in seconds. Free to start, no credit card required.
Get Started Free →posit-dev/shiny-bslib-theming
Advanced theming for Shiny apps using bslib and Bootstrap 5.
Passed 22 of 22 test cases with the skill, and 15 of 22 without it.
and 5 more in the full report
7 fixed15 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 7 test cases the skill fixed. Same model, same prompt, with and without the skill.
In an R Shiny server function, when a user triggers a dark mode action button, I want to programmatically update the user session's active theme to a predefined theme object `dark_theme`. What function call updates the session theme?
| Checked | Without skill | With skill |
|---|---|---|
| Calls session$setCurrentTheme(dark_theme) | Missed | Passed |
The instructions your model reads when the skill loads.
Customize Shiny app appearance using bslib's Bootstrap 5 theming system. From quick Bootswatch themes to advanced Sass customization and dynamic color mode switching.
"shiny" preset (recommended starting point):
page_sidebar(
theme = bs_theme(), # "shiny" preset by default — polished, not plain Bootstrap
...
)
Bootswatch theme (for a different visual style):
page_sidebar(
theme = bs_theme(preset = "zephyr"), # or "cosmo", "minty", "darkly", etc.
...
)
Custom colors and fonts:
page_sidebar(
theme = bs_theme(
version = 5,
bg = "#FFFFFF",
fg = "#333333",
primary = "#2c3e50",
base_font = font_google("Lato"),
heading_font = font_google("Montserrat")
),
...
)
Auto-brand from _brand.yml:
If a _brand.yml file exists in your app or project directory, bs_theme() automatically discovers and applies it. No code changes needed. Requires the brand.yml R package.
test cases passed, vs 15 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.