Skip to content

Commit 844dea7

Browse files
bengiejorenbroekema
authored andcommitted
docs: add usesDtcg to createPropertyFormatter and formattedVariables
1 parent ea0ec73 commit 844dea7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/src/content/docs/reference/Utils/format-helpers.md

+2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ which uses: prefix, indentation, separator, suffix, and commentStyle.
5454
| `options.format` | `string` | Available formats are: 'css', 'sass', 'less', and 'stylus'. If you want to customize the format and can't use one of those predefined formats, use the `formatting` option |
5555
| `options.formatting` | `FormattingOptions` | Custom formatting properties that define parts of a declaration line in code. The configurable strings are: `prefix`, `indentation`, `separator`, `suffix`, `lineSeparator`, `fileHeaderTimestamp`, `header`, `footer`, `commentStyle` and `commentPosition`. Those are used to generate a line like this: `${indentation}${prefix}${token.name}${separator} ${prop.value}${suffix}`. The remaining formatting options are used for the fileHeader helper. |
5656
| `options.themeable` | `boolean` | Whether tokens should default to being themeable. Defaults to false. |
57+
| `options.usesDtcg` | `boolean` | Whether tokens use the DTCG standard. Defaults to `false` |
5758

5859
Example:
5960

@@ -127,6 +128,7 @@ This is used to create lists of variables like Sass variables or CSS custom prop
127128
| `options.outputReferences` | `boolean \| OutputReferencesFunction` | Whether or not to output references. You will want to pass this from the `options` object sent to the format function. Also allows passing a function to conditionally output references on a per token basis. |
128129
| `options.formatting` | `Object` | Custom formatting properties that define parts of a comment in code. The configurable strings are: `prefix`, `lineSeparator`, `header`, and `footer`. |
129130
| `options.themeable` | `boolean` | Whether tokens should default to being themeable. Defaults to `false`. |
131+
| `options.usesDtcg` | `boolean` | Whether tokens use the DTCG standard. Defaults to `false` |
130132

131133
Example:
132134

0 commit comments

Comments
 (0)