You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I’m working on an internal project using Avalon along with PrimeVue and TailwindCSS. I’ve encountered an issue with dynamically applying Tailwind classes related to dark and light mode themes.
Context:
If I add a Tailwind class directly in the component’s template, like in the example below, everything works perfectly when switching between dark and light mode:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I’m working on an internal project using Avalon along with PrimeVue and TailwindCSS. I’ve encountered an issue with dynamically applying Tailwind classes related to dark and light mode themes.
Context:
If I add a Tailwind class directly in the component’s template, like in the example below, everything works perfectly when switching between dark and light mode:
However, when I try to achieve the same behavior dynamically using a
ref
, the dark mode class never works.Example:
In this case, the dark mode styles are not applied at all.
Questions:
Thank you in advance for your assistance!
Beta Was this translation helpful? Give feedback.
All reactions