关于[Persisting your users preferences using Blazor and Local Storage]的摘要:
In the last post we saw how you can use TailwindCSS with Blazor to toggle “dark mode” on and off in your web applications. But it’s a pain for your users to have to do this every time. It would be much nicer if this setting was persisted in some way. That way, they’d get the same “mode” each and every time they visit your site.
原文地址: https://jonhilton.net/blazor-tailwind-dark-mode-local-storage/