# Tailwindcss4

> Tailwindcss4 is an open-source agent skill for developer tools. Guides an agent to style Nuxt and Vue UIs with Tailwind CSS 4 utilities and @theme tokens. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/pstuart/pstuart/tree/main/plugins/nuxt-modern-dev/skills/tailwindcss4
- **Repository:** https://github.com/pstuart/pstuart
- **GitHub stars:** 20
- **License:** MIT
- **Skill name:** tailwindcss4
- **Collection:** https://github.com/pstuart/pstuart
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill steers an AI coding agent toward utility-first styling for Nuxt and Vue projects that use Tailwind CSS 4 through the @tailwindcss/vite plugin. It sets rules such as preferring utility classes in templates over inline styles and scoped CSS, defining brand colors and fonts as design tokens in a CSS @theme block, and extracting repeated class clusters into components rather than long @apply blocks.

The skill includes a decision guide for common styling needs, a Nuxt 4 setup example with the Vite plugin and a main stylesheet, and a short checklist the agent can run before finishing. It also points to a separate reference file for moving a Tailwind 3 project to version 4, and notes that the agent should confirm the exact version from the repository lockfile.

It expects a Nuxt or Vue project and works with bun for installing Tailwind packages. Migration from the older @nuxtjs/tailwindcss module and tailwind.config.js is covered as part of that reference.

## When your agent uses it

> Use when styling Nuxt or Vue UI, migrating from Tailwind 3, configuring @tailwindcss/vite, writing utility classes, or tempted to add custom CSS or inline styles.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/pstuart/pstuart/tree/HEAD/plugins/nuxt-modern-dev/skills/tailwindcss4)
- [License: MIT](https://github.com/pstuart/pstuart/tree/HEAD/plugins/nuxt-modern-dev/skills/tailwindcss4)

## Features

- **Utility-first styling rules:** Directs the agent to express layout, color and spacing with Tailwind classes instead of inline or scoped styles.
- **Design tokens with @theme:** Shows how to define brand colors and fonts in a CSS @theme block instead of a JavaScript config.
- **Nuxt 4 Vite setup:** Provides the nuxt.config and stylesheet pattern for wiring the @tailwindcss/vite plugin into Nuxt.
- **Component extraction guidance:** Advises turning a repeated cluster of utility classes into a component rather than building an @apply system.
- **Tailwind 3 migration reference:** Links to a separate guide for moving a project from Tailwind 3 to version 4.
- **Pre-finish styling checklist:** Gives a short list of checks for inline styles, the Vite plugin and token usage before work is complete.

## Good for

- Style a Nuxt component with Tailwind utility classes
- Set up @tailwindcss/vite in a Nuxt 4 project
- Define brand colors and fonts in a Tailwind @theme block
- Migrate a Nuxt project from Tailwind 3 to Tailwind 4
- Refactor repeated button or card classes into a reusable component

## Install

### Claude Code

This skill ships in the `nuxt-modern-dev` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add pstuart/pstuart
/plugin install nuxt-modern-dev@pstuart
```

Or copy only this skill to `~/.claude/skills/tailwindcss4`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pstuart/pstuart.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/tailwindcss4 &&
cp -R "$tmp/plugins/nuxt-modern-dev/skills/tailwindcss4" ~/.claude/skills/tailwindcss4 &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/tailwindcss4` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/tailwindcss4` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pstuart/pstuart.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/tailwindcss4 &&
cp -R "$tmp/plugins/nuxt-modern-dev/skills/tailwindcss4" ~/.agents/skills/tailwindcss4 &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/tailwindcss4` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/tailwindcss4` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pstuart/pstuart.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/tailwindcss4 &&
cp -R "$tmp/plugins/nuxt-modern-dev/skills/tailwindcss4" ~/.cursor/skills/tailwindcss4 &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/tailwindcss4` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/pstuart/pstuart.git --path plugins/nuxt-modern-dev/skills/tailwindcss4
```

Or copy the folder to `~/.gemini/skills/tailwindcss4` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/tailwindcss4`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pstuart/pstuart.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/tailwindcss4 &&
cp -R "$tmp/plugins/nuxt-modern-dev/skills/tailwindcss4" ~/.copilot/skills/tailwindcss4 &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/tailwindcss4` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/pstuart/pstuart.git
```

Then copy `pstuart/plugins/nuxt-modern-dev/skills/tailwindcss4` into your agent's skills folder as `tailwindcss4`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to be installed?

The skill's examples use bun to add tailwindcss and @tailwindcss/vite as dev dependencies, and it targets Nuxt or Vue projects.

### Does Tailwindcss4 run any scripts?

No scripts are included. It is a set of instructions plus one reference file for migration.

### Which Tailwind version does Tailwindcss4 assume?

It assumes Tailwind 4.x via @tailwindcss/vite and tells the agent to confirm the exact version from the repository lockfile.

### Does Tailwindcss4 replace the @nuxtjs/tailwindcss module?

Yes, the skill says to use the @tailwindcss/vite plugin instead of the @nuxtjs/tailwindcss module, which it associates with the Tailwind 3 path.

### How do I install Tailwindcss4 in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/tailwindcss4 to use it in all your projects, or to .claude/skills/tailwindcss4 in one project. Or install the nuxt-modern-dev plugin, which includes it: /plugin marketplace add pstuart/pstuart, then /plugin install nuxt-modern-dev@pstuart.

### Does Tailwindcss4 run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Tailwindcss4?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Tailwindcss4?

The closest alternatives to Tailwindcss4 are Nuxt4 frontend, Tailwind vite assets, Nuxt, Craft site and Web quality.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Nuxt4 frontend](https://ai-powered.com/skills/nuxt4-frontend): Nuxt4 frontend is an open-source agent skill for developer tools.
- [Tailwind vite assets](https://ai-powered.com/skills/tailwind-vite-assets): Tailwind vite assets is an open-source agent skill for developer tools.
- [Nuxt](https://ai-powered.com/skills/nuxt): Nuxt is an open-source agent skill for developer tools.
- [Craft site](https://ai-powered.com/skills/craft-site): Craft site is an open-source agent skill for design and media.
- [Web quality](https://ai-powered.com/skills/web-quality): Web quality is an open-source agent skill for developer tools.
- [Setting up charcoal tailwind](https://ai-powered.com/skills/setting-up-charcoal-tailwind): Setting up charcoal tailwind is an open-source agent skill for developer tools.
- [Radix tailwind component patterns](https://ai-powered.com/skills/radix-tailwind-component-patterns-ajyadav013): Radix tailwind component patterns is an open-source agent skill for developer tools.
- [Choosing charcoal styling](https://ai-powered.com/skills/choosing-charcoal-styling): Choosing charcoal styling is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/tailwindcss4
