angular / angular/components

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

Open
#31,001 0 comments 1 reaction 0 assignees View on GitHub
area: ng-generate feature P3
Dominant language
TypeScript
Stars
25k
Forks
6.8k
Avg merge
1d 8h
Merged PRs (30d)
91

Description

### 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

Contributor guide

Open the contributing guide

Research direction

Start by examining the existing theme-color schematic and the typography configuration guidance for Angular Material. Define how the new schematic should accept two font names and identify the complete set of typography tokens and default values it must generate; done means the command produces a usable full configuration for Angular Material 3 migration.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.