Shinyswatch

Latest version: v0.9.0

Safety actively analyzes 722491 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

0.9.0

* The theme picker can now be used with dynamic UI, e.g. `shiny.ui.output_ui()` and `shiny.render.ui()`. Be careful when using the theme picker in this way: only one theme picker is allowed in the app at a time. (51)

* Update pre-built shinyswatch themes for use with Shiny v1.3.0. In this release, the navbar colors of Bootswatch themes are less opinionated by default and are designed to work well in light and dark modes. To set navbar colors with Shiny v1.3.0, use `shiny.ui.navbar_options()`. [The documentation for `ui.navbar_options()`](https://shiny.posit.co/py/api/core/ui.navbar_options.html#shiny.ui.navbar_options) includes instructions for setting navbar colors from Bootswatch examples. (52)

0.8.0

* The theme picker's message warning users to include `shinyswatch.theme_picker_server()` is now correctly hidden if the app takes longer than expected to start up. (47)

* shinyswatch now requires [Shiny v1.2.0](https://shiny.posit.co/blog/posts/shiny-python-1.2/). (#48)

0.7.0

Breaking changes

* shinyswatch now requires shiny v1.0.0 or newer to use the newly-introduced `shiny.ui.Theme()` class to define themes. As a result, `shinyswatch.theme.{name}` objects can no longer be added anywhere in the app's UI. Instead, pass a shinyswatch theme to the `theme` argument of any `shiny.ui.page_*()` functions (Shiny Core) or to `shiny.express.ui.page_opts()` (Shiny Express). (39)

* The `default` argument of `theme_picker_ui()` is now deprecated. Instead, pass the initial theme to the `theme` argument of any `shiny.ui.page_*()` functions (Shiny Core) or to `shiny.express.ui.page_opts()` (Shiny Express). This change separates the initial theme selection from the placement of the theme picker input. (39)

* `shinyswatch.get_theme_deps()` was removed from the package. If needed, use the `._html_dependency()` method of the theme object. (39)

New features

* As mentioned above, shinyswatch now uses the `shiny.ui.Theme()` class to define themes, making shinyswatch themes customizable using the `.add_defaults()`, `.add_rules()` and other methods of the `shiny.ui.Theme()` class. Customized themes are recompiled from Sass to CSS, which requires the [libsass package](https://sass.github.io/libsass-python/). (#39)

* The theme picker now includes Shiny's default theme (as `"shiny"`) and bare Bootstrap (as `"bootstrap"`) as theme options, in addition to the Bootswatch themes. If the initial app theme is a custom `shiny.ui.Theme()`, the custom theme is also included in the theme picker options. (39)

* The theme picker will now remember the previous theme selection between app uses when the app is re-loaded in the same browser. (43)

0.6.1

* Include missing theme picker assets in the package. (36)

0.6.0

New features

* `shinyswatch.theme_picker_ui()` gains a `default` argument to set the initial theme. (22)

Internal changes

* We've restructured the dependencies used to provide a shinyswatch theme. This change should not affect users of shinyswatch, but it will prevent accidentally including more than one shinyswatch themes on the same page. (32)

* The theme picker now transitions between themes more smoothly. That said, we do still recommend using the theme picker only while developing your app. (32)

0.5.1

* Add typed attributes in the theme's color class for stronger type checking.

Page 1 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.