Rules are a set of parameters that dictates how to pull design tokens. By Using them, you will be able to customize how the CLI pulls your design tokens.
Each rule is composed of several properties:
-
The name of your rule.
-
The path in your project where you want Specify to generate your design data. If you want to pull bitmap, vector or font design data types you must set a directory (Learn more ↗).
-
The filter you want to apply when getting the tokens. For now, you can only specify a type.
-
The parsers you want to apply to transform your design tokens. For further details see
Parsers.
Please note that each rule overrides the file while writing.