Releases: lukasoppermann/design-tokens
📦 New feature: support for variants and groups
Breaking Change (likelihood low)
The update is a potential breaking change as items that have a valid token name and were not exported due to being within a group will ow be exported.
Features
- supporting variants (name is derived from the main variant name combined with all property names)
- prefix a property with a
_
(underscore) to let the plugin ignore it for tokens
- prefix a property with a
- tokens that are nested within group are now exported
- tokens that are nested within frames are now exported
🎉 Complete UI rewrite to use webpack
Using webpack
This allows us to extract the UI JS into individual modules.
Show better errors when send to server fails
This update also fixes #72 and now the plugin shows different errors depending on the response from github (server) when sending tokens.
Details about the errors was added to the readme error section
Even though it is a major update due to the code change, it should not break anything in the code export part.
Fix: Remove comments instead of using null
v2.1.3 remove comments instead of using null
Added error messages for wrong token names
If the user chooses a token name that results into an invalid value when run through the name conversion, an error message will be shown in figma.
Fix: UX copy
v2.1.1 ux fix
🎉 New Feature: Name Conversion
Feature release:
New option Name Conversion
available in settings.
The option allows the user to choose between default
, camelCase
and kebab-case
for the conversion of the token names when creating the json file.
Improved font style export
New feature
- new values added to font property (https://github.com/lukasoppermann/design-tokens#figma-style-design-tokens)
- fontWeight – numeric value for font weight between 100 and 900
- fontStyle – italic, oblique or normal
- fontStretch – normal, condensed or expanded
- fontStyleOld – original value from figma's fontStyle
Breaking change
- the old fontStyle value was replaced with the new one (one of the three values italic, oblique or normal)
This fixes #55 by introducing a lookup table and splitting font style into weight, style and stretch
📏 Spacing tokens
- you can now create spacing tokens using the
auto layout
feature
🏎 Motion Tokens
Feature
- You can now add motion tokens, read more in the docs
Improvements
- Added more tests to keep code quality high
Adding tests for extractors & some bugfixes
Changes:
- added tests for all extractors
Breaking Changes:
strokeMiterAngle → strokeMiterLimit (bugfix)
Fixes:
- added category to
border
to borders - added type string to pattern: grid
- added category to
font
to fonts