Add back fill-current and stroke-current #6357
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I created a PR instead of an issue due to the small change. Feel free to close if undesired or to keep it as a space for discussion if unsure. 😊
I noticed that the
fill-current
andstroke-current
utilities were removed in #5933.Despite the full color palette being available for the fill and stroke properties, I think it's important to keep the
-current
versions because every single design system I worked on uses those values for icons meant to be placed within buttons, etc. The icons should change their color if the text color is changed. This is especially important in component-based UI frameworks where a className can be passed into a component.It's also possible to put these into the project-specific Tailwind config but maybe it makes sense to keep those in the default config since they were present before and don't cause a penalty on the runtime if they aren't used.