Material UI v6: mark dark mode checks in the theme
ProprietaryMarks the reads of theme.palette.mode in the style overrides of a theme, which should use theme.applyStyles(). Ported from the MUI codemod v6.0.0/theme-v6, which rewrites the callbacks into variants; this recipe only marks them, as styled does, and is not repeated in the step recipe.
org. openrewrite. react. mui. v6. theme-v6mod run . --recipe= org. openrewrite. react. mui. v6. theme-v6Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.