You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a pretty major fork of the original 10up plugin. It is highly opinionated to the approach Linchpin takes to components being exported for our design systems and client websites
4
+
5
+
The original 10up plugin may be a great base for your project or you can run with this one, however the baseline 10up one is more table and we have breaking changes
> This Figma plugin converts Figma design tokens/variables into WordPress theme.json format, placing all variables under the `settings.custom` section according to WordPress standards.
6
11
@@ -16,7 +21,7 @@
16
21
- Support for responsive/fluid variables
17
22
- Automatic unit handling (px) for specific value types
18
23
- Supports downloading the generated files as a zip package
19
-
-**Typography presets** - Convert Figma text styles to WordPress typography presets*(10up tooling feature)*
24
+
-**Typography presets** - Convert Figma text styles to WordPress typography presets
20
25
-**Color presets** - Generate WordPress color palette from Figma color variables with customizable selection
- Line height values converted from percentage to decimal format (e.g., 120% → 1.2)
@@ -46,7 +51,7 @@
46
51
- All existing theme.json settings and styles will be preserved
47
52
- New variables will be added under settings.custom
48
53
49
-
3.**Typography Presets:***(10up tooling feature)*
54
+
3.**Typography Presets:**
50
55
- Check "Generate typography presets from text styles"
51
56
- The plugin will convert all local text styles in your Figma document
52
57
- Typography presets are added to `settings.custom.typography.presets`
@@ -115,13 +120,76 @@ When uploading an existing theme.json file:
115
120
- Other sections of the theme.json file remain untouched
116
121
- Color modes and button styles are still exported as separate files
117
122
118
-
### Special Collection Handling
123
+
### Collection Processing Architecture
124
+
125
+
The plugin uses a sophisticated processor-based architecture to handle different types of Figma variable collections. Each collection is processed by a specific processor based on its name and structure, ensuring optimal handling for different use cases.
126
+
127
+
### Processor System
128
+
129
+
The plugin employs a list of processors that are evaluated in sequence:
130
+
131
+
1.**Primitives Processor** - Handles the "Primitives" collection as the base theme
132
+
2.**WordPress Settings Colors Processor** - Processes color collections for palette generation
If a collection has exactly two modes named "Desktop" and "Mobile", the plugin treats them as responsive variables:
152
220
@@ -289,7 +357,7 @@ The plugin will automatically transpile TypeScript to JavaScript.
289
357
290
358
## Changelog
291
359
292
-
A complete listing of all notable changes to this project are documented in [CHANGELOG.md](https://github.com/10up/figma-to-wordpress-theme-json-exporter/blob/develop/CHANGELOG.md).
360
+
A complete listing of all notable changes to this project are documented in [CHANGELOG.md](https://github.com/linchpin/figma-to-wordpress-theme-json-exporter/blob/develop/CHANGELOG.md).
293
361
294
362
## Contributing with Changesets
295
363
@@ -327,12 +395,4 @@ The changeset will be saved as a file in the `.changeset` directory and should b
327
395
When changesets are merged to the main branch:
328
396
1. A "Release" pull request will be automatically created
329
397
2. This PR will update the version number and changelog
330
-
3. When the Release PR is merged, the package will be automatically published to npm
331
-
332
-
## Contributing
333
-
334
-
Please read [CODE_OF_CONDUCT.md](https://github.com/10up/figma-to-wordpress-theme-json-exporter/blob/develop/CODE_OF_CONDUCT.md) for details on our code of conduct, [CONTRIBUTING.md](https://github.com/10up/figma-to-wordpress-theme-json-exporter/blob/develop/CONTRIBUTING.md) for details on the process for submitting pull requests to us, and [CREDITS.md](https://github.com/10up/figma-to-wordpress-theme-json-exporter/blob/develop/CREDITS.md) for a listing of maintainers, contributors, and libraries for this project.
335
-
336
-
## Like what you see?
337
-
338
-
<ahref="http://10up.com/contact/"><imgsrc="https://fueled.com/wp-content/uploads/2025/06/10up-github-banner.webp"alt="Work with the 10up WordPress Practice at Fueled"></a>
398
+
3. When the Release PR is merged, the package will be automatically published to npm
0 commit comments