MatBlazor
MatBlazor copied to clipboard
MatTheme background and some other properties doesn't work properly
This is somehow related to: https://github.com/SamProf/MatBlazor/issues/82
If you set the background color it just doesn't change the color of the background, in my case only Primary, Secondary,Surface, OnPrimary and maybe OnSecondary worked, others didn't
To test this do the following: Replace in project MatBlazor.Demo.ClientApp, in file App.razor
MatTheme theme = new MatTheme()
{
};
WITH
MatTheme theme = new MatTheme()
{
Primary = "#2196f3",
Secondary = "#f50057",
Background = "#212121",
Surface = "#333333",
OnPrimary = "#131A20",
OnSecondary = "#201317",
OnSurface = "#FFFFFF"
};
Can we get a more complete demo of themes? The documentation doesn't say how to get the background actually to work and for OnPrimary colors to respect it.