Code Snippet Editor
Translate component variants, properties, and more into dynamic code snippets for your design system
Plugin Preview
About this plugin
Source code and docs are on GitHub
This plugin allows you to write and generate code snippets for Figma nodes, which are rendered in the Inspect Panel in Dev Mode. You can make these code snippets dynamic, by referring to parameters provided by the plugin. Doing this for your component library will bring accurate code snippets to any project that incorporates your design system.
You can add code snippets using the Snippet Editor, which is accessible from the settings menu of the plugin in Dev Mode's Inspect Panel.
Any snippets added to a Component or Component Set will also be propagated to Instances. Snippets can either be static or utilize the snippet templating language, which is documented on GitHub, along with the code for this plugin.
Plugin Details
Version | 23 |
---|---|
Created | November 29, 2023 |
Last Updated | August 16, 2024 |
Category | Software development |
Creator | Figma |
Stats | 1375 installs, 455 likes |
Pricing | Free |
Technical Details
- API:1.0.0
- UI:{"bulk": "ui/bulk.html", "editor": "ui/editor.html", "templates": "ui/templates.html"}
- main:code.js
- Editor Types:dev
- Allowed Domains:
- none
- Codegen Languages:
- Snippets(snippets)
More Like This
Discover other plugins in the Software development category.
Figma to Code (HTML, Tailwind, Flutter, SwiftUI)
Code Conversion Made Easy: Figma to Web & Apps
Builder.io - AI-Powered Figma to Code (React, Vue, Tailwind, & more)
Export designs to responsive code (React, HTML, Vue, Tailwind, etc) with AI
SkewDat
Skew any layer or group with all layers preserved to edit.