Themes
Universal Dashboard v3 is built on Material UI. Material UI provides a built-in theme system that UD now takes advantage of. You can utilize this theme system by providing a hashtable of options to the New-UDDashboard
's -Theme
parameter.
Here's an example of changing the theme's main color.
Setting the default theme
You can set the default theme to either Light or Dark using the -DefaultTheme
parameter.
Changing the background color
You can change the page background color by setting the background default color. To adjust the header background color, set the primary main color.
Supporting dark and light palettes
To support dark and light palettes, you can define a dark and light sections in your hashtable. They have the same properties as a theme.
Changing the font size
To change the font size, set the typography fontSize property.
Changing default button colors
For a full list of options available for the theme system, you can look at the default theme for Material UI.
Last updated