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 <iconname> -f <format:{svg|nextjs|nuxtjs}>
# Example
pphat add 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.