Users can easily download and install icons from this project via the @pphatdev/registry package CLI.
# Local
npm install -D @pphatdev/registry
# Global
npm install -g @pphatdev/registry
# verify installation
pphat --version
# or
@pphatdev/registry --version
# or
pphatdev --version
# Init configuration
pphat init ## Choose what you need to use (icon or other in the future)
# Install icons
pphat add-icon <iconname> -f <format:{svg|nextjs|nuxtjs}>
# Example
pphat add-icon facebook -f svgTo add a new icon to the registry:
- Add your new icon
.jsonfile to the appropriate category directory (e.g.,brands/orregular/). - That's it! You do not need to manually update
brands.jsonorregular.json. A GitHub Actions workflow automatically compiles these index files when a Pull Request is opened or code is merged.
For more detailed information, please see our CONTRIBUTING.md.
A local demo UI is provided for browsing and testing every icon in the repo — filter by category, search by name, live-recolor via currentColor, and copy the SVG markup.
npm --prefix .github/scripts install # first time only
npm --prefix .github/scripts run demoThen open http://localhost:5173/. See .github/scripts/README.md for details.