frontend/packages/icons/README.md
</picture>
This package is licensed exclusively for use in Rivet products and services. Using this package in any other product, project, or commercial application is strictly prohibited and may constitute a violation of Font Awesome's Terms of Service and intellectual property rights.
This package includes icons from Font Awesome Pro, which are licensed to Rivet for use in Rivet products only. If you wish to use Font Awesome Pro icons in your own projects, you must obtain your own license from Font Awesome.
Rivet Icons is an icon library built on Font Awesome that provides pre-generated SVG icons for use in Rivet products. All icons (including Pro icons) are committed to the repository, making this package work out-of-the-box with no Font Awesome token required for end users.
pnpm add @rivet-gg/icons
import { Icon, faCheckCircle } from "@rivet-gg/icons";
<Icon icon={faCheckCircle} />
For maintainers only: Obtain a Font Awesome Pro license and set the FONTAWESOME_PACKAGE_TOKEN environment variable to your Font Awesome Pro token. This is only required when vendoring new icons.
FONTAWESOME_PACKAGE_TOKEN environment variable setpnpm manifest to generate a new manifest.json file
pnpm install in the src folder firstpnpm vendor to generate icon files:
src/index.gen.jssrc/index.gen.tsdist/index.jsAll icons (including Font Awesome Pro icons) are pre-generated and committed to this repository. If icons aren't showing:
Make sure you have the peer dependencies installed:
@fortawesome/fontawesome-svg-core@fortawesome/free-solid-svg-icons@fortawesome/free-brands-svg-icons@fortawesome/react-fontawesomereact and react-domCheck that you're importing icons correctly:
import { Icon, faCheckCircle } from "@rivet-gg/icons";
<Icon icon={faCheckCircle} />
If the problem persists, contact us on Discord
Could not find package @fortawesome/pro-solid-svg-iconsThis error occurs when running the vendor script without access to Font Awesome Pro packages. Make sure:
FONTAWESOME_PACKAGE_TOKEN environment variable is setpnpm install in the src folder to install FA Pro packagespnpm vendor again