justgo-rename-kit

Rename Kit for Figma

Rename Kit is a Figma plugin that helps teams keep files clean and consistent by automating layer naming and surfacing text color mismatches.

Latest Updates

Features

  1. Text Layer Renaming
    • Renames text layers based on mapped text style color paths.
    • Example: colors/content/text/regular/heading can map to heading-text.
  2. Default Frame Renaming
    • Renames default frame names like Frame, Frame 1, Frame 27 to item.
  3. Mismatched Color Detection
    • Detects text layers where color style/variable does not match expected paths for that style category.
    • Selects mismatched layers automatically so they can be fixed quickly.
  4. Relaunch Button Support
    • Adds Run Rename Kit relaunch data to selected nodes/page for faster reruns.
  5. Settings UI
    • Manage rename rules and never-flag color paths from Plugins > JustGo Rename Kit > Settings.

How To Use

  1. Select one or more frames/groups/layers in Figma.
  2. Run Plugins > JustGo Rename Kit > Run Rename Kit.
  3. Review the notification summary (renamed text layers, renamed frames, mismatches selected).
  4. Optional: use Plugins > JustGo Rename Kit > Settings to edit rules.
  5. Optional: use Quick Actions (Ctrl + / on Windows or Cmd + / on macOS) and type Rename Kit.

Configuration

The plugin stores settings in figma.clientStorage and uses these main structures:

{
  renameRules: [
    { newName: "heading-text", path: "colors/content/text/regular/heading" },
    { newName: "title-text", path: "colors/content/text/inverse/title" }
  ],
  alwaysAllowedColors: [
    "colors/content/text/state/info",
    "colors/content/text/state/success"
  ]
}

Rules notes:

Release Workflows

This repository has two GitHub Actions workflows for releases.

1) .github/workflows/releases-auto-version.yml (automatic)

Purpose: auto version bump + optional RELEASES.md update + tag + GitHub Release.

Trigger:

Version bump rules (from commit subject lines since last v* tag):

Flow:

  1. Finds the latest vX.Y.Z tag (or uses v0.0.0 if none).
  2. Computes next version based on rules above.
  3. Collects Release: / Releases: lines and inserts them under ## vX.Y.Z in RELEASES.md.
  4. Commits RELEASES.md only if changed.
  5. Creates and pushes annotated tag vX.Y.Z.
  6. Packages zip from manifest.json, manifest.main, manifest.ui, plus optional assets/.
  7. Builds release notes (prefers the matching RELEASES.md section; falls back to commit subjects).
  8. Creates GitHub Release and uploads <repo-slug>-vX.Y.Z.zip.

Skip behavior:

2) .github/workflows/releases-zip.yml (manual)

Purpose: manual packaging and release publishing.

Trigger:

Flow:

  1. Packages zip using manifest.json + main + ui (+ optional assets/).
  2. Uses current ref name as tag (GITHUB_REF_NAME).
  3. Builds release notes from matching section in RELEASES.md if present.
  4. Creates GitHub Release and uploads the zip.

Commit Message Conventions For Auto Versioning

Use these subject prefixes at the start of commit messages:

Example:

Releases: Add settings UI for rename rules
Fix: Handle duplicate rule paths in validation

License

This project is licensed under the MIT License. See LICENSE.