Skip to content

feat: support axis-specific padding component sub-tokens - #165

Closed
zachshallbetter wants to merge 0 commit into
google-labs-code:mainfrom
zachshallbetter:main
Closed

feat: support axis-specific padding component sub-tokens#165
zachshallbetter wants to merge 0 commit into
google-labs-code:mainfrom
zachshallbetter:main

Conversation

@zachshallbetter

Copy link
Copy Markdown
Contributor

Implemented support for axis-specific padding properties (paddingX and paddingY) inside component token definitions (resolves Issue #160).

Background & Motivation

By default, the linter and spec support a uniform padding sub-token for components. However, asymmetric layouts (e.g., text inputs with different vertical and horizontal offsets) are standard in production design systems. Adding paddingX and paddingY addresses this capability gap natively.

Changes

  • Configuration:
    • Add paddingX and paddingY to the recognized component_sub_tokens schema list in spec-config.yaml.
  • Test Coverage:
    • Add validation tests in broken-ref.test.ts verifying that component definitions containing paddingX and paddingY do not emit unrecognized sub-token warnings.
  • Documentation:
    • Update the valid component properties list in README.md.
    • Regenerate docs/spec.md using the spec compiler.

@zachshallbetter

zachshallbetter commented Aug 11, 2026

Copy link
Copy Markdown
Contributor Author

Ignore this mess. I merged from main instead of the feat branch. *Oops.

See PR #166

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