### Start the React application
Source: https://reshaped.so/docs/getting-started/overview/getting-started/integrations/cra
Runs the Create React App project locally using the start script.
```Shell
npm run start
```
--------------------------------
### Create a new Remix project
Source: https://reshaped.so/docs/getting-started/overview/getting-started/integrations/remix
Start a new Remix project using the `create-remix` command-line tool.
```Shell
npx create-remix@latest
```
--------------------------------
### Start Storybook Development Server
Source: https://reshaped.so/docs/getting-started/overview/getting-started/source-code
Starts the Storybook environment, providing all component examples. It includes an accessibility plugin and custom controls for content direction and color mode. Storybook is built using Vite.
```bash
yarn dev
```
--------------------------------
### Start Remix development server
Source: https://reshaped.so/docs/getting-started/overview/getting-started/integrations/remix
Run the Remix application locally in development mode.
```Shell
npm run dev
```
--------------------------------
### Start Next.js Application Locally
Source: https://reshaped.so/docs/getting-started/overview/getting-started/integrations/next
Runs the Next.js development server locally using npm, allowing you to preview the application.
```bash
npm run dev
```
--------------------------------
### Start Vite Development Server
Source: https://reshaped.so/docs/getting-started/overview/getting-started/integrations/vite
Executes the `npm run dev` command to start the local development server for your Vite project. This allows you to view and test your application in a browser.
```bash
npm run dev
```
--------------------------------
### Install Webpack project dependencies with NPM
Source: https://reshaped.so/docs/getting-started/overview/getting-started/integrations/webpack
Initialize a new project and install essential dependencies for a Webpack setup, including React, Webpack tools, and loaders for TypeScript and CSS. This provides a foundation for building a modern web application.
```bash
mkdir my-reshaped-app
cd my-reshaped-app
npm install react react-dom
npm install --dev webpack webpack-cli webpack-dev-server css-loader postcss-loader mini-css-extract-plugin ts-loader typescript html-webpack-plugin @types/react @types/react-dom
```
--------------------------------
### Run Webpack development server locally
Source: https://reshaped.so/docs/getting-started/overview/getting-started/integrations/webpack
Execute the npm run start command to launch the Webpack development server. This allows you to view and test your application locally during development.
```bash
npm run start
```
--------------------------------
### Add NPM scripts for Webpack build and serve
Source: https://reshaped.so/docs/getting-started/overview/getting-started/integrations/webpack
Update your package.json with start and build scripts. These scripts simplify running the Webpack development server and creating production-ready builds of your application.
```json
{
"scripts": {
"start": "webpack serve",
"build": "webpack"
}
}
```
--------------------------------
### Pagination Component Basic Setup
Source: https://reshaped.so/docs/getting-started/overview/changelog/v2
Shows a simple example of the new Pagination component, configured with a total number of pages and custom accessibility labels for navigation buttons.
```JSX
```
--------------------------------
### Import and use Reshaped components
Source: https://reshaped.so/docs/getting-started/overview/getting-started/react/installation
Demonstrates how to import Reshaped components like Button and Container, along with the Reshaped provider, and apply a theme. This setup ensures CSS tree-shaking works as expected, only importing CSS for components you're using.
```javascript
import { Button, Container, Reshaped } from "reshaped";
import "reshaped/themes/slate/theme.css";
const App = () => {
return (
);
};
```
--------------------------------
### Import and use Reshaped components in App.tsx
Source: https://reshaped.so/docs/getting-started/overview/getting-started/integrations/cra
Demonstrates importing core Reshaped components and their theme, then rendering a basic example in a React component.
```TypeScript
import { Button, Container, Reshaped } from "reshaped";
import "reshaped/themes/slate/theme.css";
const App = () => {
return (
);
};
```
--------------------------------
### Install Reshaped via npm
Source: https://reshaped.so/docs/getting-started/overview/getting-started/react/installation
Install the latest version of the Reshaped UI library using npm.
```bash
npm install reshaped
```
--------------------------------
### Install Project Dependencies with Yarn
Source: https://reshaped.so/docs/getting-started/overview/getting-started/source-code
To set up the project, navigate to the project directory and run Yarn to install all required dependencies. Yarn is the default package manager used for this project.
```bash
yarn
```
--------------------------------
### Implement system dark mode detection
Source: https://reshaped.so/docs/getting-started/overview/getting-started/react/installation
Use an inline script that accesses browser APIs to detect the user's system color mode preference and apply it to the data-rs-color-mode attribute on the element. This example also integrates with local storage for persistent user preference.
```javascript