❔ Blazor: darkmode not working
Anyone familiar with the NDC talk 'Building beautiful Blazor apps with Tailwind CSS' by Chris Sainty? He shows a darkmode toggle. When pulling the git repo his example works as demonstrated. When implementing this myself I can't get this to work properly. In the dev tools html view I see the class being added to the html tag. But neither my theme changes or toggle moves. If I open the settings > appearance and set the theme on browser level my app changes theme and I see the toggle moving. My tailwind.config.js has the
darkmode: 'class'
line. I also added a StateHasChanged()
class to no avail. Any suggestions ?1 Reply
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.