Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styling custom components #47

Open
gotwig opened this issue Jul 13, 2020 · 1 comment
Open

Styling custom components #47

gotwig opened this issue Jul 13, 2020 · 1 comment
Labels
needs clarification Further information is requested

Comments

@gotwig
Copy link

gotwig commented Jul 13, 2020

Hello,

I realy would like to understand the project better, and would love to hear from your feedback.

Can I use this lib to integrate custom material themes for my custom components in my project?
https://material.angular.io/guide/theming-your-components

The problem with the "official" approach is that it breaks the encapsulation, and I think css vars are much easier, so I could just do something like:

@include variables
color: var(PrimaryColor);

Also I think the first sentence is not very clear :D Im not hear to learn about rainbows :O

Feedback? :)

@johannesjo
Copy link
Owner

Hello @gotwig! I haven't tried this for myself nor I am very familiar with the official approach of component styling (and I never really saw the appeal to be honest), but in general, what your're asking should be possible. This lib mostly works by patching mat-color. The only thing you need to make sure is that this is done before you use it in your custom components.

@johannesjo johannesjo added the needs clarification Further information is requested label Jul 13, 2020
@johannesjo johannesjo changed the title Questions / Issues with Description Styling custom components Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs clarification Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants