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 where you want to store your design tokens. If the design tokens are bitmaps or vector, it needs a directory else, it needs a file.
-
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.