@sobagu/cli
v0.1.2
Published
Sobagu CSS command line: migrate utility classes to style props, init, tokens
Maintainers
Readme
@sobagu/cli
The Sobagu command line:
migrate: turns utility classes in JSX/TSXclassNameinto Sobagu props on a<Box>. Dry run by default; classes with no mapping are kept and listed, never dropped.init: prints the install command for your framework (and writes a config stub with--write).tokens: prints the design tokens, or writes them as W3C Design Tokens (DTCG) JSON for design tools.audit: WCAG contrast check of the theme colours (exits with 1 on failure).
Install
npm i -D @sobagu/cliNeeds Node 22.18+ or 24.11+.
Usage
npx sobagu --help
npx sobagu migrate "src/**/*.tsx" # dry run: shows what would change
npx sobagu migrate "src/**/*.tsx" --report # plus kept classes and approximations
npx sobagu migrate "src/**/*.tsx" --write # save the changes
npx sobagu tokens --json --out sobagu.tokens.json
npx sobagu audit --brand "#0f766e"Run migrate --write on a clean git tree and review the diff.
Docs
Sobagu is in 0.x: the commands and their output can still change between minor versions.
Licence
MIT © 2026 Sobagu contributors
