@csszyx/cli
v0.8.0
Published
Command-line tools for csszyx
Readme
@csszyx/cli
Command-line tools for CSSzyx.
Review usage stats, diagnose issues, and initialize projects.
Installation
npm install -g @csszyx/cli
# or run via npx
npx csszyx <command>Commands
init
Initialize CSSzyx in a new or existing project.
npx csszyx initdoctor
Diagnose configuration and mangling issues.
npx csszyx doctoraudit
View performance statistics and mangle compression rates.
npx csszyx auditgenerate-types
Not applicable for Tailwind v4 projects.
CSSzyx requires Tailwind v4, which replaces
tailwind.config.jswith@theme {}blocks in CSS. This command uses Tailwind v3'sresolveConfig()API to parse JS config files — that API does not exist in v4.For v4 projects, use the plugin's
build.scanCssoption instead. See Plugin Config docs.This command is kept for potential future Tailwind v3 compatibility support. If your project needs it, open an issue.
npx csszyx generate-types
npx csszyx generate-types --config ./path/to/tailwind.config.js
npx csszyx generate-types --output ./src/csszyx.d.tsmigrate
Convert Tailwind className="..." to CSSzyx sz={...} props. Phase 1 supports static string classNames.
npx csszyx migrate src/
npx csszyx migrate --dry-run # preview changes
npx csszyx migrate --ignore "*.test.*" # skip test filesLicense
MIT © CSSzyx contributors
