Skip to content

Instantly share code, notes, and snippets.

@homerhanumat
Last active February 1, 2021 03:08
Show Gist options
  • Save homerhanumat/bc7ac9cbf93b24552134 to your computer and use it in GitHub Desktop.
Save homerhanumat/bc7ac9cbf93b24552134 to your computer and use it in GitHub Desktop.
Shiny dashboard with yellow sidebar
library(shiny)
library(shinydashboard)
ui <- dashboardPage(
dashboardHeader(),
dashboardSidebar(),
dashboardBody(),
tags$head(tags$style(HTML("
.skin-blue .main-sidebar {
background-color: yellow;
}")))
)
server <- function(input, output) { }
shinyApp(ui, server)
@Fahim-Ahmad
Copy link

Thank you a lot!

I didn't know about !important. It is excellent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment