material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

[Documentation] Where is primary2Color etc.. used?

Open BlockChange opened this issue 10 years ago • 2 comments

So, when using the theming, primary1Color is used for primary button colors, and accent1Color for the secondary color.

  1. Where is primary2Color used? When I search the codebase it is never used except in the documentation about colors (http://www.material-ui.com/#/customization/themes)
  2. It is never explained in the docs which colors are used in the theme and which ones are not.

Is it the intention for you to use it yourself via this.context?

It's confusing since it is named ..1.., ..2.. and ..3.. implying that they are somehow used together or are related, while right now it seems that 2 and 3 are nothing more than an example, thus, again having similarly named items, where only 1 of them has an actual hard-coded system functionality, and the others don't. Doesn't make logical sense to me. A new used would assume they are system-used colors.

  1. Why not use secondary1Color instead of accent1Color?
    • Perhaps add a third accent option to buttons? (https://github.com/callemall/material-ui/issues/4150)

BlockChange avatar Sep 30 '16 12:09 BlockChange

When I search the codebase it is never used except in the documentation about colors

It's used in DatePicker and the TimePicker with styles/getMuiTheme.

oliviertassinari avatar Oct 12 '16 21:10 oliviertassinari

I don't know the logic behind those choices. Hopefully, we have improved the theme variables on the next branch and we will make 💡 choices when reimplementing the DatePicker and the TimePicker.

oliviertassinari avatar May 21 '17 16:05 oliviertassinari