Using MUI's CSS Variables Mode to Kill Dark-Mode Flash and Speed Up Theme Switching
MUI's cssVariables mode emits design tokens as native CSS custom properties, letting the browser apply dark mode before hydration and switch themes without re-rendering React.