-
Notifications
You must be signed in to change notification settings - Fork 1.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
Add public primitive font-size
token layer
#10439
Comments
lgriffee
added a commit
that referenced
this issue
Sep 14, 2023
### WHY are these changes introduced? Fixes #10475 Part of #10439 ### WHAT is this pull request doing? Adds the following values to new public primitive `font-size` token scale: | New Token | Value | Value (in px) | ------------------------- | ------------------------ | ------------------------ | | `--p-font-size-275` | `size[275]` | `11px` | | ~`--p-font-size-300`~ | ~`size[300]`~ | ~`12px`~ | | `--p-font-size-325` | `size[325]` | `13px` | | `--p-font-size-350` | `size[350]` | `14px` | | ~`--p-font-size-400`~ | ~`size[400]`~ | ~`16px`~ | | ~`--p-font-size-500`~ | ~`size[500]`~ | ~`20px`~ | | ~`--p-font-size-600`~ | ~`size[600]`~ | ~`24px`~ | | `--p-font-size-750` | `size[750]` | `30px` | | `--p-font-size-900` | `size[900]` | `36px` | | `--p-font-size-1000` | `size[1000]` | `40px` | > [!NOTE] > The following values were not added since they conflict with existing tokens with the same name. These tokens will have their values updated in the next major version v12: | New Token | Value | Value (in px) | ------------------------- | ------------------------ | ------------------------ | | `--p-font-size-300` | `size[300]` | `12px` | | `--p-font-size-400` | `size[400]` | `16px` | | `--p-font-size-500` | `size[500]` | `20px` | | `--p-font-size-600` | `size[600]` | `24px` |
AnnaCheba
pushed a commit
to AnnaCheba/polaris
that referenced
this issue
Apr 22, 2024
### WHY are these changes introduced? Fixes Shopify#10475 Part of Shopify#10439 ### WHAT is this pull request doing? Adds the following values to new public primitive `font-size` token scale: | New Token | Value | Value (in px) | ------------------------- | ------------------------ | ------------------------ | | `--p-font-size-275` | `size[275]` | `11px` | | ~`--p-font-size-300`~ | ~`size[300]`~ | ~`12px`~ | | `--p-font-size-325` | `size[325]` | `13px` | | `--p-font-size-350` | `size[350]` | `14px` | | ~`--p-font-size-400`~ | ~`size[400]`~ | ~`16px`~ | | ~`--p-font-size-500`~ | ~`size[500]`~ | ~`20px`~ | | ~`--p-font-size-600`~ | ~`size[600]`~ | ~`24px`~ | | `--p-font-size-750` | `size[750]` | `30px` | | `--p-font-size-900` | `size[900]` | `36px` | | `--p-font-size-1000` | `size[1000]` | `40px` | > [!NOTE] > The following values were not added since they conflict with existing tokens with the same name. These tokens will have their values updated in the next major version v12: | New Token | Value | Value (in px) | ------------------------- | ------------------------ | ------------------------ | | `--p-font-size-300` | `size[300]` | `12px` | | `--p-font-size-400` | `size[400]` | `16px` | | `--p-font-size-500` | `size[500]` | `20px` | | `--p-font-size-600` | `size[600]` | `24px` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tasks
font-size
tokens that don't conflict with the names of existing tokens #10475font-size
token values #10476The text was updated successfully, but these errors were encountered: