components
components copied to clipboard
fix(material/theming): add validation for system-level token overrides
Currently the system-level-colors and system-level-typography mixins do not have validation to ensure all tokens passed in by the user are valid tokens.
Add in validation for these mixins, similar to what is being done for https://github.com/angular/components/blob/main/src/material/core/tokens/_token-utils.scss#L238
Example of invalid usage that should throw an error:
@include mat.system-level-colors($theme, (
foobar: blue,
));