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

Is it possible to show properties other than primary, secondary and error? #114

Open
TPOborne opened this issue Dec 4, 2019 · 1 comment

Comments

@TPOborne
Copy link

TPOborne commented Dec 4, 2019

I've added a new tertiary property to my theme like the following. Material-UI can handle this but this addon doesnt show it in the panel. It just shows primary, secondary and error.

const someTheme = {
  themeName: 'Another Theme',
  palette: {
      primary: {
        main: '#00bcd4',
        contrastText: '#E0F7FA'
      },
      secondary: {
        main: '#fdd835',
        contrastText: '#FFFFFF'
      },
     tertiary: {
        main: '#f000f0'
      }
  }
};
@usulpro
Copy link
Member

usulpro commented Dec 4, 2019

Hey @TPOborne
It was done just to simplify output. I assumed that users usually have only primary and secondary sections in palette. There are no objections to show other props.
Feel free to send PR to enable that 😃

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