Material UI v7: use the theme's color functions

Proprietary

Replaces alpha(), lighten() and darken() with theme.alpha(), theme.lighten() and theme.darken(). Ported from the MUI codemod v7.0.0/theme-color-functions.

org.openrewrite.react.mui.v7.theme-color-functions
mod run . --recipe=org.openrewrite.react.mui.v7.theme-color-functions

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.