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

Tokens: Add XFN Component Tokens #3793

Merged
merged 37 commits into from
Oct 16, 2024

Conversation

rlingineni
Copy link
Contributor

Summary

This is a working system for component tokens.

Adding new component tokens to the comp folder will automatically be picked up by the build system and outputted to the relevant platform outputs.

This is the hierarchy for component token overrides.
image

What changed?

StyleDictionary provides two classes of inputs for tokens: sources and includes.

This PR migrates all existing sources to the includes property, and then an override occurs with the corresponding platform file with web, mobile or ios.json

At a high level, what changes does this PR introduce?

Why?

We needed a better system for rollout component token updates. We also anticipate that component tokens will be duplicated and different across platforms in terms of their values. Hence we needed a better system to support overrides.

Links

  • Jira
  • [TDD](link to Paper doc)
  • [Figma](link to Figma file)

Checklist

  • Added unit tests
  • Added documentation + accessibility tests
  • Verified accessibility: keyboard & screen reader interaction
  • Checked dark mode, responsiveness, and right-to-left support
  • Checked stakeholder feedback (e.g. Gestalt designers, relevant feature teams)

@rlingineni rlingineni requested a review from a team as a code owner October 2, 2024 23:13
Copy link

netlify bot commented Oct 2, 2024

Deploy Preview for gestalt ready!

Name Link
🔨 Latest commit a6a7c11
🔍 Latest deploy log https://app.netlify.com/sites/gestalt/deploys/671041ed8892f0000835ee04
😎 Deploy Preview https://deploy-preview-3793--gestalt.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@rlingineni rlingineni added patch release Patch release minor release Minor release and removed patch release Patch release labels Oct 8, 2024
@rlingineni rlingineni merged commit f691801 into pinterest:master Oct 16, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor release Minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants