kaleidocode-app / navigator

A Figma plugin for finding and applying color styles

Home Page:https://www.figma.com/c/plugin/739558587628004077/Navigator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


A Figma plugin to help find and apply color styles from your current document.


How to use

Navigator will look through all of the layers in your document and find the ones with color styles. Simply select the layer that you want to apply a color styles to, run Navigator, find your color and select it. You can apply a color style to any vector, line, frame or group.

Note: If you have a large amount of layers in your document, it might take a few seconds longer to load.

You can use this in conjunction with Chroma or Kaleidocode to create your styles and can keep those frames hidden. Due to limitations with the Figma API, we can only find styles that are on the canvas.

gif

Building from source

This plugin template uses Typescript. If you are familiar with Javascript, Typescript will look very familiar. In fact, valid Javascript code is already valid Typescript code.

Typescript adds type annotations to variables. This allows code editors such as Visual Studio Code to provide information about the Figma API while you are writing code, as well as help catch bugs you previously didn't notice.

For more information, visit https://www.typescriptlang.org/

Using Typescript requires a compiler to convert Typescript (code.ts) into Javascript (code.js) for the browser to run.

To get the TypeScript compiler working:

  1. Download Visual Studio Code if you haven't already: https://code.visualstudio.com/.
  2. Install the TypeScript compiler globally: sudo npm install -g typescript.
  3. Open this directory in Visual Studio Code.
  4. Compile TypeScript to JavaScript: Run the "Terminal > Run Build Task..." menu item, then select "tsc: watch - tsconfig.json". 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.

About

A Figma plugin for finding and applying color styles

https://www.figma.com/c/plugin/739558587628004077/Navigator


Languages

Language:TypeScript 49.6%Language:CSS 20.0%Language:JavaScript 19.6%Language:HTML 10.8%