How to Install Extensions
This guide explains what are extensions and how to use them in your Scaffold-Stylus project.
What are Extensions?โ
Extensions are modular add-ons for Scaffold-Stylus that provide additional functionality or serve as examples for specific features.
Extensions can only be installed during the initial setup of a new Scaffold-Stylus project.
They offer several benefits:
- Seamless integration with the base Scaffold-Stylus project
- Quick addition of new features, pages, contracts, or components at project creation
- Compatibility with Scaffold-Stylus core updates and improvements
Extensions are compact packages containing specific code (such as a smart contract or UI component) that automatically integrate with the latest version of Scaffold-Stylus when initializing a new project via npx. They are starting points for your project, not finished products.
Installing Extensionsโ
To install an extension when creating a new Scaffold-Stylus project, run:
npx create-stylus@latest -e {extension-name}
E.g.: npx create-stylus@latest -e erc20
Available Extensionsโ
You can find a complete list of available extensions on scaffold-stylus extensions.