Proposed method to change theme
Opened this issue · 4 comments
Hi,
thanks for the hard work to implement material design for shiny. I'm trying to apply a custom theme derived via the SASS definition of materialize v1.0.0. I think I should place the CSS and JavaScript files in corresponding folders under 'www' but what is the recommended way to apply the theme instead of the built-in version of materialize CSS/JavaScript? Is there a theme apply function somewhere to replace the built-in theme?
Thanks!
Best
Johannes
Do you have a solution or a comment to this issue?
I took a look at this and allowing users to apply a theme will take some time, and the next version is going to CRAN in a couple days. Will re-open the issue.
I think I now understand your issue better.
Can you please try the version in branch "material-link":
devtools::install_github("ericrayanderson/shinymaterial", ref = "material-link")
The syntax would be: material_page(materialize_in_www = TRUE, ...
It will look for css in www/css/materialize.min.css
and js in www/js/materialize.min.js
I'm a little slow on this but I definitely plan to follow this. Please be patient...