# Tailwind vite assets

> Tailwind vite assets is an open-source agent skill for developer tools. Guides Tailwind 4 and Vite asset builds for Roots/Acorn WordPress projects. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/hekivo/kivo-wise/tree/main/plugins/kivo-wise/skills/tailwind-vite-assets
- **Repository:** https://github.com/hekivo/kivo-wise
- **GitHub stars:** 14
- **License:** MIT
- **Skill name:** tailwind-vite-assets
- **Collection:** https://github.com/hekivo/kivo-wise
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill helps an agent work on the front-end build of a Roots/Acorn WordPress project, where Vite runs through laravel-vite-plugin and Acorn reads the generated manifest via the Vite facade and the @vite Blade directive. Tailwind 4 is configured in CSS rather than a tailwind.config.js file, so the skill covers tokens with @theme, source scanning with @source, and per-component reuse with @reference.

The workflow starts by reading the existing Vite config, package.json, stylesheet entries and any asset config before editing. It walks through listing every entry the browser or editor loads, choosing the right build base for a theme, plugin or block-theme profile, setting up the dev server with HMR for Lando or Docker Compose, and running the production build. It also covers a plugin-specific manifest rule so asset URLs do not point at the theme folder, plus a verification checklist and a troubleshooting table for common symptoms such as missing styles and 404s.

The skill expects a Node-based project with a package manager and a Vite setup, and it prefers native WordPress mechanisms like theme.json and block.json asset fields before adding build steps.

## When your agent uses it

> Use when working on the front-end build of a Roots/Acorn project - vite.config.js, laravel-vite-plugin, @roots/vite-plugin, Tailwind 4 (@theme, @source, @reference), design tokens, Vite::asset and @vite URLs (including from an mu-plugin), public/build, manifest.json, public/hot, HMR through Lando or Docker Compose (kivo-wp), editor.css, "styles missing", "assets 404". For block registration in PHP use acorn-scaffolding; for container networking use lando-wp or compose-wp.

## What it can access

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

- [Instructions only, no scripts](https://github.com/hekivo/kivo-wise/tree/HEAD/plugins/kivo-wise/skills/tailwind-vite-assets)
- [License: MIT](https://github.com/hekivo/kivo-wise/tree/HEAD/plugins/kivo-wise/skills/tailwind-vite-assets)

## Features

- **Vite entry configuration:** Explains how to list every stylesheet and script entry so Acorn can resolve it in the manifest.
- **Tailwind 4 CSS setup:** Covers @theme tokens, @source scanning and @reference use in component stylesheets without a JS config.
- **Build base per profile:** Sets the correct public build path for theme, plugin or block-theme projects.
- **Dev server and HMR wiring:** Guides host, port and HMR settings so the browser can reach the Vite dev server inside Lando or Compose.
- **Asset URL verification:** Checks manifest contents, public/hot state and generated URLs after a build.
- **Common failure fixes:** Maps symptoms such as missing styles, 404s and manifest errors to likely causes and fixes.

## Good for

- Fix styles that go missing after a Vite build in a Roots theme
- Set up Tailwind 4 design tokens in a Sage or Acorn project
- Make Vite assets load correctly from an mu-plugin
- Configure Vite HMR so edits show up in a Lando or Docker Compose site
- Debug a 404 on built CSS files under public/build

## Install

### Claude Code

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

```sh
/plugin marketplace add hekivo/kivo-wise
/plugin install kivo-wise@kivo-wise
```

Or copy only this skill to `~/.claude/skills/tailwind-vite-assets`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/hekivo/kivo-wise.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/tailwind-vite-assets &&
cp -R "$tmp/plugins/kivo-wise/skills/tailwind-vite-assets" ~/.claude/skills/tailwind-vite-assets &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/tailwind-vite-assets` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/tailwind-vite-assets` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/hekivo/kivo-wise.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/tailwind-vite-assets &&
cp -R "$tmp/plugins/kivo-wise/skills/tailwind-vite-assets" ~/.agents/skills/tailwind-vite-assets &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/tailwind-vite-assets` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/tailwind-vite-assets` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/hekivo/kivo-wise.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/tailwind-vite-assets &&
cp -R "$tmp/plugins/kivo-wise/skills/tailwind-vite-assets" ~/.cursor/skills/tailwind-vite-assets &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/tailwind-vite-assets` 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/hekivo/kivo-wise.git --path plugins/kivo-wise/skills/tailwind-vite-assets
```

Or copy the folder to `~/.gemini/skills/tailwind-vite-assets` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/tailwind-vite-assets`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/hekivo/kivo-wise.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/tailwind-vite-assets &&
cp -R "$tmp/plugins/kivo-wise/skills/tailwind-vite-assets" ~/.copilot/skills/tailwind-vite-assets &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/tailwind-vite-assets` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/hekivo/kivo-wise.git
```

Then copy `kivo-wise/plugins/kivo-wise/skills/tailwind-vite-assets` into your agent's skills folder as `tailwind-vite-assets`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does Tailwind vite assets work with a tailwind.config.js file?

No. It states that Tailwind 4 is configured in CSS and that there is no tailwind.config.js in this setup, and it tells the agent not to create one.

### When does Tailwind vite assets trigger?

It is meant for work on the front-end build of a Roots/Acorn project, such as vite.config.js, @vite URLs, public/build, HMR through Lando or Docker Compose, editor.css, and symptoms like styles missing or assets returning 404.

### What does the skill ask the agent to check first?

It asks the agent to read vite.config.js, package.json, resources/css/app.css, config/assets.php if present, and the layout that calls @vite before making changes.

### Does Tailwind vite assets cover container networking itself?

No. For block registration in PHP it points to acorn-scaffolding, and for container networking it hands off to lando-wp or compose-wp.

### How do I install Tailwind vite assets in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/tailwind-vite-assets to use it in all your projects, or to .claude/skills/tailwind-vite-assets in one project. Or install the kivo-wise plugin, which includes it: /plugin marketplace add hekivo/kivo-wise, then /plugin install kivo-wise@kivo-wise.

### Does Tailwind vite assets 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 Tailwind vite assets?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Tailwind vite assets?

The closest alternatives to Tailwind vite assets are Tailwindcss4, Craft site, Build tooling, Vitepress and Acorn livewire.

## Where this comes from

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

## Alternatives

- [Tailwindcss4](https://ai-powered.com/skills/tailwindcss4): Tailwindcss4 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.
- [Build tooling](https://ai-powered.com/skills/build-tooling): Build tooling is an open-source agent skill for developer tools.
- [Vitepress](https://ai-powered.com/skills/vitepress): Vitepress is an open-source agent skill for developer tools.
- [Acorn livewire](https://ai-powered.com/skills/acorn-livewire): Acorn livewire is an open-source agent skill for developer tools.
- [Nuxt4 frontend](https://ai-powered.com/skills/nuxt4-frontend): Nuxt4 frontend is an open-source agent skill for developer tools.
- [Acorn stack](https://ai-powered.com/skills/acorn-stack): Acorn stack is an open-source agent skill for developer tools.
- [Web artifacts builder](https://ai-powered.com/skills/web-artifacts-builder): Web artifacts builder is a free agent skill for developer tools.

---
Source: https://ai-powered.com/skills/tailwind-vite-assets
