Logo de Tailwind

Tailwind

Comunidade
nahid-sparktales
tailwind

Work inside an existing Tailwind codebase without degrading it — use the project's theme tokens instead of arbitrary values, extend the theme when a token is genuinely missing, extract repetition into components rather than @apply, resolve class conflicts with the project's merge helper, and make dark mode a token decision. Fires when writing or editing Tailwind classes in a repo that already uses it. Not for deciding whether to adopt Tailwind, not for visual design direction, and not a rendered-output check.

Visão geral

Publicado pornahid-sparktales
Repositórioagent-dispatcher
Nome da habilidadetailwind
Estrelas
58
Forks
5
Arquivos incluídos
1
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Arquivos incluídos: 1

    Scripts, templates e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente para leitura e nunca são executados.

  • Código aberto

    Publicada por nahid-sparktales no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Tailwind no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/frontend/tailwind
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/nahid-sparktales/agent-dispatcher.git /tmp/agent-dispatcher
mkdir -p .claude/skills
cp -r /tmp/agent-dispatcher/skills/frontend/tailwind .claude/skills/tailwind
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Tailwind em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Tailwind automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Tailwind não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Tailwind

A Tailwind codebase degrades one arbitrary value at a time. Every value you hardcode is a design decision the theme can no longer make.

When this fires

Writing or editing Tailwind utility classes in a project that already uses Tailwind. It does not fire for choosing a styling approach, for visual design direction, or for CSS in a project that does not use Tailwind.

Procedure

  1. Read the theme before writing a class. Tailwind's major versions place theme configuration differently — a JS/TS config file in some, a CSS-side theme block in others — so find where this project defines its tokens (and confirm the version from the lockfile; see stack-detection). Read the colors, spacing, radius, font and breakpoint tokens that exist.
  2. Read one or two existing components in the same area. The class vocabulary a team actually uses is a stronger constraint than what Tailwind permits.
  3. Reach for a token before a value. Semantic color tokens over raw palette steps, scale spacing over pixel values. If you are about to type a bracketed arbitrary value, first check whether a token covers it.
  4. When no token covers it, add the token — do not sprinkle the value. Ask whether this is a one-off (one arbitrary value, with a comment saying why) or a design decision (belongs in the theme). Adding a theme token changes the whole app's vocabulary, so say what you are adding and why in the report.
  5. Do not extract on the second repetition. Two similar class lists are cheaper than a wrong abstraction. At the third, extract a component — the props and boundaries question is component-architecture, not a CSS question. Reserve @apply for a genuinely global primitive in the stylesheet; an @apply block that reimplements a component is worse than the repetition.
  6. Merge conditional classes with the project's helper. Later position in the class string does not win a conflict — the generated stylesheet's order decides, so p-2 and p-4 in one string resolve unpredictably. Use the project's existing cn/merge utility for any conditional or overridable class, and pass overrides through it rather than concatenating.
  7. Never build a class name from a fragment. Tailwind finds classes by scanning source text, so bg-${color}-500 produces no CSS. Write full class strings in a lookup map, and confirm the file you are editing is inside the project's content/source scan paths — a class in an unscanned file silently produces nothing.
  8. Make dark mode a token decision, not a per-utility one. Check the project's dark-mode strategy first (media query vs a class/attribute toggle) and follow it. Prefer semantic tokens whose values differ per theme over stacking a dark: variant on every utility; add dark: where the token system genuinely cannot express the difference.
  9. Keep the class order the project keeps. If a class-sorting formatter is configured, run the project's format command rather than hand-sorting.
  10. Look at it in both themes and at the breakpoints you touched. Class lists are not evidence of rendering; hand that off to browser-verification.

Checklist

  • Theme tokens read before classes were written
  • No arbitrary value that an existing token covers
  • Any new token added to the theme, with the reason stated
  • Repetition extracted at the third occurrence, as a component
  • @apply used only for a global primitive, if at all
  • Conditional/override classes routed through the project's merge helper
  • No class name assembled from fragments
  • Dark mode expressed through tokens where the system allows it
  • Project formatter run; class order matches the codebase
  • Light and dark rendered and looked at, not inferred

Failure handling

  • A class is in the source but no style appears — check, in order: the file is inside the scan paths, the class name is a complete literal string, the utility actually exists in this major version, and the build was re-run.
  • A style applies but the wrong value wins — a conflict, not a specificity puzzle. Route both classes through the merge helper instead of adding !important.
  • Dark mode is right in one place and wrong in another — the two places are using different mechanisms (one token, one dark: variant). Unify on the project's strategy.
  • A design needs a value no token has and the theme owner is not you — use one arbitrary value with a comment and raise the missing token. Do not add tokens to a shared theme unasked; that is a change to every screen.
  • A theme token's value needs changing — that repaints the app. Stop and ask before editing an existing token's value, even when it looks obviously wrong.

Evidence to report

The tokens used; any token added, with its file and the reason; the count of arbitrary values left and why each survived; whether repetition was extracted or deliberately left; and confirmation that light and dark were both rendered, or a plain statement that they were not.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Tailwind faz?

Work inside an existing Tailwind codebase without degrading it — use the project's theme tokens instead of arbitrary values, extend the theme when a token is genuinely missing, extract repetition into components rather than @apply, resolve class conflicts with the project's merge helper, and make dark mode a token decision. Fires when writing or editing Tailwind classes in a repo that already uses it. Not for deciding whether to adopt Tailwind, not for visual design direction, and not a rendered-output check.

Por que usar Tailwind no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Tailwind é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Tailwind no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/frontend/tailwind. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Tailwind?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Tailwind?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Tailwind com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Tailwind é gratuita?

Sim. A habilidade é publicada no GitHub por nahid-sparktales sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇