-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
How to make button with secondary background color? #79
Comments
Hi @format1981 , You can overwrite theme color by sass. Like this: @use '@material/theme/theme-color' with (
$primary: #6200ee,
$secondary: #018786,
); See theme color sass docs |
Thanx. But i know how to redefine theme colors. |
https://next-material.balmjs.com/#/theme/color At the top of the page you can see 2 buttons: primary and secondary. |
You can use |
I'm having a similar issue that's confusing me. I have a vue component that I can write the following in:
This works fine. However once I try and modify the theme in main.ts:
I can see this new colour work for any BalmUI component, but my component which implements the above scss uses the original theme color. I imagine this is due to the theme override not modifying '@matieral/theme'. I think the above $theme.getThemeClass(style) might work, though I can't figure out how to use it. Any ideas? |
Hi @format1981 , @Kestami,
|
Thanx! It helps. |
Also thanks, this helped me too. Maybe I'm being a noob, is there anywhere in the documentation that tells you how to use the "API" section? I would have never guessed that they're used in the way described above. It might be worth adding a bit on the documentation around the general API usage? |
@Kestami, thank you for your suggestions, I will gradually update and improve the document :) |
How to make button with secondary background color?
I expect something like
<ui-button secondary>Label</ui-button>
The text was updated successfully, but these errors were encountered: