datastorm-open / shinymanager

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

allow scss or css support? #107

Closed hdeng88 closed 2 years ago

hdeng88 commented 3 years ago

I am wondering whether there can be some css support to customize the font or appearance of the admin page?

deann88 commented 2 years ago

You can actually add css for the login page like this:

secure_app(
  # add css
  theme = "login.css",
  # other arguments to auth_ui
  tags_top = ...
  background  = "url('...') no-repeat;", 
  fab_position = "none", # to exclude default logout fab button
  # rest of ui code
  ...
)

In order for this to work, you need to have login.css file located in www/ folder

pvictor commented 2 years ago

@deann88 's answer is the right one :)