@reactloom/cli
v1.0.2
Published
ReactLoom CLI: run `npx @reactloom/cli init` to generate a brand theme and a starter page for your React project.
Maintainers
Readme
@reactloom/cli
Set up a ReactLoom theme in your React project in one command.
npx @reactloom/cli initIt asks for an accent colour and a corner radius, then writes:
src/theme.ts: your brand theme (brandTheme), made withcreateThemefrom@reactloom/themesrc/App.tsx: a small starter page, only if you don't have one yet
Then install the packages:
pnpm add @reactloom/ui @reactloom/themeOptions
npx @reactloom/cli init --accent teal --radius rounded --yes| Option | Values | Default |
| --- | --- | --- |
| --accent | indigo, teal, emerald, amber, rose | indigo |
| --radius | sharp, default, rounded, pill | default |
| --yes | Use the options given (or the defaults) without asking | |
| --force | Replace an existing src/theme.ts | |
Without --force the CLI never overwrites src/theme.ts. Requires Node.js 22 or later.
Theming guide: https://www.reactloom.dev/docs/theming
