angular / angular/components

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

Đang mở
#31,001 0 bình luận 1 reaction 0 người được giao Xem trên GitHub
area: ng-generate feature P3
Ngôn ngữ chính
TypeScript
Star
25k
Fork
6.8k
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
91

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách xem xét schematic theme-color hiện có và hướng dẫn cấu hình kiểu chữ cho Angular Material. Xác định cách schematic mới phải chấp nhận hai tên phông chữ, đồng thời xác định đầy đủ các token kiểu chữ và giá trị mặc định mà nó phải tạo ra; công việc được xem là hoàn tất khi lệnh tạo ra một cấu hình đầy đủ có thể sử dụng cho việc di chuyển sang Angular Material 3.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
angular, typescript
Lĩnh vực
tooling
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
30/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.