Skill / SKILL.md

Tailwind Best Practices

evilmartians/agent-skills

Write Tailwind CSS following practices that keep a fast-to-write codebase maintainable — use design tokens instead of magic values, keep class lists short, group tokens semantically, generate classes in consistent order, avoid @apply for extracting repeated styles, and use fixed variants instead of arbitrary className props. Use this whenever writing or editing Tailwind classes, components, or config, and also when reviewing, cleaning up, refactoring, or auditing an existing Tailwind project, including messy or AI-generated Tailwind code, long className strings, inconsistent class order, or design system components. Do NOT use for general CSS architecture unrelated to Tailwind, or for build tooling unrelated to CSS output (bundlers, JS minification, etc.).
3 views 69 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Write Tailwind CSS following practices that keep a fast-to-write codebase maintainable — use design tokens instead of magic values, keep class lists short, group tokens semantically, generate classes in consistent order, avoid @apply for extracting repeated styles, and use fixed variants instead of arbitrary className props. Use this whenever writing or editing Tailwind classes, components, or config, and also when reviewing, cleaning up, refactoring, or auditing an existing Tailwind project, including messy or AI-generated Tailwind code, long className strings, inconsistent class order, or design system components. Do NOT use for general CSS architecture unrelated to Tailwind, or for build tooling unrelated to CSS output (bundlers, JS minification, etc.).

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/evilmartians/agent-skills' skill-source

Use the complete skill-source/skills/tailwind-best-practices directory with your client’s skill installer.

  • skills/tailwind-best-practices

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/tailwind-best-practices

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Included files
Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
1cb2e2ceaafc70d76aa967d6b0ee5af88f7a540119af9c64164be968bba53cfa
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills