Currently I am using the following code to add a color to an element using jss.
const styleSheet = theme => ({
root: {
backgroundColor: theme.colors.red,
},
})
I would like to know if exist a function to add opacity based on colortheme.colors.red
.
example smt like:
backgroundColor: color(theme.colors.red, .05),