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
Most of the single word keywords that are quite common false positives, are already gone on v4:
shadow is replaced by shadow-sm
blur is replaced by blur-sm
So this html will not generate any extra css now:
<p>A shadow made everything blur here.</p>
That is great, but there are still some keywords that should be changed, like resize... I think that v4 is a great candidate to deprecate all those single word keywords that are false positive prone and keep that as an naming rule for tailwind keywords, that is always require a dash. I'm not sure how many single word keywords there are, but the list I've got with the proposed name is:
flex -> flex-row (flex-col should add display: flex)
transform -> remove
resize -> resize-both
border -> border-1
outline -> outline-solid
filter -> remove
May be there are some keywords that are missing on this list, but the idea is clear.
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
-
Most of the single word keywords that are quite common false positives, are already gone on v4:
shadow-sm
blur-sm
So this html will not generate any extra css now:
That is great, but there are still some keywords that should be changed, like
resize
... I think that v4 is a great candidate to deprecate all those single word keywords that are false positive prone and keep that as an naming rule for tailwind keywords, that is always require a dash. I'm not sure how many single word keywords there are, but the list I've got with the proposed name is:flex
->flex-row
(flex-col
should add display: flex)transform
-> removeresize
->resize-both
border
->border-1
outline
->outline-solid
filter
-> removeMay be there are some keywords that are missing on this list, but the idea is clear.
Beta Was this translation helpful? Give feedback.
All reactions