feat(COMPONENT): Design Tokens for Accessing Theme Colors for All Color Tones as Variables at Runtime #30010
Labels
feature
This issue represents a new feature or feature request rather than a bug or bug fix
needs triage
This issue needs to be triaged by the team
Feature Description
This issue is related to this issue:
#27369
Angular 19 is adding system design tokens that provide some of the colors in the created theme.
It would be nice if Angular supplemented this with named design tokens for all the color tones in the color palettes.
So for example if we want the system primary color (Which I think is color tone 40 ) we could do this ( This is a design token that comes with Angular 19 Material Design 3):
But if we want a different color tone ( Lets say number 10) this is still something we would have to use scss getters for. So for example if we wanted to do something like this:
We would have to generate those design tokens ourselves, and each project might do that a little differently, so it would be nice if Angular had a SASS utility mixin that could do this for us.
Use Case
Accessing color palette tones by number at runtime.
The text was updated successfully, but these errors were encountered: