/setup
/setup is the one-shot bootstrap command. It front-loads everything acss-kit needs so subsequent commands like /kit-add and /theme-create work without prompting for project conventions every time.
Run it once after installing the plugin in a new (or existing) React + TypeScript project.
Syntax
Section titled “Syntax”/setup [--no-theme] [--target=<dir>]| Flag | Description |
|---|---|
--no-theme | Skip the starter light/dark theme step. Useful when you already have a theme or plan to run /theme-create separately. |
--target=<dir> | Override the components directory. Defaults to src/components/fpkit/ (or whatever is recorded in .acss-target.json). |
What it does
Section titled “What it does”The skill executes eight sequential steps. Every step is idempotent — re-running /setup is safe and never overwrites existing files.
- Verify React + TypeScript — Halts if either is missing from
dependencies/devDependencies. - Check the React major version — Warns if React 19+ is detected, since
ui.tsxmay need adjustments. - Detect the package manager — Reads
packageManagerand lockfiles to choosenpm,pnpm,yarn, orbun. - Verify Sass — Halts with copy-paste install instructions if neither
sassnorsass-embeddedis present. - Set the components target — Prompts for the directory or reuses
.acss-target.jsonif it exists. - Copy
ui.tsx— Writes the foundation file from plugin assets to the target. - Seed a starter theme — Generates
light.cssanddark.cssfrom a hex seed (skipped with--no-theme). - Wire theme imports — Detects the CSS/SCSS entry point and adds idempotent
@importstatements.
A summary table at the end lists what was created versus what was kept, so you always know which files the command touched.
Examples
Section titled “Examples”Run the standard bootstrap:
/setupBootstrap a project that already has its own theme:
/setup --no-themeUse a non-default components directory:
/setup --target=src/ui/fpkit/After setup
Section titled “After setup”Once /setup completes, the typical next moves are:
/kit-add button card # generate your first components/theme-create "#4f46e5" # generate a full WCAG-validated theme/utility-add # if acss-utilities is also installed