GithubHelp home page GithubHelp logo

jaclyntan / figma-color-compass Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 5.0 2.58 MB

Choose colors quickly and easily in Figma.

Home Page: https://www.figma.com/c/plugin/754415266574382747/Color-Compass

License: GNU General Public License v3.0

JavaScript 39.77% TypeScript 37.02% HTML 23.21%
figma figma-plugins

figma-color-compass's Introduction

Figma Color Compass

Note: This plugin is now a paid resource and closed source on Figma. No further code updates will be made on this repository, however you may still download the existing files to learn and use for your personal development.


⭐️ Quickly navigate the colour spectrum with designer-focused accuracy

Instead of eyeballing and colour picking randomly from the entire spectrum, simply feed a base colour to this plugin to generate tints, shades, tones, and complementary colours.

Increase or decrease the step value to hone in on the exact shade you want.

Experiment with different swatches and update elements on the fly directly from the plugin.


⭐️ To Use

  • Run the plugin from Figma
  • Select an element containing a fill, background, or stroke (note groups are not supported)
  • Click on the 'Update' button to update the palettes
  • Click on a plugin swatch while an element is selected to update a selected element with change a pre-existing fill, background, or stroke.
  • Click on the clipboard icon to copy the current colour's hex code
  • Update the step value to generate more shades in the palettes

⭐️ Notes

  • You can now copy the hex code from the plugin by clicking on the clipboard icon
  • You can now type in custom hex codes instead of updating through an element on the canvas if no element is currently selected. Note that if an element is selected on the canvas and the hex code is updated manually thereafter, the plugin will default to selecting the colour from the selected element first meaning any manual input will be ignored.
  • You can keep clicking on 'Update' to generate random colour palettes based on your previous selection.
  • Click on the plus button next to the palette label to add the swatches to your document.
  • This plugin will work on any element that is able to display a solid fill, stroke, or background

♡ If you run into any bugs or have any feature requests please submit an issue on Github.

figma-color-compass's People

Contributors

jaclyntan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

figma-color-compass's Issues

Confusing buttons

In case someone else is confused:

  • "Update" button is "Get color from selection".
  • To add to swatch Library use Star button. I was clicking (+) button next to swatch library. That + button is for adding colour swatch to Figma design, as other (+) buttons.

I'd suggest to change buttons and texts to avoid such confusion. Good example is Supa Palette plugin , uses clear indicative naming and arrows that indicate export from plugin:
image

Generate lighter shades

Is there a way to generate even lighter colours? e.g I have a dark base grey #24292E and the lightest generated colour is #E9EAEA, without anything in the #fXXXXX range.

For the moment I take the #E9EAEA value and run the plugin to generate additional shades to achieve the lighter shades.

Clean up code

  • Restructure the colorObject so the palettes can be iterated over easily (current ui.html is a mess)
  • Tweak calculations of the random palette generator
  • Check var declarations
  • Comment where necessary
  • Use template literals so its easier to read

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.