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
Hi, I was wondering how to safelist dynamic generated tailwind classes.
Currently I hardcode an element with theses classes to generate them but I would rather prefer a safelist option somewhere. Is something like this possible?
Classes that need to be compiled: w-[100px] w-[140px] w-[180px] w-[220px] w-[260px] w-[300px]
Current solution with a hidden element: <span class="hidden w-[100px] w-[140px] w-[180px] w-[220px] w-[260px] w-[300px]"></span>
The text was updated successfully, but these errors were encountered:
Description
Hi, I was wondering how to safelist dynamic generated tailwind classes.
Currently I hardcode an element with theses classes to generate them but I would rather prefer a safelist option somewhere. Is something like this possible?
Classes that need to be compiled:
w-[100px] w-[140px] w-[180px] w-[220px] w-[260px] w-[300px]
Current solution with a hidden element:
<span class="hidden w-[100px] w-[140px] w-[180px] w-[220px] w-[260px] w-[300px]"></span>
The text was updated successfully, but these errors were encountered: