Figma plugin to improve Design System usage in Figma files.
It works just like the Sleuth report generator tool, but inside Figma, and only one file at a time. This helps you address issues problematic files easily.
- With a Figma file open, select Sleuth from the plugin menu.
- Sleuth will scan your file for usage of external libraries.
- When it's done, you get a percentage and a breakdown of "coverage"
- You can then expand the pages
- From there, you can select layers to update with external library references, increasing your coverage
Sleuth counts all layers drilling into groups and frames until it encounters a Component reference, text node, or shape. These types of layers count towards the "covered" layers.
- Library components
- Text nodes using library text styles with library colors
- Other layers using a library color for a background or stroke
This is an open source plugin built mostly in javascript and HTML. If you want to modify the code for your own plugin, go for it (according to the MIT license).
- Install node.js
- Install typescript
npm install -g typescript
- In the Figma desktop app, go to Menu > Plugins > Development > New Plugin...
- Point at your
manifest.json
- Make sure you update
manifest.json
with your new plugin id (if you have one) etc. - Edit the code in
/src
- Compile it with
npm run build
1.0.0 - Release! 1.0.1 - Bug fixes 1.1.0 - Add autofixing feature