Material UI v6: mark dark mode checks in styles

Proprietary

Marks the reads of theme.palette.mode, which styles should replace with theme.applyStyles() for dark mode with CSS variables. Ported from the MUI codemod v6.0.0/styled, which rewrites the style callbacks; this recipe only marks them. It also covers sx-prop and theme-v6 in the step recipe.

org.openrewrite.react.mui.v6.styled
mod run . --recipe=org.openrewrite.react.mui.v6.styled

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