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

How can I change colors of a theme? #212

Closed
xikeda opened this issue Apr 16, 2018 · 6 comments
Closed

How can I change colors of a theme? #212

xikeda opened this issue Apr 16, 2018 · 6 comments

Comments

@xikeda
Copy link

xikeda commented Apr 16, 2018

How can I change the theme or the primary/secondary/ etc colors of the RMWC? For instance my tool bar, buttons and button text is purple. How can I change that to blue?

@jamesmfriedman
Copy link
Collaborator

Please read the docs before filing an issue.

https://jamesmfriedman.github.io/rmwc/styling

@xikeda
Copy link
Author

xikeda commented Apr 16, 2018

lol

@xikeda
Copy link
Author

xikeda commented Apr 16, 2018

👎

@xikeda
Copy link
Author

xikeda commented Apr 16, 2018

Read your docs. No help

@jamesmfriedman
Copy link
Collaborator

@xikeda, inspect the root element of html document.

Include this in your own CSS, a style tag, or however you get styles into your app.

:root {
  --mdc-theme-primary: red;
  --mdc-theme-secondary: blue;
  // there are many more of these... refer to the mdc docs on the full list, or just look in your web inspector.
}

What would have helped that you didn't see in the docs about this?

@jamesmfriedman
Copy link
Collaborator

@xikeda I added a little more context in the styling section of the docs, let me know if that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants