Skip to content

feat(COMPONENT): Schematic to generate all system variables used for each component #31001

Open
@hhsissi

Description

@hhsissi

Feature Description

Hi,

I'd like to suggest creation of a schematic to generate font typography config, exactly like the one for theme_colors:

ng generate @angular/material:theme-color

It would be used like this:

ng generate @angular/material:theme-typography

It would take 2 font names as options, and generate a full configuration with default values, making customization way more simple for us.

Right now, we all have a lot of old classes like mat-body, mat-display- ... etc, and the old typography definition is no longer really useable and we should probably get rid of it asap.

Problem is people are lost, and documentation is way too shallow to be used like it is.
A simple generation of configuration including all necessary tokens for typography would make things very simple, without having to search all over the place for bribes of documentation about this or that.

I hope you'll consider this.

Use Case

This is to help every single Angular M2 project to transition smoothly to Angular M3

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: ng-generateSchematics that generate code in user projectsfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions