| figma-tokens-config.js |
Determines if a given value is an arbitrarily deeply nested object
that satisfies the following conditions:
- Each object in the nesting hierarchy has exactly one key-value pair.
- The last key in the nesting hierarchy is "default".
- The value associated with the "default" key is a primitive (not an object).
- The value associated with the "default" key is not "currentColor".
@param {object} value - The value to check, expected to be an object.
@returns {boolean} Returns `true` if the object matches the criteria,
|
23441 |
- |
| tokens-config.js |
@typedef {object[]} TokenCategories
@property {string} name - A name used to group tokens into a category for storybook/stylelint to reference.
@property {string[]} alternateNames - Names not matching standard token naming conventions (e.g. "width" instead of "size").
@property {string[]} purposes - What the token category is used for, either semantic tokens used by stylelint or tokens to be demonstrated in storybook.
|
20438 |
- |