amzn/style-dictionary

View on GitHub
scripts/handlebars/templates/transform_groups.hbs

Summary

Maintainability
Test Coverage
# Transform Groups

Transform Groups are a way to easily use multiple transforms at once. They are an array of transforms. You can define a custom transform group with the [`registerTransformGroup`](api.md#registertransformgroup).

You use transformGroups in your config file under platforms > [platform] > transformGroup

```json
{
  "source": ["properties/**/*.json"],
  "platforms": {
    "android": {
      "transformGroup": "android"
    }
  }
}
```

----

## Pre-defined Transform groups

[lib/common/transformGroups.js](https://github.com/amzn/style-dictionary/blob/master/lib/common/transformGroups.js)

{{#namespace name="TransformGroups"}}
{{>members~}}
{{/namespace}}