There is no surface color in the palette of createMuiTheme
See original GitHub issueHow can I define surface
color in the palette of createMuiTheme
theme? It looks that your theme doesn’t have surface
and on surface
colors.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:5 (3 by maintainers)
Top Results From Across the Web
There is no surface color in the palette of createMuiTheme
It looks that your theme doesn't have surface and on surface colors.
Read more >material-ui createMuiTheme palette type dark does not ...
I have set the palette type: dark in createMuiTheme and it changes the background color to dark, which is good. But the text...
Read more >Theming - Material UI - MUI
The theme specifies the color of the components, darkness of the surfaces, ... It allows you to customize all design aspects of your...
Read more >How to use the @material-ui/core.createMuiTheme function in ...
Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues...
Read more >Create or delete a custom theme color - Microsoft Support
You can create a customized color scheme, also known as theme colors, in PowerPoint and use it in other Office applications. Find a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah right, then you seek #18309. The closest we have is
theme.palette.background.paper
(Surface) andtheme.palette.background.default
(Background).@oliviertassinari I don’t think this issue is same as #18309. @Ashkanph’s question is about how to define colors like
surface
andonSurface
, as described by the material design spec here: Surface, Background and Error Colors.I wish that the documentation for customizing the palette would explain how to set these colors. Indeed, I can also see references to
theme.palette.background...
, however, if these would be documented thoroughly here, that would be great.According to my observation, these aren’t put into the documentation for a reason. However, the Material Design spec clearly defines what these colors are and how they are used. Why not put it in the documentation?