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
Due to the order of presets in Tailwind configuration, the final classes will be
.bg-red-100 { background-color:"red" } /* comes from @abc/preset-a */
.bg-blue-100 { background-color:"blue" } /* comes from @abc/preset-b */
.bg-green-100 { background-color:"MediumSeaGreen" } /* comes from both presets, but @abc/preset-b version wins */
As an developer, I would like to be notified when such collision happen. As an example, it could be a key in configuration or list of presets that are not allowed to override each other.
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
Uh oh!
There was an error while loading. Please reload this page.
-
Let's imagine that Tailwind configuration uses two presets –
@abc/preset-a
and@abc/preset-b
.The
@abc/preset-a
configurationThe
@abc/preset-b
configurationDue to the order of presets in Tailwind configuration, the final classes will be
As an developer, I would like to be notified when such collision happen. As an example, it could be a key in configuration or list of presets that are not allowed to override each other.
What do you think about this feature?
Preset prefixes can be used, but they require change of class names inside of components that rely on preset.
Beta Was this translation helpful? Give feedback.
All reactions