components icon indicating copy to clipboard operation
components copied to clipboard

My own palette in theme

Open S-Johny opened this issue 10 years ago • 2 comments

Bug, feature request, or proposal:

I want to add my own palette in theme but it seems I need opacity palette to which I don't know how to include if there is a possible way to do it. Maybe there is another way how to use my own palette but I don't know about it. I used this guide for theme https://github.com/angular/material2/blob/master/docs/theming.md

What is the expected behavior?

You should be able to include your own palette.

What is the current behavior?

You can use only predefined palettes.

What is the use-case or motivation for changing an existing behavior?

People can use their own pallets for styling, so they don't need to stick with predefined palettes

S-Johny avatar Oct 21 '16 10:10 S-Johny

@Layyy you can define your own palette already. It just has to match this data structure: https://github.com/angular/material2/blob/master/src/lib/core/theming/_palette.scss#L12

jelbourn avatar Oct 21 '16 15:10 jelbourn

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.