是否可以更改整个闪亮仪表板应用程序的默认字体?包括侧边栏、正文、标题、应用程序内的 ggplots 的字体等?
我知道您可以在每件作品中添加字体系列声明
(例如:h2(strong(textOutput("t")), style = "font-family: 'Arial';")),
但我希望我的整个应用程序都使用 Arial,并且我不想为每个功能编写一行代码。有捷径吗?
此外,如果可能的话,内联 CSS 优于单独的 css 文件。
谢谢,
莎拉
Edit:
这是我的一些代码。你能告诉我在哪里放置必要的 CSS 吗?
body<-dashboardBody( tags$style(".content {background-color: black;}"),
useShinyjs(),
tags$style(type='text/css', ".skin-blue .main-header .logo {background-color: #000000}" ),
tags$style(type='text/css', ".skin-blue .main-header .logo:hover {background-color: #000000}"),
tags$style(type='text/css', ".skin-blue .main-header .navbar {background-color: #000000}"),
tags$style(type="text/css",".shiny-output-error { visibility: hidden; }",".shiny-output-error:before { visibility: hidden; }"),
fluidPage(
img(src="img2.PNG",height="100%", width="100%",style='padding:0px;'),
br(),br(),
tabBox("Menu Database", width = 12,
tabPanel("Menu Database",
tabsetPanel(
tabPanel("LTO Survey results",