Can we adjust the border color opacity in React when using a theme color that is imported?
For example, if our CSS includes:
borderBottomColor: theme.palette.primary.main
and we are importing the theme with Material UI using makeStyles, is there a way to add transparency to this color?
I know we can specify opacity using RGB format like this:
borderBottomColor: rgba(255, 0, 0, 0.5)
, so is there a similar method for applying opacity to a theme color?