KS
Killer-Skills

tx-styling — how to use tx-styling how to use tx-styling, tx-styling setup guide, Tailwind CSS optimization, tx-styling vs className, install tx-styling, debugging tx-styling in React, tx-styling for Next.js, what is tx-styling, tx-styling best practices

v1.0.0
GitHub

About this Skill

Perfect for Frontend Agents specializing in React and Next.js applications needing optimized Tailwind CSS styling and debugging capabilities. tx-styling is a compile-time Tailwind grouping and linting tool, designed to streamline the use of Tailwind classes in component development.

Features

Prefer `tx` over `className` for Tailwind classes
Use arrays for conditional styles, avoiding string concatenation
Utilize grouping syntax like `hover:(bg-blue-500 text-white)`
Forward only `className` props, not `tx` props
Optimize styleable components with specific linting rules

# Core Topics

landfolk landfolk
[0]
[0]
Updated: 3/7/2026

Quality Score

Top 5%
51
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add landfolk/tx/tx-styling

Agent Capability Analysis

The tx-styling MCP Server by landfolk is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for how to use tx-styling, tx-styling setup guide, Tailwind CSS optimization.

Ideal Agent Persona

Perfect for Frontend Agents specializing in React and Next.js applications needing optimized Tailwind CSS styling and debugging capabilities.

Core Value

Empowers agents to efficiently manage Tailwind classes using the `tx` prop, streamline conditional styles with arrays, and leverage grouping syntax for hover effects, all while ensuring seamless integration with `@landfolk/tx` and adherence to best practices for `tx` template literals and linting.

Capabilities Granted for tx-styling MCP Server

Optimizing component styling with `tx` prop
Debugging Tailwind extraction and linting issues
Integrating `@landfolk/tx` into React/Next.js applications for enhanced styling

! Prerequisites & Limits

  • Requires React or Next.js environment
  • Specific to Tailwind CSS and `@landfolk/tx` library
Project
SKILL.md
1.7 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

tx styling

When to use

  • Editing components that use the tx prop or tx template literals.
  • Integrating @landfolk/tx into a React/Next.js app.
  • Debugging grouping, Tailwind extraction, or linting around tx.

Core rules

  • Prefer tx over className for Tailwind classes.
  • Use arrays for conditional styles; avoid string concatenation.
  • Use grouping syntax like hover:(bg-blue-500 text-white).
  • Do not forward tx props; only forward className.
  • For styleable components, merge className into tx.

Tooling overview

  • SWC plugin rewrites tx to className at compile time.
  • Tailwind transformer expands grouped classes for JIT extraction.
  • ESLint rule sorts and validates classes.

Grouping syntax

Example:

tsx
1<div tx="hover:(bg-blue-500 text-white)" />

Compiles to className="hover:bg-blue-500 hover:text-white". Groups can be nested.

SWC transform

  • tx="..." becomes className="...".
  • Arrays like tx={[cond && tx...]} become joined className arrays.
  • Tagged tx templates expand at compile time.
  • In dev, class strings can be wrapped with a conflict checker if registered.

Register the dev-only conflict checker once:

ts
1import '@landfolk/tx/checkConflicts'

Tailwind transformer

The transformer scans tx attributes and template literals to expand grouped syntax into full class lists so Tailwind JIT sees every class.

ESLint rule

@landfolk/tx/optimize-tailwind-classes:

  • Expands grouped syntax and re-compacts in a stable order.
  • Sorts classes using Tailwind's internal order.
  • Normalizes whitespace in arbitrary values.
  • Can validate class names when given a Tailwind config path.

Getting started

See getting-started.md for install, config, and Next.js compatibility.

Related Skills

Looking for an alternative to tx-styling or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication