DEV Community

Thiago
Thiago

Posted on

Manipulate fade backgroundColor material ui theme.

I was looking for a way to manipulate fade colors from my material ui theme. So I found this solution:

import { fade } from '@material-ui/core/styles/colorManipulator';

then in your styles:

backgroundColor: fade(theme.palette.secondary.main, 0.1),

Top comments (0)