Vite installation

Create your project

Start by creating your Vite project if you don't have one already. Using Create Vite should speed up this process:

npm init vite@latest my-reshaped-app --template react
cd my-reshaped-app

Or if you're using TypeScript:

npm init vite@latest my-reshaped-app --template react-ts
cd my-reshaped-app

Install Reshaped

Install the latest version from NPM. You can track our latest releases in our changelog.

npm install reshaped

Add PostCSS config

Import PostCSS config from Reshaped and add it to postcss.config.js file in the root folder:

export { config as default } from "reshaped/config/postcss.js";

Start the application

Run your build process with npm run dev.

npm run dev

Start using Reshaped components

Import some of the core components in src/App.tsx and try them out:

import { Button, Container, Reshaped } from "reshaped";
import "reshaped/themes/reshaped/theme.css";

const App = () => {
  return (
    <Reshaped theme="reshaped">
      <Container width="652px">
        <Button href="/">Get started</Button>

You can find more details in our starter-vite example on Github. If you want to learn more about components - search for the relevant components documentation in the sidebar.