Ask questionstext-opacity does not work with inheritance from parent

This code works:

<div class="text-white text-opacity-50">Faded</div>

This code does not work (opacity is not set):

<div class="text-white">
  <div class="text-opacity-50">Not faded</div>

It's not useful to use a parent in this particular example but when there are many children it can be helpful to use the parent.


Answer questions cybervaldez

Is there a way to stop the variable from being present? (e.g: rgba(160, 174, 192, var(--text-opacity))? It's bloating twin.macro which i'm using to do property animations with. I would prefer to just see rgb(160, 174, 192)


Related questions

No questions were found.
Github User Rank List