🦹♂️ Twin blends the magic of Tailwind with the flexibility of css-in-js (emotion, styled-components, solid-styled-components, stitches and goober) at build time.
MIT License
7.92k
stars
183
forks
source link
DaisyUI 3.x Tooltip dynamic variant not working #807
Sorry for the vague title, but I am not entirely sure what causes this error.
In DaisyUI 3.x the tooltip color variants are set by changing two css variables.
.tooltip-success for example sets them like this, overriding the default colors:
Sorry for the vague title, but I am not entirely sure what causes this error.
In DaisyUI 3.x the tooltip color variants are set by changing two css variables. .tooltip-success for example sets them like this, overriding the default colors:
My code used to work in DaisyUI 2.x, but I think it used a different approach, here is a snippet of the code I use:
The variant styles are not being injected. I have included the workaround code, which works, but is not dynamic.
Note: even hardcoding the first style line like so, will not work: