Socket
Socket
Sign inDemoInstall

@cljs-figma/cljs-figma

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @cljs-figma/cljs-figma

Write Figma plugins with ClojureScript. Comes with a browser-based development environment for development without using Figma + all the bells and whistles of ClojureScript development.


Version published
Maintainers
1
Install size
122 kB
Created

Readme

Source

cljs-figma

Write Figma plugins with ClojureScript. Comes with a browser-based development environment for development without using Figma + all the bells and whistles of ClojureScript development.

Getting Started

  • Create new plugin inside Figma

  • Select "Figma Design" (we don't support FigJam just yet)

  • Select "Empty" so we get a barebones plugin to start with.

  • Delete the code.js file that gets created automatically

  • Run npm init --force --yes and adjust to your liking

  • Install cljs-figma in the project with npm install --save-dev cljs-figma

  • Run npx cljs-figma-init to create the basic directory structure

  • Inside the src/main directory, there will now be two starter files, code.cljs and ui.cljs

  • Run npx cljs-figma-dev to start a in-browser development environment

  • Run npx cljs-figma-build to build the Figma plugin

Expected directory structure

Two main files that are being used as entrypoints.

  • src/main/plugin/ui.cljs is loaded as the UI code.
  • src/main/plugin/code.cljs is loaded in the background context.

FAQs

Last updated on 27 Apr 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc