Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lauthieb/variables-converter-figma-plugin
Figma Plugin that generates CSS, JavaScript, Compose & SwiftUI variables from your Figma variables
https://github.com/lauthieb/variables-converter-figma-plugin
android apple compose convert css dev devmode figma figma-design figma-plugin ios javascript js mode plugin swiftui variables
Last synced: 11 days ago
JSON representation
Figma Plugin that generates CSS, JavaScript, Compose & SwiftUI variables from your Figma variables
- Host: GitHub
- URL: https://github.com/lauthieb/variables-converter-figma-plugin
- Owner: lauthieb
- License: apache-2.0
- Created: 2023-06-29T22:39:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-23T13:25:42.000Z (3 months ago)
- Last Synced: 2024-08-23T14:58:34.062Z (3 months ago)
- Topics: android, apple, compose, convert, css, dev, devmode, figma, figma-design, figma-plugin, ios, javascript, js, mode, plugin, swiftui, variables
- Language: HTML
- Homepage: https://www.figma.com/community/plugin/1256000104406722117/Variables-Converter
- Size: 673 KB
- Stars: 27
- Watchers: 3
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# variables-converter-figma-plugin
[![Variables converter thumbnail that shows its UI](./resources/images/variables-converter-cover-art.png)](https://www.figma.com/community/plugin/1256000104406722117/Variables-Converter)
## Try it!
To try this plugin in production, just [go to its Figma Community page](https://www.figma.com/community/plugin/1256000104406722117/Variables-Converter), install it & enjoy!
## Install
Below are the steps to get your plugin running. You can also find instructions at: https://www.figma.com/plugin-docs/plugin-quickstart-guide/x
This plugin template uses Typescript and NPM, two standard tools in creating JavaScript applications.
First, download Node.js which comes with NPM. This will allow you to install TypeScript and other
libraries. You can find the download link here: https://nodejs.org/en/download/Then, install dependencies:
```sh
npm install
```## Develop
To develop, we encourage you to use the watch mode by lauching:
```sh
npm run build:watch
```Then, go to Figma, open a design file, activate the "Dev Mode", go to "Plugins" tab, select "Development" in the dropdown, click on the "+ button" and "Import plugin from manifest". You just need to target the `manifest.json` file at the root of this project. Finally, click on "Run" button aside "Variables Converter".
## Build
To build the plugin for production, just launch:
```sh
npm run build:watch
```## Recommended configuration
We recommend writing TypeScript code using Visual Studio code:
1. Download Visual Studio Code if you haven't already: https://code.visualstudio.com/.
2. Open this directory in Visual Studio Code.
3. Compile TypeScript to JavaScript: Run the "Terminal > Run Build Task..." menu item,
then select "npm: build:watch". You will have to do this again every time
you reopen Visual Studio Code.That's it! Visual Studio Code will regenerate the JavaScript file every time you save.
## License
Copyright 2023 Laurent Thiebault.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.