-
Notifications
You must be signed in to change notification settings - Fork 567
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
docs(format): add info about filtering and format configuration #312
Conversation
@@ -31,10 +31,57 @@ You use formats in your config file under platforms > [platform] > files > [file | |||
|
|||
There is an extensive (but not exhaustive) list of [included formats](#pre-defined-formats) available in Style Dictionary. | |||
|
|||
### Format configuration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was just to comment and say this is a great new feature, then looked at my code and fount I am already doing this. 🙈
@@ -27,10 +27,57 @@ You use formats in your config file under platforms > [platform] > files > [file | |||
|
|||
There is an extensive (but not exhaustive) list of [included formats](#pre-defined-formats) available in Style Dictionary. | |||
|
|||
### Format configuration | |||
|
|||
Formats are can take configuration to make them more flexible. This allows you to re-use the same format multiple times with different configuration or to allow the format to use data not defined in the tokens themselves. To configure a format add extra attributes on the file object in your configuration like so: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formats are can take configuration
docs/formats.md
Outdated
@@ -31,10 +31,57 @@ You use formats in your config file under platforms > [platform] > files > [file | |||
|
|||
There is an extensive (but not exhaustive) list of [included formats](#pre-defined-formats) available in Style Dictionary. | |||
|
|||
### Format configuration | |||
|
|||
Formats are can take configuration to make them more flexible. This allows you to re-use the same format multiple times with different configuration or to allow the format to use data not defined in the tokens themselves. To configure a format add extra attributes on the file object in your configuration like so: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formats are can take configuration
Issue #, if available: #303 #297
Description of changes: Adding documentation in the Formats section around using filters and format configuration.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.