We have a relatively nice light theme at the moment. But what if we wanted to offer users the ability to toggle to a darker UI theme? How exactly might we accomplish that, considering that Tailwind classes like
text-blue are scattered throughout our HTML? The answer is to leverage CSS variables. I'll show you how in this episode.
View the source code for this episode on GitHub.
Published on Mar 27th, 2019.
Understand.io is used by hundreds of Laravel developers to find and fix errors.
Sign up for a free 14-day trial now.