tokens-bruecke 2.8.0

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.
package/.gitattributes ADDED
@@ -0,0 +1,2 @@
1
+ # Auto detect text files and perform LF normalization
2
+ * text=auto
@@ -0,0 +1,36 @@
1
+ on:
2
+ push:
3
+ branches:
4
+ - main
5
+ pull_request:
6
+ types: [assigned, opened, synchronize, reopened, labeled]
7
+ name: ci
8
+ permissions:
9
+ contents: read # to fetch code (actions/checkout)
10
+
11
+ jobs:
12
+ test:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - name: Checkout
16
+ uses: actions/checkout@v4
17
+
18
+ - uses: pnpm/action-setup@v4
19
+ name: Install pnpm
20
+ with:
21
+ run_install: false
22
+
23
+ - name: Install Node.js
24
+ uses: actions/setup-node@v4
25
+ with:
26
+ node-version: 'lts/*'
27
+ cache: 'pnpm'
28
+
29
+ - name: Install dependencies
30
+ run: |
31
+ pnpm install
32
+ node --version
33
+ - name: Build & Tests
34
+ run: |
35
+ pnpm run build
36
+ pnpm run test
@@ -0,0 +1,58 @@
1
+ on:
2
+ push:
3
+ branches:
4
+ - main
5
+ name: release-please
6
+ permissions: {}
7
+ jobs:
8
+ release-please:
9
+ permissions:
10
+ contents: write # to create release commit (google-github-actions/release-please-action)
11
+ pull-requests: write # to create release PR (google-github-actions/release-please-action)
12
+ statuses: write
13
+ issues: write
14
+ packages: write # to create NPM package under github registry
15
+
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - uses: googleapis/release-please-action@v4
19
+ id: release
20
+ with:
21
+ token: ${{ secrets.GITHUB_TOKEN }}
22
+ release-type: node
23
+ - name: Checkout
24
+ uses: actions/checkout@v2
25
+
26
+ - name: Install pnpm
27
+ uses: pnpm/action-setup@v4
28
+ with:
29
+ run_install: false
30
+
31
+ - name: Install Node.js
32
+ uses: actions/setup-node@v4
33
+ with:
34
+ node-version: 'lts/*'
35
+ cache: 'pnpm'
36
+ registry-url: 'https://npm.pkg.github.com'
37
+
38
+ - name: Build package
39
+ run: pnpm install && pnpm run build
40
+ if: ${{ steps.release.outputs.release_created }}
41
+
42
+ - name: Upload Release Artifact
43
+ if: ${{ steps.release.outputs.release_created }}
44
+ run: gh release upload ${{ steps.release.outputs.tag_name }} ./dist/figma-plugin.zip
45
+ env:
46
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47
+
48
+ - name: Publish on Github registry
49
+ run: pnpm publish
50
+ env:
51
+ NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
52
+ if: ${{ steps.release.outputs.release_created && github.repository == 'tokens-bruecke/figma-plugin'}}
53
+
54
+ # - name: Publish on npm
55
+ # run: pnpm publish
56
+ # env:
57
+ # NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
58
+ # if: ${{ steps.release.outputs.release_created && github.repository == 'tokens-bruecke/figma-plugin'}}
package/.prettierrc ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "trailingComma": "es5",
3
+ "tabWidth": 2,
4
+ "semi": true,
5
+ "singleQuote": true
6
+ }
@@ -0,0 +1,5 @@
1
+ trailingComma: es5
2
+ singleQuote: false
3
+ printWidth: 80
4
+ tabWidth: 2
5
+ bracketSpacing: true
package/CHANGELOG.md ADDED
@@ -0,0 +1,184 @@
1
+ # Changelog
2
+
3
+ ## [2.7.0](https://github.com/tokens-bruecke/figma-plugin/compare/v2.6.2...v2.7.0) (2025-09-21)
4
+
5
+
6
+ ### Features
7
+
8
+ * Add direct new GitHub token URL with "repo" scope ([f2f68f9](https://github.com/tokens-bruecke/figma-plugin/commit/f2f68f91bb20ded52cb193391bf4eeaca0e6d303))
9
+ * Add direct new GitHub token URL with "repo" scope ([aea4d98](https://github.com/tokens-bruecke/figma-plugin/commit/aea4d983b99892f28040b919bc79b161fe4e4aa2))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * file path must be URL-encoded for Gitlab API ([369d43f](https://github.com/tokens-bruecke/figma-plugin/commit/369d43fd01d04ea44a810ebcada07a97c5924072))
15
+ * URL encode file path for Gitlab API ([6a590b1](https://github.com/tokens-bruecke/figma-plugin/commit/6a590b15966d4b4188d210d6d8a7dcd4ab07884f))
16
+
17
+ ## [2.6.2](https://github.com/tokens-bruecke/figma-plugin/compare/v2.6.1...v2.6.2) (2025-06-01)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * prettier and file formatting ([43bbca5](https://github.com/tokens-bruecke/figma-plugin/commit/43bbca5a922a2d5653704c56b0c2d6e1060855d2))
23
+
24
+ ## [2.6.1](https://github.com/tokens-bruecke/figma-plugin/compare/v2.6.0...v2.6.1) (2025-04-17)
25
+
26
+ ### Bug Fixes
27
+
28
+ - handle font style value ([77db500](https://github.com/tokens-bruecke/figma-plugin/commit/77db5001285c9bbee3870f88fb0cb77502f3599a))
29
+ - handle font style value ([7b284d6](https://github.com/tokens-bruecke/figma-plugin/commit/7b284d6239bb7f0bf7f9283667e38020ecd523db))
30
+ - handle font weight value ([5ff1181](https://github.com/tokens-bruecke/figma-plugin/commit/5ff1181d088d01c9dc64338dd610d3ac745d8d90))
31
+
32
+ ## [2.6.0](https://github.com/tokens-bruecke/figma-plugin/compare/2.5.0...v2.6.0) (2025-04-11)
33
+
34
+ ### Bug Fixes
35
+
36
+ - fix warning about passing float to figma.ui.resize ([3c5702d](https://github.com/tokens-bruecke/figma-plugin/commit/3c5702d253d402f8c0e7b19ea26a4c44b5e59c75))
37
+
38
+ ### Miscellaneous Chores
39
+
40
+ - release 2.6.0 ([cf525b1](https://github.com/tokens-bruecke/figma-plugin/commit/cf525b148f465bd109fa5f7c73c891a45acc1115))
41
+
42
+ ## 2.5.0
43
+
44
+ - [Introduce CLI Based tool that uses Figma Rest API](https://github.com/tokens-bruecke/figma-plugin/pull/33) _by [Sylvain Marcadal](https://github.com/r1m)_ (not yet published to NPM)
45
+ - [Fix: support font style strings like "Semi Bold"](https://github.com/tokens-bruecke/figma-plugin/pull/36) _by [Peter Lazar](peterlazar1993)_
46
+ - [Fix: precision errors for floats](https://github.com/tokens-bruecke/figma-plugin/pull/37) _by [Peter Lazar](peterlazar1993)_
47
+
48
+ ## 2.4.0
49
+
50
+ - [Add font style support for italic](https://github.com/tokens-bruecke/figma-plugin/pull/35) _by [Sylvain Marcadal](https://github.com/r1m)_
51
+ - [Add support for selfhosted gitlab](https://github.com/tokens-bruecke/figma-plugin/pull/34) _by [Sylvain Marcadal](https://github.com/r1m)_
52
+
53
+ ## 2.3.1
54
+
55
+ - [Fixes dimension type for vars with single scope](https://github.com/tokens-bruecke/figma-plugin/pull/31)
56
+
57
+ ## 2.3.0
58
+
59
+ - Added `codeSyntax` property to variables. See this PR — [include variable's "codeSyntax" property in exported token json](https://github.com/tokens-bruecke/figma-plugin/pull/28)
60
+
61
+ ## 2.2.3
62
+
63
+ - Convert `OPACITY` scope to valid value using this formula `value / 100`.
64
+
65
+ ## 2.2.2
66
+
67
+ - Do not convert the value to PX units if the variable scope is `FONT_WEIGHT`
68
+
69
+ ## 2.2.1
70
+
71
+ - Added `paragraphSpacing` and `paragraphIndent` to the typography styles
72
+
73
+ ## 2.2.0
74
+
75
+ - Added aliases handling for typography styles — [Related issue](https://github.com/tokens-bruecke/figma-plugin/issues/24)
76
+ - Added aliases handling for effects
77
+
78
+ ## 2.1.4 and 2.1.5
79
+
80
+ - Fix wrong font weight output. Related PR — [Right the heuristic wrongs](https://github.com/tokens-bruecke/figma-plugin/pull/20). _by [@JeroenRoodIHS](https://github.com/JeroenRoodIHS)_
81
+
82
+ ## 2.1.3
83
+
84
+ - Fixed font weights to be numbers. Related PR — [Font weights fix - output as numbers (DTCG format)](https://github.com/tokens-bruecke/figma-plugin/pull/22)
85
+
86
+ ## 2.1.2
87
+
88
+ - Updated the function to generate text styles. Related PR — [Update textStylesToTokens.ts ](https://github.com/tokens-bruecke/figma-plugin/pull/19)
89
+
90
+ ## 2.1.1
91
+
92
+ - `$meta` tag moved to `$extensions` object. See issue — [$meta is not valid DTCG](https://github.com/tokens-bruecke/figma-plugin/issues/13)
93
+
94
+ ## 2.1.0
95
+
96
+ - Multiple `Shadow` and `Blur` styles support added. [Link to the PR](https://github.com/tokens-bruecke/figma-plugin/issues/11)
97
+
98
+ ## 2.0.0
99
+
100
+ - tokens structure was changed. All modes now moved from variable names into `$extensions/modes` object. In order to make it work with [Cobalt](https://cobalt-ui.pages.dev/guides/modes#with-modes). For morre details see this issue — [Multiple collection and modes](https://github.com/tokens-bruecke/figma-plugin/issues/7). Previous implementation didn't work correctly with multiple modes and aliasees.
101
+
102
+ ## 1.6.0
103
+
104
+ - `value` string for aliases is now optional
105
+
106
+ ## 1.5.0
107
+
108
+ - Added `GitHub PR` option to the `Push to server` feature
109
+ - `Connect server` renamed to `Push to server`
110
+ - _Thanks for contribution to [@distolma](https://github.com/distolma)_
111
+
112
+ ## 1.4.0
113
+
114
+ - Added `warning` type to the `Toast` component
115
+ - structure refactoring
116
+ - code refactoring
117
+ - updated `Github` errors handling
118
+ - added `value` to all aliases at the end of the path. Also support for `DTCG` keys format added
119
+ - added storage versioning
120
+ - updated DTCG format switching
121
+ - added `Copy` button for the tokens preview
122
+
123
+ ## 1.3.0
124
+
125
+ - Functions names refactoring
126
+
127
+ ## 1.2.0
128
+
129
+ - Updated method to check `VARIABLE_ALIAS` in `normalizeValue` function
130
+ - Handle aliases from another files
131
+ - Removed the property `aliasPath` from `$extensions` object, since it's not needed anymore
132
+
133
+ ## 1.1.1
134
+
135
+ - Updated errors handling for GitHub server
136
+
137
+ ## 1.1.0
138
+
139
+ - `Update` button animation added
140
+ - added token types as a separate package
141
+
142
+ ## 1.0.9
143
+
144
+ - Fixed `line-height` value conversion. It wasn't rounded to the nearest integer.
145
+
146
+ ## 1.0.8
147
+
148
+ - Fix for [Reference tokens auto-referencing themselves in the exported JSON](https://github.com/PavelLaptev/tokens-bruecke/issues/1)
149
+
150
+ ## 1.0.7
151
+
152
+ - Code cleanup
153
+
154
+ ## 1.0.6
155
+
156
+ - WIP [Reference tokens auto-referencing themselves in the exported JSON](https://github.com/PavelLaptev/tokens-bruecke/issues/1)
157
+
158
+ ## 1.0.5
159
+
160
+ - Allowed to use plugin in files without variables
161
+
162
+ ## 1.0.4
163
+
164
+ - Fix scopes conversion
165
+ - `$meta` info adding order fixed
166
+
167
+ ## 1.0.3
168
+
169
+ - HEX color fixed
170
+ - Alias variables fixed
171
+
172
+ ## 1.0.2
173
+
174
+ - Fixed RGBA to HEXA conversion
175
+ - Added color styles support
176
+ - Added basic support for linear and radial gradients
177
+
178
+ ## 1.0.1
179
+
180
+ - Fixed Aliases handling. Removed `mode` from the alias string if there is only one mode in the collection.
181
+
182
+ ## 1.0.0
183
+
184
+ - Initial release
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Pavel Laptev
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.