rename-figma-icons 1.0.0

dotnet tool install --global rename-figma-icons --version 1.0.0                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local rename-figma-icons --version 1.0.0                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=rename-figma-icons&version=1.0.0                
nuke :add-package rename-figma-icons --version 1.0.0                

Rename Figma Icons Tool

Install

dotnet tool install --global rename-figma-icons

Usage

Downloading icons from Figma will have a suffix applied which is not useful in some circumstances, such as when working with Android assets. For example you may have a list of files that looks like this.

my_icon.png
my_icon@2x.png
my_icon@3x.png
my_icon-mdpi.png
my_icon-hdpi.png
my_icon-xhdpi.png
my_icon-xxhdpi.png
my_icon-xxxhdpi.png

Ideally these icons are separated for use in iOS and Android separately. If you navigate to this directory and run

rename-figma-icons .

you now have a directory structure like this

my_icon.png
my_icon@2x.png
my_icon@3x.png
drawable-mdpi/my_icon.png
drawable-hdpi/my_icon.png
drawable-xhdpi/my_icon.png
drawable-xxhdpi/my_icon.png
drawable-xxxhdpi/my_icon.png

ready for import into your IDE for both iOS and Android projects.

Future work

  • Create entry for .xcassets and relevant .csproj changes.
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
1.0.0 1,471 2/13/2023