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

GESTALT-7528: Spacing Token Matching #33

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

protodave
Copy link
Contributor

Summary

Adds support for matching and linting spacing variables

Development Notes

Spacing variable usage is only applicable for FRAME (and INSTANCE?) nodes with layoutMode = HORIZONTAL | VERTICAL (not NONE).

Spacing variables have the GAP scope.

Object parameters that can use spacing variables, and also the boundVariables property name:

  • itemSpacing - For auto-layout frames with layoutMode set to HORIZONTAL, this is the horizontal gap between children. For auto-layout frames with layoutMode set to VERTICAL, this is the vertical gap between children.
  • counterAxisSpacing - Applicable only on auto-layout frames with layoutWrap set to WRAP. Determines the distance between wrapped tracks.
  • paddingBottom
  • paddingLeft
  • paddingRight
  • paddingTop
  • horizontalPadding - DEPRECATED: Use paddingLeft and paddingRight instead.
  • verticalPadding - DEPRECATED: Use paddingTop and paddingBottom instead.

Note: The Plugin API also includes a inferredAutoLayout property, which has all those except counterAxisSpacing for some reason.

@protodave protodave force-pushed the protodave/GESTALT-7528-spacing-tokens branch from 888b501 to f333403 Compare November 5, 2024 23:50
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.

1 participant