Material UI v6: mark dark mode checks in the sx prop

Proprietary

Marks the reads of theme.palette.mode, which an sx callback should replace with theme.applyStyles(). Ported from the MUI codemod v6.0.0/sx-prop, which rewrites the callbacks; this recipe only marks them, as styled does, and is not repeated in the step recipe.

org.openrewrite.react.mui.v6.sx-prop
mod run . --recipe=org.openrewrite.react.mui.v6.sx-prop

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