tokens-bruecke 2.8.0 → 2.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,29 +19,48 @@ jobs:
19
19
  id: release
20
20
  with:
21
21
  token: ${{ secrets.GITHUB_TOKEN }}
22
- release-type: node
22
+
23
23
  - name: Checkout
24
- uses: actions/checkout@v2
24
+ uses: actions/checkout@v4
25
+ if: ${{ steps.release.outputs.release_created }}
25
26
 
26
27
  - name: Install pnpm
27
28
  uses: pnpm/action-setup@v4
29
+ if: ${{ steps.release.outputs.release_created }}
30
+
31
+ - name: Get pnpm store directory
32
+ if: ${{ steps.release.outputs.release_created }}
33
+ shell: bash
34
+ run: |
35
+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
36
+
37
+ - name: Setup pnpm cache
38
+ uses: actions/cache@v4
39
+ if: ${{ steps.release.outputs.release_created }}
28
40
  with:
29
- run_install: false
41
+ path: ${{ env.STORE_PATH }}
42
+ key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
43
+ restore-keys: |
44
+ ${{ runner.os }}-pnpm-store-
30
45
 
31
46
  - name: Install Node.js
32
47
  uses: actions/setup-node@v4
48
+ if: ${{ steps.release.outputs.release_created }}
33
49
  with:
34
50
  node-version: 'lts/*'
35
- cache: 'pnpm'
36
51
  registry-url: 'https://npm.pkg.github.com'
37
52
 
38
53
  - name: Build package
39
54
  run: pnpm install && pnpm run build
40
55
  if: ${{ steps.release.outputs.release_created }}
41
56
 
57
+ - name: Check if zip exists
58
+ if: ${{ steps.release.outputs.release_created }}
59
+ run: ls -la ./dist/
60
+
42
61
  - name: Upload Release Artifact
43
62
  if: ${{ steps.release.outputs.release_created }}
44
- run: gh release upload ${{ steps.release.outputs.tag_name }} ./dist/figma-plugin.zip
63
+ run: gh release upload ${{ steps.release.outputs.tag_name }} ./dist/figma-plugin.zip --clobber
45
64
  env:
46
65
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47
66
 
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "2.9.4"
3
+ }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.9.4](https://github.com/tokens-bruecke/figma-plugin/compare/v2.9.3...v2.9.4) (2026-01-13)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * hardcoded style colors into variables ([403c4a5](https://github.com/tokens-bruecke/figma-plugin/commit/403c4a582da3cd7f1d3a4af3654660b84275c9dc))
9
+
10
+ ## [2.9.3](https://github.com/tokens-bruecke/figma-plugin/compare/v2.9.2...v2.9.3) (2025-12-06)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * Remove pnpm version and install options in release workflow ([62ea535](https://github.com/tokens-bruecke/figma-plugin/commit/62ea535c12639ab21b056eb08209fa1115d33920))
16
+
17
+ ## [2.9.2](https://github.com/tokens-bruecke/figma-plugin/compare/v2.9.1...v2.9.2) (2025-12-06)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * Add zip existence check and force artifact upload ([f9d9b4b](https://github.com/tokens-bruecke/figma-plugin/commit/f9d9b4b8aa7b79cb858140fc0fed2e24eca1faca))
23
+
24
+ ## [2.9.1](https://github.com/tokens-bruecke/figma-plugin/compare/v2.9.0...v2.9.1) (2025-12-06)
25
+
26
+
27
+ ### Bug Fixes
28
+
29
+ * Add Release Please configuration files ([dcedd19](https://github.com/tokens-bruecke/figma-plugin/commit/dcedd19dc186bb97bb770af7701be5c8f821f861))
30
+
3
31
  ## [2.7.0](https://github.com/tokens-bruecke/figma-plugin/compare/v2.6.2...v2.7.0) (2025-09-21)
4
32
 
5
33
 
package/README.md CHANGED
@@ -17,6 +17,7 @@ The plugin converts Figma variables into design-tokens JSON that are compatible
17
17
  - [Table of contents](#table-of-contents)
18
18
  - [New version 2.0.0](#new-version-200)
19
19
  - [How to use](#how-to-use)
20
+ - [Export and Import](#export-and-import)
20
21
  - [General settings](#general-settings)
21
22
  - [Color mode](#color-mode)
22
23
  - [Include styles](#include-styles)
@@ -74,6 +75,30 @@ You can download and install previos version `1.6.1` here — [github.com/tokens
74
75
  4. Adjust the settings.
75
76
  5. Then you can download the JSON file or push it to on of the [supported services](#link).
76
77
 
78
+ ### Export and Import
79
+
80
+ The plugin supports both **exporting** and **importing** design tokens:
81
+
82
+ #### Export (Variables → JSON)
83
+ - Click **"Download JSON"** to export your Figma variables as a design tokens JSON file
84
+ - The exported file is compatible with the [Design Tokens specification](https://design-tokens.github.io/community-group/format/)
85
+ - You can also push directly to supported services (JSONBin, GitHub, GitLab, etc.)
86
+
87
+ #### Import (JSON → Variables)
88
+ - Click **"Import JSON"** to import design tokens from a JSON file back into Figma
89
+ - The plugin will create variable collections, modes, and variables based on the JSON structure
90
+ - Supports both DTCG format (`$value`, `$type`) and standard format (`value`, `type`)
91
+ - Handles alias references between variables
92
+ - Creates new collections and variables as needed, or updates existing ones
93
+
94
+ **Import Features:**
95
+ - ✅ Creates variable collections from top-level objects
96
+ - ✅ Supports multiple modes (from `$extensions.mode` or `extensions.mode`)
97
+ - ✅ Handles all variable types (color, number, string, boolean)
98
+ - ✅ Resolves alias references between variables
99
+ - ✅ Supports various color formats (HEX, RGBA CSS, RGBA Object)
100
+ - ✅ Preserves variable descriptions and metadata
101
+
77
102
  ---
78
103
 
79
104
  ## General settings