Generate .icon and .png files from SF Symbols
brew install aayush9029/tap/icnOr tap first:
brew tap aayush9029/tap
brew install icnicn # 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 platformicn-demo is a small SwiftUI wrapper around ICNKit generation.
swift run icn-demo
swift run icn-demo --smoke-test| 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 |
MIT
