fcd
figma-clean-document
npm i figma-clean-document
fcd

figma-clean-document

🔥 Monorepo for my Figma plugins

by Yuan Qing Lim

2.2.0 (see all)License:MITTypeScript:Not Found
npm i figma-clean-document
Readme

Clean Document Figma Plugin installs npm Version

A Figma plugin to automagically organize and clean up your Figma document

Clean Document

clean format layers lint linter organize organizer pixels rename sort tidy

Commands

Delete Hidden Layers

Deletes all hidden layers within the selection or on the current page.

Ungroup Single-Layer Groups

Ungroups single-layer groups within the selection or on the current page that have no background, blend mode, effect or export setting.

Make Pixel-Perfect

Rounds the X and Y position and dimensions of layers within the selection or on the current page to the nearest pixel.

Smart Rename Layers

Intelligently renames layers within the selection or on the current page.

  • Layers of type Text will be named based on their text content.
  • Layers of type Instance will be given the same name as their Main Component.
  • Layers of all other layer types will be named based on their layer type. (For example, a layer of type Rectangle will be named “Rectangle”, a layer of type Group will be named “Group”, and so on.)
  • Layers with export settings will not be renamed.

Optionally specify a Regular Expression to skip the renaming of particular layers.

Smart Sort Layers

Sort layers within the selection or on the current page by their X and Y position while maintaining their relative stacking order on the page.

Clean Layers

Run all the above commands on layers within the selection or on the current page. Optionally skip processing of Locked layers.

Sort Pages

Sorts pages of the current document in alphabetical order.

Reset Plugin

Resets all settings to their defaults.

License

MIT

Downloads/wk

1

GitHub Stars

159

LAST COMMIT

3mos ago

MAINTAINERS

1

CONTRIBUTORS

1

OPEN ISSUES

12

OPEN PRs

0
VersionTagPublished
2.2.0
latest
2yrs ago
No alternatives found
No tutorials found
Add a tutorial