What problem does it solve?
This Skill provides guidance for using the @landfolk/tx styling workflow to replace verbose className strings with grouped, deterministic Tailwind utilities in React/Next.js projects.
Core Features & Use Cases
- Grouping syntax: write hover:(bg-blue-500 text-white) and similar patterns to produce clean className output.
- Compile-time transformation: SWC plugin rewrites tx props to className during build.
- Linting & validation: ESLint rules ensure proper grouping and config-validated classes.
- Use Case: streamline component styling for dashboards and marketing pages with consistent Tailwind usage.
Quick Start
Install the tx tooling packages, configure Next.js SWC plugin, and enable the Tailwind transformer and linting rules. Then begin using tx in components, for example: <div tx="hover:(bg-blue-500 text-white)" />.