-
Notifications
You must be signed in to change notification settings - Fork 6
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
Feat: Inherit Font Family from Neve #9
Comments
Sounds like a good idea, Bogdan. I think something about Fluid Typography was rolled out with WP 6.1, mentioned here and here. Not sure if you are referring to exactly the same thing. But long term, I would keep Typography in sync with the Core approach - as hopefully soon they will add Font Sizes per device, and we should be ready for that. |
I am also optimistic about the fluid typography. The only issue I see is the one mentioned at the end of the article about compatibility with earlier than 6.1 versions. I think it's worth giving this a try @preda-bogdan Thanks for this! |
@JohnPixle cc @mghenciu You can use the build from the PR to play around with the fluid typography and let me know if it works for you. The PR also inherits the font family, font size, line height, and weight from Neve if they've been set there. For the font family, we only import the family if it is already one of the fonts that the theme has available. Let me know your thoughts. |
@mghenciu Thank you for taking the time to look over this. We can increase the Inheriting the button border radius should not be a problem. I will link the changes here. |
@preda-bogdan I tried the build at the demo, but I can hardly see any resizing of the text based on the viewport size 🤔 Also, I think the body text size is now smaller? It was 18px before. |
@JohnPixle I've updated the PR, and fixed the issues that you and Mihai reported. Also if we desire to start the scaling later or sooner we can adjust the viewport max value here: "fluidSize": "calc(var(--wp--custom--typography--root-font-size) * var(--wp--custom--typography--adaptive-ratio) * (100vw/1280))" For sooner we can use cc: @mghenciu This should also better match your use case as I've now preserved the minimum values better. Let me know if this works for you. Thank you! |
@preda-bogdan I just did a quick test and the Typography is looking fluidly good 👍🏻 |
@JohnPixle great! I will merge this to development and sync the design branch with these changes. Then we can continue on that one. Thank you for taking the time to have a look at this. 🚀 |
Awesome, thanks Bogdan! |
The changes are now on |
🎉 This issue has been resolved in version 1.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Inherit Font Families from Neve if previously set in Neve.
When the FSE theme is activated settings related to Typography should be inherited from Neve if present and applied to the default style.
The text was updated successfully, but these errors were encountered: