<div class="
w-full
h-96
text-white
bg-black
after:relative
after:-top-8
after:content-['circular_dependency_test']
"
></div>
.bg-black {
&:after {
@apply bg-black;
}
}
You cannot @apply
the bg-black
utility here because it creates a circular dependency.
[class~='bg-black'] {
&:after {
@apply bg-black;
}
}
<div class="
bg-black
after:bg-black
"
></div>