/web:tailwindfrom web
Writes Tailwind CSS class names, theme tokens, and dark mode styles matching the installed major version. Handles setup, upgrades, and CVA variants. Does not apply to plain CSS projects.
Ships in web. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Write Tailwind styling that the build generates, that matches the installed version and that adds nothing the requester did not ask for.
web:css. In a Tailwind project, this skill covers the class names and the stylesheet that Tailwind processes.web:react.Read a reference only when the task needs it:
| Reference | Read for |
|---|---|
| setup.md | Tailwind config, global CSS, CSS variables for theming, the token hierarchy |
| cva-components.md | A CVA component, after Component variants selects CVA |
| animations.md | Entry and exit animations, dialog transitions, tailwindcss-animate |
| utilities.md | Class composition with cn, shared focus and disabled-state strings |
| best-practices.md | Semantic naming, accessible names, dark mode, arbitrary values, @apply, responsive and animation performance |
Before you write Tailwind syntax, read the installed major version. Tailwind 3 and Tailwind 4 syntax is not interchangeable. Before you use a feature that a later minor version added, such as @source inline(...) in Tailwind 4.1, read the minor version too. In your reply, name the installed major version and the path it uses: CSS-first for Tailwind 4, config-based for Tailwind 3.
Tailwind 4 (CSS-first):
@import "tailwindcss";.@theme block..dark or [data-theme="dark"], declare the token in @theme inline. Then state both halves of the reason in your reply:
@theme variable that references another variable resolves once at the root, so its utility keeps the root value inside a nested override.@theme inline puts the variable reference in the generated utility, so the value resolves on the element that uses it.@tailwindcss/vite plugin. It replaces the PostCSS setup. Keep a working @tailwindcss/postcss integration where you find one.@source only when Tailwind cannot reach it, such as an ignored directory or a path outside the project root.Tailwind 3 (config-based):
@tailwind base;, @tailwind components; and @tailwind utilities;.theme.extend in tailwind.config.*. Set content and darkMode there. See setup.md.Do not add a config file, content glob, PostCSS setup or dependency unless the observed project requires it (principle-foundational-thinking).
Tailwind generates CSS only for class names that appear as complete literal strings in the files it scans. It reads source as plain text and never evaluates it, so it never generates a name built at run time, such as `bg-${color}-600`. Such a component looks correct only while another scanned file contains the same names. Treat every dynamic class name as a defect.
When you change how a component builds its class names:
Put the utilities that every variant shares in one base string. Give each finite typed variant a complete literal class string. Choose the mechanism:
Record<Variant, string> map. It needs no dependency. Use it by default, and always when the task forbids new packages.class-variance-authority). Use it when the project already installs the package, or when the requester asks for CVA and accepts the dependency. CVA derives the prop types, which helps with several independent axes, such as variant plus size. See cva-components.md.Do not add class-variance-authority on your own initiative (Dependencies).
Do not fix a dynamic class name with a safelist: it hides which variants the component uses and grows the generated CSS. Safelist only a known, finite set of names that cannot appear in scanned source. Tailwind 4.1 and later write it as @source inline(...); Tailwind 4.0 does not have it. For a name unknown until run time, such as a class read from a database, map each external value to a literal class in your source, with a default for an unrecognised value.
Before you write a component that takes a ref, read the installed React version. In React 19, accept ref as a regular prop and do not add forwardRef or displayName. Use forwardRef only on React 18 or earlier.
Give every interactive element a visible keyboard-focus indicator (focus-visible:) with an outline style, width and colour. Do not use only a ring: a ring is a box-shadow, and forced-colours mode removes box-shadows.
outline-none sets outline-style: none, so an outline-<width> utility on the same element draws nothing. Remove outline-none, or add focus-visible:outline-solid beside the width. Give this reason in your reply.outline-hidden in Tailwind 4 and outline-none in Tailwind 3.Take each colour, spacing value or breakpoint from one of these sources:
Place a colour as follows:
bg-[#abc123].primary or destructive: add it to the semantic tokens (setup.md).--color-* token in @theme. In Tailwind 3, add it to theme.extend.colors.When the request names a project-specific value that nothing supplies, such as a brand colour, never present an invented value as the project's:
A missing value alone does not justify withholding the patch. When the patch stays valid with a marked placeholder, deliver it with the open question beside it. When the patch cannot be valid without the value, describe the change and ask for the value (principle-never-block-on-the-human).
Reuse the installed integration and helpers (principle-reuse-before-building). Add a package only when one of these is true:
When a request names an uninstalled package and also forbids new dependencies, do not silently pick one side. State the conflict, give the dependency-free equivalent, and tell the requester how to get the package if they still want it (principle-price-each-option).
What SKILL.md sets; muted values are Claude Code's defaults
10 skills in this plugin
/browser-testingWHEN authoring or repairing real-browser journeys or automated screenshot comparisons with the project's selected runner; NOT DOM-only tests, interactive visual judgement or verification-recipe maintenance; provides native-runner fixtures, assertions and visual-comparison guidance./chatgpt-app-sdkWHEN building ChatGPT apps using the OpenAI Apps SDK and MCP; NOT for OpenAI API chat completions, agent frameworks, or MCP servers with no ChatGPT widget; create conversational, composable experiences with proper UX, UI, state management, and server patterns./cssUSE WHEN writing, fixing or reviewing plain CSS or Sass for a web page, even a one-line change, including a rule that loses to another, a third-party stylesheet you cannot edit, units, spacing between components, shorthands, skip links, hidden and focus styles, or deleting styles that look unused; NOT WHEN the project uses Tailwind (tailwind.config.js, utility classes, CVA variants, Tailwind theme tokens); produces CSS that wins the cascade without ID selectors or reactive !important, scales with the reader's text size, keeps spacing in the parent and deletes styles only on evidence.npx claudepluginhub mintuz/skills --plugin webOther plugins' skills for the same job