Skip to content
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

Closed
2 tasks done
Tracked by #10301
lgriffee opened this issue Sep 13, 2023 · 0 comments
Closed
2 tasks done
Tracked by #10301

Add public primitive font-size token layer #10439

lgriffee opened this issue Sep 13, 2023 · 0 comments
Assignees

Comments

@lgriffee
Copy link
Member

lgriffee commented Sep 13, 2023

Tasks

  1. #gsd:36565 untriaged
    lgriffee
  2. #gsd:36565
    lgriffee
@lgriffee lgriffee self-assigned this Sep 13, 2023
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant