In the following R shiny program I use 2 labels "Enter text:" and "Enter choice:".
library(shiny)
library(bslib)
ui <- fluidPage(
theme = bs_theme(version = 5,
bootswatch = "litera",
base_font = "Arial",
heading_font = "Arial",
font_scale = 1),
sidebarLayout(
# ui sidebarPanel ---------------------------------------------------------------
sidebarPanel(
br(),
textInput("txt_input",
label = "Enter text:"),
br(),
selectInput("select",
label = "Select choice:",
choices = c("One", "Two", "Three"))
),
mainPanel(
br(),
htmlOutput("result")
)
)
)
server <- function(input, output, session) {
observe({
output$result <- renderUI(
HTML(sprintf(" Selected choice: %s", input$select))
)
})
}
shinyApp(ui, server)
I like to make all labels in my shiny app bold. How do I do that using a sass variable in bs_theme() ?
I cannot find the sass variable to change the layout of all labels in my R shiny program using bslib and sass variables. It should be easy using custom theming but I cannot find it.
Thanks for your help.