shiny-bslib-theming

Customize Bootstrap 5 themes for Shiny apps with bslib.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/jhelvy/dotfiles --skill shiny-bslib-theming
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shiny-bslib-theming
Source: https://github.com/jhelvy/dotfiles/tree/main/claude/skills/shiny-bslib-theming
Command: npx skills add https://github.com/jhelvy/dotfiles --skill shiny-bslib-theming

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill empowers users to deeply customize the visual appearance of Shiny web applications, moving beyond default styles to create professional and branded user interfaces.

Core Features & Use Cases

  • Advanced Theming: Apply custom colors, fonts, and Bootstrap Sass variables to Shiny apps.
  • Bootswatch Integration: Easily switch between various pre-built Bootswatch themes.
  • Dark Mode Support: Implement and manage light and dark color modes for enhanced user experience.
  • Plot Theming: Ensure R plots seamlessly match the application's theme using the thematic package.
  • Use Case: A data scientist wants to create a dashboard that matches their company's branding. They use this Skill to set specific primary and secondary colors, import a custom Google Font for headings, and ensure all plots generated within the dashboard adhere to these new visual guidelines.

Quick Start

Create a Shiny app theme using the 'minty' Bootswatch preset and update the primary color to '#1a9a7f'.

Frequently Asked Questions about shiny-bslib-theming

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I customize Bootstrap 5 themes in a Shiny app?

Shiny app theming with bslib allows you to customize Bootstrap 5 by overriding Sass variables to apply custom colors, fonts, and Bootswatch presets for professional, branded user interfaces.

How can I add dark mode to a Shiny dashboard?

You can add dark mode to a Shiny dashboard using bslib to implement and manage dynamic light and dark color modes, providing a toggle for enhanced user experience and accessibility.

How do I make R plots match my Shiny app's Bootstrap theme?

To make R plots match your Shiny app's Bootstrap theme, use the thematic package alongside bslib, ensuring all generated plots automatically adhere to the application's custom visual guidelines and colors.

Can I use Bootswatch presets to restyle Shiny applications?

Yes, you can use Bootswatch presets to restyle Shiny applications through bslib, which supports easily switching between various pre-built themes to quickly change the entire application's visual appearance.

What is the best way to apply custom branding to a Shiny user interface?

The best way to apply custom branding to a Shiny user interface is using bslib to set specific primary and secondary colors, import custom Google Fonts for headings, and ensure visual consistency across plots with thematic.

Does bslib support dynamic theme switching in Shiny apps?

Yes, bslib supports dynamic theme switching in Shiny apps, allowing users to interactively change themes, toggle between light and dark modes, and update application aesthetics without reloading the page.