Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cljs-figma/cljs-figma

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

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.

  • 0.4.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
6
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 27 Apr 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc