-
Notifications
You must be signed in to change notification settings - Fork 20
feat(processCSSVariables
): add font-prefixed-only
option
#515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
danielroe
merged 8 commits into
nuxt:main
from
qwerzl:feat/css-variable-font-prefixed-only
Mar 8, 2025
Merged
feat(processCSSVariables
): add font-prefixed-only
option
#515
danielroe
merged 8 commits into
nuxt:main
from
qwerzl:feat/css-variable-font-prefixed-only
Mar 8, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 tasks
Codecov ReportAll modified and coverable lines are covered by tests β
Additional details and impacted files@@ Coverage Diff @@
## main #515 +/- ##
==========================================
+ Coverage 82.84% 83.48% +0.63%
==========================================
Files 13 13
Lines 1067 1072 +5
Branches 264 271 +7
==========================================
+ Hits 884 895 +11
+ Misses 178 172 -6
Partials 5 5 β View full report in Codecov by Sentry. π New features to boost your workflow:
|
Sounds good to me! We can enable by default + move out of experimental π |
@danielroe This PR is ready for review. I've also added the tests. |
danielroe
approved these changes
Mar 8, 2025
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
π Linked issue
Related to #468
β Type of change
π Description
This PR adds a
font-prefixed-only
option toexperimental.processCSSVariables
to only process variables starting with--font
as Tailwind v4 and Unocss-preset-next are now both utilizing variables followed by this pattern. This would solve some performance issues introduced by processing all the CSS variables.I also propose to move
processCSSVariables
out ofexperimental
and make it default tofont-prefixed-only
.