datastorm-open / shinymanager

Simple and secure authentification mechanism for single shiny applications.
https://datastorm-open.github.io/shinymanager/
386 stars 79 forks source link

How to use themes correctly #92

Closed roman-tremmel closed 3 years ago

roman-tremmel commented 3 years ago

I tried several things. For instance to paste the css file in the library path.

secure_app(ui, enable_admin = TRUE, theme = "shinymanager/css/slate.min.css")

This loads the theme, but the app is not correctly working.

wangbinkarl commented 3 years ago

you should put the css file to the under of www/.

pvictor commented 3 years ago

The theme argument from secure_app() is passed to shiny::fluidPage() or shiny::navbarPage(). You can use the same value that you will use with those functions (a file located in www/, shinythemes::shinytheme("cosmo"), ...)

Victor