Skip to content
Aayush9029Public

About

No description, website, or topics provided.

Resources

Stars

8 stars

Watchers

0 watching

Forks

Latest commit

 

History

26 Commits

Folders and files

Repository files navigation

icn

icn

Generate .icon and .png files from SF Symbols

Release License

icn demo

Install

brew install aayush9029/tap/icn

Or tap first:

brew tap aayush9029/tap
brew install icn

Usage

icn                                                  # interactive mode
icn swift --color blue                               # SF Symbol with auto gradient
icn heart.fill --color "#FF3B30" --fill solid --glass # solid red with glass effect
icn star.fill --name MyAppIcon --color orange         # custom name
icn swift --color white --symbol-color black          # override symbol color
icn swift --color blue --glass --png                  # export PNG
icn swift --color blue --glass --png --rendition dark # dark mode
icn swift --color blue --png --platform macos          # macOS platform

macOS demo

icn-demo is a small SwiftUI wrapper around ICNKit generation.

swift run icn-demo
swift run icn-demo --smoke-test

Options

Flag Description
<symbol> SF Symbol name (e.g. swift, heart.fill)
-c, --color Background color — hex or name
-f, --fill solid | gradient | linear (default: gradient)
--symbol-color Symbol foreground color (default: auto)
-g, --glass Enable glass effect
-s, --scale Symbol scale (default: 0.57, glass: 0.63)
--png Export composited PNG
--platform ios | macos | watchos (default: ios)
--rendition default | dark | tinted-dark

License

MIT

About

No description, website, or topics provided.

Resources

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages