This skill guides using @landfolk/tx styling in React/Next.js, optimizing grouping, compile-time transforms, and linting for reliable Tailwind classes.
npx playbooks add skill landfolk/tx --skill skills
tx prop or tx template literals.@landfolk/tx into a React/Next.js app.tx.tx over className for Tailwind classes.hover:(bg-blue-500 text-white).tx props; only forward className.className into tx.tx to className at compile time.Example:
<div tx="hover:(bg-blue-500 text-white)" />
Compiles to className="hover:bg-blue-500 hover:text-white".
Groups can be nested.
tx="..." becomes className="...".tx={[cond && tx...]} become joined className arrays.tx templates expand at compile time.Register the dev-only conflict checker once:
import '@landfolk/tx/checkConflicts'
The transformer scans tx attributes and template literals to expand grouped
syntax into full class lists so Tailwind JIT sees every class.
@landfolk/tx/optimize-tailwind-classes:
See getting-started.md for install, config, and Next.js compatibility.
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.