This is a figma plugin that helps us achieve consistent color & spacing.
- Go to latest release and download the source code.
- Unzip the
designr-figma-plugin.zip
file and place the unzipped folder in a safe directory anywhere on your machine. - Right click anywhere in Figma canvas → Plugins → Manage Plugins
- At the right side of the screen, tap "+ Create your own plugin".
- Tap "Link existing plugin" and choose the
manifest.json
file inside the folder you unzipped. - Open the plugin by these two methods:
- right clicking anywhere on canvas → Plugins → Development → Designr Helper.
cmd + /
to open Figma menu and search "helper".
What? Checks all the colours in the selected frame that aren't using the intended functional colors defined from our design library.
Why? Because it's okay to design quickly with the color picker (we're all guity of this, don't lie). But this tool should help us clean up the mess afterwards.
What? One click function to convert the entire frame to Dark / Light theme function colours
Why? Because doing it one by one under the native Figma "Selection Color" is laborious.
Adjust auto layout spacings with spacing defined from our tokens. Visible when you have a Frame with Auto Layout enabled selected.
What? A shortcut for applying spacing values in the Auto Layout properties.
Why? Gets us thinking in sizes (ie. S, M, L ) instead of pixel values (ie. 16px, 24px, 32px)
Note There’s a weird Figma glitch: After you change a slider value, your cursor needs to go back to Figma canvas to update the frame to the most up to date value. Not sure why, it’s a weird Figma plugin issue I couldn’t fix.
What? A shortcut for applying layout grids based on our spacing values. Inspired by Google Chrome's box model visualisation, this should look familar.
Why? Figma's layout grids doesn't let us apply multiple styles at a time. This is a workaround.
If you want to contribute, run this plugin locally on your machine and watch for code changes.
npm install
to install all the dependenciesnpx webpack
to watch the./src
folder and compile any code changes.- To see the changes after each compile, bring the Figma desktop app to the foreground, and use
command + option + p
shortcut which tells Figma to re-run the last plugin.