React
Rsbuild
Learn how to install and use Crispy in Rsbuild projects.
Importing base.css
Configuring tsconfig.json
Must be the same as the path of the seed-design.json path configured above.
Modifying Rsbuild config
seedDesignPlugin handles theming and automatic CSS file loading, etc.
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 |
How color mode works is covered in Theming.
Getting Started with Stackflow
Learn how to set up the Crispy Stackflow plugin to use Crispy AppScreen.