Installation
Get started with Reshaped by installing it in your React project.Requirements
Reshaped requires React 18 or 19 and Node.js 22+. Make sure your project meets these requirements before installing.
- React 18 or 19
- React DOM 18 or 19
- PostCSS 8+
- Node.js 22 or higher
Install the Package
Install Reshaped using your preferred package manager:Peer Dependencies
Reshaped requires React, React DOM, and PostCSS as peer dependencies. These are likely already in your project, but if not, install them:Import Styles
After installation, you need to import the Reshaped CSS bundle and theme in your application root:The default theme is reshaped. You can also use other built-in themes like
slate or figma, or create your own custom theme.Available Themes
Reshaped comes with three built-in themes:- Reshaped (default):
reshaped/themes/reshaped/theme.css - Slate:
reshaped/themes/slate/theme.css - Figma:
reshaped/themes/figma/theme.css
TypeScript Support
Reshaped is written in TypeScript and includes type definitions out of the box. No additional setup is needed for TypeScript projects.Next Steps
Quick Start
Learn how to set up the Reshaped provider and build your first component
Components
Explore all available components
Troubleshooting
Module Not Found Errors
If you encounter module resolution errors, make sure:- Your
package.jsonincludes the correct dependencies - You’ve run the install command in your project directory
- Your bundler supports ES modules
Style Issues
If components appear unstyled:- Verify that you’ve imported the CSS bundle:
import 'reshaped/bundle.css' - Verify that you’ve imported a theme:
import 'reshaped/themes/reshaped/theme.css' - Make sure your bundler processes CSS imports