Tailwind CSS
Writes and debugs Tailwind CSS: utility classes, theme config, dark mode, variants, plugins, and build setup. Not for CSS mechanics themselves — stacking…
от clawic★ 23 звезды на GitHub
Установить Tailwind CSS в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
User preferences and memory live in ~/Clawic/data/tailwindcss/ (see setup.md on first use, memory-template.md for the file format). If you have data at an old location (~/tailwindcss/ or ~/clawic/tailwindcss/), move it to ~/Clawic/data/tailwindcss/, and say in one line that you moved it and from where.
Configuration
User-dependent variables. Defaults apply until the user states a preference; store them in ~/Clawic/data/tailwindcss/config.yaml.
| Variable | Type | Default | Effect |
|---|---|---|---|
| tailwind_version | 3 | 4 | 4 | Selects the config surface of every answer: 4 emits @import "tailwindcss", @theme, @source, @utility, suffix !; 3 emits tailwind.config.js, @tailwind directives, content, safelist, prefix ! |
| build_integration | vite | postcss | cli | browser | vite | Which install steps and config files installation.md emits, and where the scan root sits |
| dark_mode_strategy | media | class | data-attribute | media | The variant definition emitted in CSS, and whether toggle code plus the paint-blocking script ships with it (dark-mode.md) |
| component_syntax | jsx | vue-sfc | svelte | astro | html | jsx | Markup language of every emitted example, and which @apply/@reference rules apply (frameworks.md) |
| merge_helper | cn | clsx | tailwind-merge | none | cn | Helper wrapped around conditional or overridable class props in emitted components (components.md) |
| rem_base | number px (10-16) | 16 | Every px↔rem conversion for utilities in Utility Scale Math (p-4 = 4 × 0.25rem = 1rem = rem_base px). Breakpoints are exempt — see that section |
| token_threshold | number (2-5) | 3 | Uses of the same value before it must become a theme token: gates Core Rule 2, the promotion rules in arbitrary-values.md and variants.md, and the second Output Gate |
| text_direction | ltr | rtl | both | ltr | ltr emits physical utilities (ml-4, text-left, border-l); rtl and both emit logical ones (ms-4, text-start, border-s) everywhere and add dir to example markup (variants.md) |
| a11y_target | aa | aaa | aa | Which contrast and target-size rows gate output: AA = 4.5:1 body and size-6; AAA = 7:1 body and size-11 (accessibility.md) |
Preference areas to record as the user reveals them:
- tooling — formatter and lint stack (
prettier-plugin-tailwindcss, ESLint class rules), IntelliSense regex for custom helpers, how eagerly to adopt new majors - conventions — theme namespace naming, CSS entrypoint layout, where component classes are allowed to live
- design system — palette source (default palette, brand tokens, an imported token pipeline), spacing and type scale overrides, multi-brand or white-label needs
- integrations — UI kit in play (shadcn/ui, Headless UI, Radix, daisyUI, Flowbite): decides the variant idiom (
data-[state=…]) and the class-merging strategy - risk posture — appetite for arbitrary values and the
!modifier, whether Preflight may be dropped, tolerance for features above the v4 browser floor - constraints — banned techniques (
@apply, browser build, runtime class construction), legacy stylesheets that must keep winning, email or WebView targets - output — whether to show the generated CSS, and whether to name the mechanism before giving the fix
When To Use
- Writing or reviewing Tailwind markup,
@theme/tailwind.config.js, custom utilities, or plugins - Debugging: a class emits nothing, emits but loses, works in dev and not in production, or fires in the wrong state
- Setting up or migrating: first install, framework wiring, v3 → v4, adding Tailwind to a codebase that already has CSS
- Design-system work in Tailwind: tokens, dark mode, multi-brand theming, component variant APIs
- Build health: rebuild speed, CSS bundle size, monorepo and library scanning
- Not for CSS mechanics or taste — why a flex child overflows belongs to
css, palette and scale choices todesign-system
Quick Reference
| Situation | Play |
|---|---|
| Class is in the markup, no CSS in the output | The scanner never saw the string (→ Class Detection); dynamic name or unscanned file → missing-styles.md |
Works in dev, gone after build |
Same scanner problem, plus config drift between dev and build → missing-styles.md |
| CSS is generated but the element ignores it | Cascade And Conflicts below, then debugging.md symptom chains |
| Your own CSS silently beats every utility | Unlayered author CSS outranks every cascade layer in v4 (→ Cascade And Conflicts) |
Two utilities of the same property fight (px-4 px-6) |
Sheet order decides, not attribute order; runtime merging → components.md |
hover:, group-hover:, peer-*, has-[…], data-[…] won't fire |
variants.md |
dark: does nothing, or the theme flashes on load |
dark-mode.md |
| Custom color, spacing step, font, breakpoint, or keyframe | theming.md |
| A one-off value the theme has no |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- _meta.json
- accessibility.md
- adoption.md
- animations.md
- arbitrary-values.md
- components.md
- dark-mode.md
- debugging.md
- frameworks.md
- installation.md
- layout.md
- memory-template.md
- missing-styles.md
- performance.md
- plugins.md
- responsive.md
- setup.md
- theming.md
- v4-migration.md
- variants.md
FAQ
Что делает скилл Tailwind CSS?
Writes and debugs Tailwind CSS: utility classes, theme config, dark mode, variants, plugins, and build setup. Not for CSS mechanics themselves — stacking contexts, flex sizing, and cascade behavior belong to the `css` skill. Use when a class produces no CSS, when dynamically built names (`bg-${color}-500`) never render, when styles work in dev but vanish after deploy, when your own CSS beats a utility or can't override one, when `@apply` breaks inside a Vue, Svelte, or CSS-module file, when `hover:`, `group-hover:`, `peer-*`, `has-[…]`, or `dark:` won't fire, when upgrading v3 to v4 (`@tailwind` directives, `tailwind.config.js` → `@theme`, renamed utilities), when adding custom colors, spacing, breakpoints, fonts, or keyframes, when wiring Tailwind into Vite, Next.js, Astro, SvelteKit, Rails, or Laravel, when the CSS bundle is huge or rebuilds crawl, when Preflight flattens third-party widgets, or when choosing between `@apply`, a component, and `tailwind-merge`.
Как установить скилл Tailwind CSS?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Tailwind CSS запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…