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
In practice, the code above the export is much longer — on a recent project, about 250 lines. (Beside the point but, for anyone thinking "that's breaking the Tailwind idiom, don't safelist that much!", this is to support dynamic styles —e.g. CMS editors selecting a color from a dropdown— and the UI library —e.g. having a page that shows the design system's typography options.)
My config file would look more "standard" (theme values right in the theme object not bound outside it), and I'd do less scrolling, if safelist knew about theme, like theme and plugins do. I propose supporting this:
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
-
A common need for me is to
safelist
classes with apattern
built out of something in the theme. Generic example:In practice, the code above the export is much longer — on a recent project, about 250 lines. (Beside the point but, for anyone thinking "that's breaking the Tailwind idiom, don't safelist that much!", this is to support dynamic styles —e.g. CMS editors selecting a color from a dropdown— and the UI library —e.g. having a page that shows the design system's typography options.)
My config file would look more "standard" (theme values right in the theme object not bound outside it), and I'd do less scrolling, if
safelist
knew abouttheme
, liketheme
andplugins
do. I propose supporting this:Beta Was this translation helpful? Give feedback.
All reactions