How to style the <details> tag when open using Tailwind

Viewed 877

In css I use this to style another element when the tag is open. How is it possible to do the same using Tailwind ?

.filesParent[open] .class {
// styles..
 }
2 Answers

I ended up using the @apply rule in my Tailwind.scss file

.FilesParent[open] .class {
  @apply text-red-violet-500
}
Related