I’ve updated the theme documentation to include some more information on how to override individual component styles. I’ve also included a couple example themes as well. Two of the sample themes I ported from the Material UI sample themes so that they work in UD and are pretty complicated.
There are some improvements we are going to make in the next version to make it easier to apply theme colors to components without having to do anything too crazy and hopefully simplify theming a bit.
There I found I could import google fonts into the Material UI theme. What I can’t seem to figure out is how can I import google fonts into the dashboard, so my theme can use it for fontFamily?
To note, I tried using ‘@import url’ in a CSS file and importing it, but it didn’t work. I set some other CSS styles in the file to prove they were working.
What a neat tool! I will take a look at this and write up some docs around it. Seems like a good solution to simplifying theming…
As for the font, I think you’ll have to include the CSS file in the -Stylesheets parameter of New-UDDashboard. It will load the CSS stylesheet when loading the dashboard.
I was already using a CSS file with -Stylesheets, but wasn’t getting it to work. I found I’m a goofy, goof, and I had a misspelling in my fontFamily value