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

[discovery] Implement composite design tokens #2025

Open
Tracked by #246
adamstankiewicz opened this issue Feb 15, 2023 · 0 comments
Open
Tracked by #246

[discovery] Implement composite design tokens #2025

adamstankiewicz opened this issue Feb 15, 2023 · 0 comments
Assignees
Labels

Comments

@adamstankiewicz
Copy link
Member

As a follow-up to #1992 (#1947), we would like to migrate to using composite tokens similar to what's proposed in the W3C spec for the following tokens types:

  • Shadow
  • Transition
  • Typography
  • Border

By using composite tokens, each component of a style property is explicitly defined as its own attribute as opposed to assuming the value to be a platform-specific implementation (e.g., CSS).

style-dictionary does support composite tokens but its default transforms/filters do no handle them already, so we may need to write custom transformers. There is a collection of useful transformers we might be able to use as a starting point. Examples:

Additional Resources

@adamstankiewicz adamstankiewicz added this to the Design tokens with style-dictionary milestone Feb 15, 2023
@arbrandes arbrandes removed this from the Design tokens with style-dictionary milestone Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants