Does tailwind allow the dark variant to work with custom classes?
Consider this simple working example:
<div class="bg-white dark:bg-black">
Hello, world
</div>
The above will apply a black background to the element, but if try to use a custom class, then it won't:
.card-background {
@apply bg-black;
}
<div class="bg-white dark:card-background">
Hello, world
</div>