Material UI v6: mark dark mode checks in styles
ProprietaryMarks 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. styledmod run . --recipe= org. openrewrite. react. mui. v6. styledInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.