Skip to content

[discovery] Implement composite design tokens  #2025

Open
@adamstankiewicz

Description

@adamstankiewicz

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions