-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Support custom units on theme.json #25217
Conversation
The dev note is needed because it's opt-out now. |
Size Change: +34 B (0%) Total Size: 1.2 MB
ℹ️ View Unchanged
|
@youknowriad Reviewing now! 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@youknowriad Amazing! Moving things to the theme.json
way is a breath of fresh air. Tested this locally, and it is working. I tried both disabling, adding custom units, and using just the default settings.
It was helpful for me to see the conversion of add_theme_supports
to the new editorFeature
method via theme.json
.
Thanks a bunch!
Related #20588
Alternative to #24873
Similar to #24761 but for custom units.
The idea of this PR is to support configuring custom unit support from theme.json.
Testing instructions
spacing.units
path.custom-units
theme support flag.