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

Custom primary color. #9860

Closed
RafaelHovhannisyan opened this issue Jan 13, 2018 · 3 comments
Closed

Custom primary color. #9860

RafaelHovhannisyan opened this issue Jan 13, 2018 · 3 comments
Labels
support: question Community support but can be turned into an improvement

Comments

@RafaelHovhannisyan
Copy link

RafaelHovhannisyan commented Jan 13, 2018

Library doesn't provide API for setting custom primary colors.

const muiTheme = createMuiTheme({
  palette: {
    primary: '#337ab7', // custom color in hex
    error: red
  }
});
@mbrookes
Copy link
Member

mbrookes commented Jan 13, 2018

It does:

const muiTheme = createMuiTheme({
  palette: {
    primary: { 500: '#337ab7' }, // custom color in hex
  error: red
}
});

And is well documented: https://material-ui.com/customization/themes/#palette

And now we've made it even easier: #9794

Please use gitter or StackOverflow to ask questions, and if submitting a confirmed issue, please fill out the issue template provided.

@mbrookes mbrookes added the support: question Community support but can be turned into an improvement label Jan 13, 2018
@miukki
Copy link

miukki commented Dec 17, 2018

{ 500: '#337ab7' } so obvious
and i still have a problem
image
image

@mbrookes
Copy link
Member

@miukki Youe error color is a digit short...

-  error: { main: '#ff000'},
+  error: { main: '#ff0000'},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support: question Community support but can be turned into an improvement
Projects
None yet
Development

No branches or pull requests

3 participants