Can we change the default color in shinyDashboard to whirhite

Hi all,

With the below code, I am getting the default colour as grey (main page). Is there a way to change this white instead of grey?

library(shiny)
library(shinydashboard)

ui <- dashboardPage(
  dashboardHeader(),
  dashboardSidebar(),
  dashboardBody()
)

server <- function(input, output) { }

shinyApp(ui, server)
library(shiny)
library(shinydashboard)

ui <- dashboardPage(
  dashboardHeader(),
  dashboardSidebar(),
  dashboardBody(   
     tags$head(tags$style(HTML('
      .content-wrapper {
        background-color: #fff;
      }
    '
)))))

server <- function(input, output) { }

shinyApp(ui, server)

See:

https://rstudio.github.io/shinydashboard/appearance.html#css

Perfect and thanks a lot.

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