Bslib bs_theme. Apply a theme class to the navbar

Hi there,
I am learning bslib as a dashboard main reference.
I know that using bs_theme I can import bootswatch themes.
My question relates to the application of a specific class to the navbar. I know that for example I can apply different classes to specific buttons. I also know that I can change navbar background color. But is it possible to apply a class to the navbar. Let's say I am using Flatly and I want to apply bg-primary or bg-light to the navbar. How can I do it. Is it possible? Here is an example of code where I got stuck.
Thank you so much!

library(shiny)
library(bslib)

theme <- bs_theme(version = 5,
bootswatch = "minty",
#"navbar-bg"="black"
)

ui <- navbarPage(
theme = theme,
title = tags$a(
href = 'http://example.com',
tags$img(
src = 'logo.png',
height = "50px",
align = "center",
style = "margin-top:5px"
)),
nav_spacer(),
nav_panel("Page 1",
page_fluid(tags$div(tags$p("text 1", class="text-success")),
tags$p("text 2"),
actionButton("primary", "Primary", icon("product-hunt"), class = "btn-outline-primary"),
actionButton("success", "Success", icon("check"), class = "btn-primary")
)),
nav_panel("Page 2", "page 2"),
nav_panel("Page 3", "page 3"),
nav_item(tags$a("Posit", href = "https://posit.co"))
)

shinyApp(ui, function(input, output) {})

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.