Skip to content

refactor(tokens): Remove unnecessary token data#11915

Merged
matgalla merged 21 commits intodevfrom
matgalla/remove-unnecessary-token-data
Apr 9, 2025
Merged

refactor(tokens): Remove unnecessary token data#11915
matgalla merged 21 commits intodevfrom
matgalla/remove-unnecessary-token-data

Conversation

@matgalla
Copy link
Copy Markdown
Contributor

@matgalla matgalla commented Apr 9, 2025

Related Issue: #11391

Summary

Since #11655 allows us to build the final variables with the base token info, we don't need the excess token metadata. This PR removes all the fields within attributes from core and semantic tokens aside from the category field, which we will keep to assist with niche token instances and documentation purposes.

Criteria for completion

  • Remove attributes (except for category) from all semantic and core tokens
  • Ensure that organization and token values are retained
  • Ensure that the token build process is unaffected

Previous steps

Next steps

@matgalla matgalla added the refactor Issues tied to code that needs to be significantly reworked. label Apr 9, 2025
@matgalla matgalla added this to the 2025-04-29 - Apr Milestone milestone Apr 9, 2025
@matgalla matgalla self-assigned this Apr 9, 2025
@jcfranco jcfranco added the pr ready for visual snapshots Adding this label will run visual snapshot testing. label Apr 9, 2025
@jcfranco
Copy link
Copy Markdown
Member

jcfranco commented Apr 9, 2025

+@macandcheese for doc site tooling consideration.

"context": "",
"mode": ""
}
"category": ""
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Side note: should this be populated in a follow-up PR?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For sure. At the very least, these should follow the same system as the other category fields across tokens. I'll populate this in a separate PR.

Copy link
Copy Markdown
Contributor

@macandcheese macandcheese left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - just a request to preserve "tier" as well.

@jcfranco
Copy link
Copy Markdown
Member

jcfranco commented Apr 9, 2025

Looks good - just a request to preserve "tier" as well.

tier is still under calcite-schema. It's added by the build now instead of the token source.

@jcfranco jcfranco marked this pull request as ready for review April 9, 2025 18:11
@jcfranco jcfranco requested a review from alisonailea as a code owner April 9, 2025 18:11
@matgalla matgalla merged commit 5363a1f into dev Apr 9, 2025
16 checks passed
@matgalla matgalla deleted the matgalla/remove-unnecessary-token-data branch April 9, 2025 19:09
benelan pushed a commit that referenced this pull request May 14, 2025
**Related Issue:** #11391 

## Summary
Since #11655 allows us to build the final variables with the base token
info, we don't need the excess token metadata. This PR removes all the
fields within `attributes` from core and semantic tokens aside from the
`category` field, which we will keep to assist with niche token
instances and documentation purposes.

## Criteria for completion
- [x] Remove `attributes` (except for `category`) from all semantic and
core tokens
- [x] Ensure that organization and token values are retained
- [x] Ensure that the token build process is unaffected

## Previous steps
- [x] #11852 

## Next steps
- Add missing core color tokens
- Fix incorrect core color values
- Audit the structural differences between tokens and Figma variables
- Restructure tokens to align with Figma variables where necessary
- Address #10050 
- Address #11565 
- Address #11581 
- Address #11725 
- Address #11903 
- Audit the value differences between tokens and Figma variables (mainly
for percentages and typography)
- Finalize token and Figma variable values with Calcite designers and
developers
- Update token values to align with Figma variables where necessary
- Document the new token creation and modification process

---------

Co-authored-by: JC Franco <jfranco@esri.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr ready for visual snapshots Adding this label will run visual snapshot testing. refactor Issues tied to code that needs to be significantly reworked.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants