Material-ui: Custom Shadow Color for Components

Created on 3 Jul 2017  路  1Comment  路  Source: mui-org/material-ui

Description

It will be nice to have not a globally defined shadow style but customizable one for difference components and different situations.

Images & references

For example in my case I'd like a different shadow color for different kind of informative messages wrapped in a Paper component: red for important information and green for just some not that important information. Here is a screenshot of desired state:

image

question

>All comments

The shadows are generated thanks to that file shadows.js. Material-UI expose enough customization power to achieve what you are describing. You might like that thread https://github.com/callemall/material-ui/issues/6130#issuecomment-312686660.

Was this page helpful?
0 / 5 - 0 ratings