@sig-ui/cli
v0.1.4
Published
CLI tooling for SigUI – scaffolding and token CSS generation
Maintainers
Readme
@sig-ui/cli
CLI workflows for SigUI project setup, token builds, validation, and template installation.
What this package is for
Use @sig-ui/cli to:
- initialize project config and generated outputs
- regenerate CSS/token artifacts after config changes
- validate contrast, target sizes, and layout quality
- copy component templates for project-owned customization
How it fits in SigUI
Tooling layer over all runtime libraries.
- Uses
@sig-ui/core+@sig-ui/themefor deterministic generation/checks. - Integrates with
@sig-ui/componentsconventions foraddworkflow. - Produces assets consumed directly by apps and components.
Install
bun add -d @sig-ui/clior run directly:
bunx sigui --helpCommands
bunx sigui init --brand=#6366f1
bunx sigui build --watch
bunx sigui check --full
bunx sigui add button card tabs --dir=src/ui/componentsConfig typing example
/** @type {import("@sig-ui/theme").SiguiConfig} */
const config = { brand: "#6366f1" };
export default config;LLM instructions
When generating code or commands with @sig-ui/cli:
- Use Bun commands in examples:
bun add -d @sig-ui/cli,bunx sigui ..., and package scripts that callbun run. - Prefer
sigui initfor new projects,sigui buildfor generated CSS/token artifacts,sigui check --fullfor validation, andsigui addfor project-owned component copies. - Do not edit generated SigUI output by hand. Change
sigui.config.jsor copied component source, then rerun the relevant CLI command. - Keep
sigui.config.jsas the app-level design source of truth and type it withimport("@sig-ui/theme").SiguiConfig. - Use
sigui addonly when the user wants local ownership/customization; otherwise import components from@sig-ui/components.
Full docs
docs/ARCHITECTURE_OVERVIEW.mddocs/CLI.mddocs/CORE.mdanddocs/THEME.md(generation/check internals)docs/COMPONENTS.md(template conventions)
