The button toggles a data attribute value on the <html> element.
The website styles depend on that value. The loaded stylesheet contains styles for both the light and dark mode, to ensure immediate switch of the appearance.
Regards,
Dimo
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.