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 spacing tokens #2579

Draft
wants to merge 28 commits into
base: develop
Choose a base branch
from
Draft

Conversation

vnys
Copy link
Member

@vnys vnys commented Oct 12, 2022

Autolayout container tokens for ensuring the calculated height is dividable with 4, and the baseline grid in the textframe is aligned with the layout grid.

Calculations in https://docs.google.com/spreadsheets/d/15l1D3FA-35b6hXrYrRupOH0uBu1P2Ukm28s3kqP1GJ0/edit?usp=sharing

There are some issues with referencing other tokens, so the paddingTop token is longer than it should need to be. I’ll ask for assistance in the Figma Tokens Slack channel on Monday, too busy with EqU today.

Example of 14px font-size on 16px line-height with a padding of 12px. Using the calculations from the spreadsheet gives us a paddingTop of 11px and a paddingBottom of 9px which lands the baseline grid on the third gridline from the bottom of the frame.

image

The next step is scripting the generation of the scales to avoid time consuming and error prone manual work.

See the Figma branch for more info.

resolves #2575

@vnys vnys force-pushed the feature/vnys-2575-spacing-tokens branch from 7bc887c to d628b52 Compare October 25, 2022 09:12
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

Successfully merging this pull request may close these issues.

Create spacing tokens
1 participant