# Rsbuild
URL: /react/getting-started/installation/rsbuild
Source: https://github.com/daangn/seed-design/blob/dev/docs/content/react/getting-started/installation/rsbuild.mdx
Learn how to install and use Crispy in Rsbuild projects.
### Install Dependencies
Install the necessary dependencies.
- npm: npm install @seed-design/react @seed-design/css
- pnpm: pnpm add @seed-design/react @seed-design/css
- yarn: yarn add @seed-design/react @seed-design/css
- bun: bun add @seed-design/react @seed-design/css
### Importing base.css
```ts title="index.tsx"
import "@seed-design/css/base.css";
```
### Creating seed-design.json
### Running the init command
```sh
npx @seed-design/cli@latest init
```
### Configure seed-design
```sh
◇ Do you use TypeScript?
│ Yes
│
◇ Do you use React Server Components?
│ No
│
◇ Enter the seed-design folder path. (The default is the project root.)
│ ./seed-design
```
Create the following file in your project root.
```json title="seed-design.json"
{
"rsc": false,
"tsx": true,
"path": "./seed-design"
}
```
### Configuring tsconfig.json
Must be the same as the path of the [seed-design.json path](/react/getting-started/cli/configuration#path) configured above.
```json title="tsconfig.json"
{
"compilerOptions": {
// ... your options
"paths": {
// [!code highlight]
"seed-design/*": [
// [!code highlight]
"./seed-design/*"
]
}
}
}
```
### Modifying Rsbuild config
- npm: npm install -D @seed-design/rsbuild-plugin
- pnpm: pnpm add -D @seed-design/rsbuild-plugin
- yarn: yarn add --dev @seed-design/rsbuild-plugin
- bun: bun add --dev @seed-design/rsbuild-plugin
`seedDesignPlugin` handles theming and automatic CSS file loading, etc.
```ts title="rsbuild.config.ts"
import { defineConfig } from "@rsbuild/core";
import { pluginReact } from "@rsbuild/plugin-react";
import { seedDesignPlugin } from "@seed-design/rsbuild-plugin"; // [!code highlight]
export default defineConfig({
plugins: [
pluginReact(),
seedDesignPlugin(), // [!code highlight]
],
});
```
#### Plugin Options
Without options, color mode follows the user's system settings. To fix it to light or dark, specify `colorMode`.
| Option | Type | Default | Description |
| ---------------------- | ----------------------------------------- | ---------- | ------------------------------------------------------------------------------ |
| `colorMode` | `"system" \| "light-only" \| "dark-only"` | `"system"` | Global color mode. `system` follows the user's OS setting |
| `injectColorSchemeTag` | `boolean` | `true` | Whether to inject the `color-scheme` meta tag |
| `fontScaling` | `boolean` | `false` | On iOS, whether to scale text according to the user's system text size setting |
```ts title="rsbuild.config.ts"
seedDesignPlugin({
colorMode: "light-only",
});
```
How color mode works is covered in [Theming](/react/getting-started/styling/theming).
### Try using a component?
```sh
npx @seed-design/cli@latest add ui:action-button
```
***
Learn how to set up the Crispy Stackflow plugin to use Crispy AppScreen.