'How to extend existing material color palette
There are plenty of examples online of how to add additional color palettes for material. However, I cannot find anything for what I wish to do. For our theme, our neutral (grey) colors go from 900 to 0, rather than material's 50.
In short, i wish to modify palette.grey to include an additional property: '0' so that I can use grey.0 in material components.
I've tried doing the following:
interface PaletteColorOptions {
'0': string;
}
interface Color {
'0': string;
}
interface PaletteColor {
'0': string;
}
But none of these seem to work. Is this even possible?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
