-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Base styles: Add type tokens. #65418
Conversation
Size Change: +405 B (+0.02%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
This reverts commit 823a569.
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
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.
Leaving some code-related comments, as I don't believe that any of these changes should actually cause "runtime" changes
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.
LGTM 🚀
packages/base-styles/_mixins.scss
Outdated
@mixin text-heading() { | ||
font-family: $font-family-headings; | ||
font-weight: $font-weight-medium; | ||
} | ||
|
||
@mixin text-body() { | ||
font-family: $font-family-body; | ||
font-weight: $font-weight-regular; | ||
} |
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.
Since these mixins are (I believe) meant to be only used in this file (at least for now), we could prefix their name with a _
to better indicate their "private" nature — ie. _text-heading
and _text-body
What
_variables.scss
a bit, accounting for the new tokens.$default-font
and$default-line-height
in favor of the new tokens.This PR intentionally does not touch the variables in config-values.js. You can read about why in #64340 (comment).
Why
See #64340.