How can I set up material light and dark mode in a MAUI or Blazor standalone app?

There isn't an easy way to dynamically change css files with index.html or render a Blazor component. You can try using RadzenTheme in your layout instead.