angular / angular/components

feat(material-theme): Add “match color tones” option to generator

Abierto
#32,526 4 comentarios 17 reacciones 0 asignados Ver en GitHub
area: ng-generate feature P3
Lenguaje dominante
TypeScript
Estrellas
25k
Forks
6.8k
Merge medio
1 d 8 h
PR fusionados (30 d)
91

Descripción

### Feature Description

`ng generate @angular/material:theme-color` should expose the Material Theme Builder’s “Match color” / color fidelity toggle so that generated palettes can stay faithful to the input colors. This toggle is part of the official Material guidance “Use color fidelity” in https://m3.material.io/styles/color/advanced/adjust-existing-colors#cb49eeb4-3bbd-4521-9612-0856c27f91ef, yet the Angular schematic doesn’t offer an equivalent flag today.

### Use Case

Brand-driven teams rely on exact CI tones, so palette generation has to produce identical output whether we use the Theme Builder UI or the Angular CLI schematic. On https://material-foundation.github.io/material-theme-builder/ the toggle is explicitly labeled “Color match”, and it becomes obvious there how essential the option is: without it, your reference HEX values are brightened or dulled, which immediately violates any strict corporate color guide. Bringing the same “color match”/color-fidelity toggle to `ng generate @angular/material:theme-color` would prevent these shifts, eliminate manual corrections, and keep Angular projects in line with the officially documented Material workflow.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza en el punto de entrada del schematic `theme-color` de Angular Material utilizado por `ng generate`; sigue cómo se definen sus opciones de paleta y cómo se transmiten los colores generados. Añade el interruptor de coincidencia o fidelidad de color y, después, verifica que las paletas generadas conserven los colores de entrada cuando está habilitado y mantengan el comportamiento existente cuando no lo está.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
angular, typescript
Área
cli, tooling
Tipo de issue
Nueva funcionalidad
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
62/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.