For example if a blue button was desired but blue was not either the primary or accent color defined in your material theme a class can be created to be used alongside primary or accent.
Color in the mat.
As long as the mat color is borrowed from one of the secondary or tertiary colors in the artwork a color mat can work well.
A very common way to choose a mat color for your portrait or piece of art is to choose one that will help bring out the dominant color of the piece.
If you choose this method the eye of the viewer will be drawn to the art.
If you mat with those background colors the artist s intended focal point will still draw the eye to it.
Using the dominant colors in the art.
I m using angular 9 and less in my project and i have a mat menu panel where my mat menu item is on that panel i can change the color of my mat menu item a follows.
The short names and long names are character vectors that specify one of eight predefined colors.
The intensities must be in the range 0 1.
New colors for buttons can be submitted simply by using the mat prefix on our custom color class.
But how can i change the background color of the panel i need to change the color of that white space please help.
In general using the dominant colors of the art in the mat draws the eye to the art rather than to the framing.
Consider a pale forest green for a barn in front of a out of focus forest or light blue to complement the distant sky of a cityscape.
Choosing a mat color based on dominant colors.