Figma plugin! (#227)
* initialize figma plugin * Add icons to view * Make the plugin work * Fix search hook * Finialize figma plugin * Finish up icons * remove unused code * Add cover and icon
This commit is contained in:
9
packages/lucide-figma/src/main.ts
Normal file
9
packages/lucide-figma/src/main.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
figma.showUI(__html__, { width: 300, height: 400 })
|
||||
|
||||
figma.ui.onmessage = ({name, svg}) => {
|
||||
const icon = figma.createNodeFromSvg(svg)
|
||||
icon.name = name
|
||||
icon.x = figma.viewport.center.x
|
||||
icon.y = figma.viewport.center.y
|
||||
figma.currentPage.selection = [icon]
|
||||
}
|
||||
Reference in New Issue
Block a user