adopted-ember-addons / adopted-ember-addons/ember-paper

Support 'real' theming

Đang mở
#360 0 bình luận 12 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
JavaScript
Star
879
Fork
327
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Currently Ember Paper allows developers to override some default colors, like the primary and warn colors. However, there are a few extension points that would be nice to have. This issue is basically here to track the idea and discussion.
##### 1. EP could expose a `theme` service that allows users to control the theme's colors at runtime.

This would be useful to, for example, switch between dark and light themes, or have a different color scheme for different parts of an app.
##### 2. Components could expose a `theme` or `color` attribute that allows local overriding of colors

For example, when using `{{#paper-button color='indigo'`, the button's color would be indigo. This allows for greater control outside of the existing `primary=true`, `accent=true` and `warn=true`. When used on something like `paper-card`, the card's content should adapt to still be readable.

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

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

Đánh giá

Issue này chưa được đánh giá.

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.