Skip to content

UI & Design

Tailwind v4 + Vite

Free

Set up and use Tailwind CSS v4 in Vite projects with the official @tailwindcss/vite plugin.

Difficulty foundational
Version v1.1

Purpose

Install the original Tailwind v4 + Vite instruction file from github/awesome-copilot and use it in GitHub Copilot.

Procedure

--- name: copilot-tailwind-v4-vite description: Set up and use Tailwind CSS v4 in Vite projects with the official @tailwindcss/vite plugin. ---

Tailwind v4 + Vite

Purpose

Install the original Tailwind v4 + Vite instruction file from github/awesome-copilot and use it in GitHub Copilot.

Procedure

Source: https://github.com/github/awesome-copilot/blob/main/instructions/tailwind-v4-vite.instructions.md Maintainer: GitHub (github/awesome-copilot). Skilling lists this instruction file; the original lives in that repository.

Install

mkdir -p .github/instructions
curl -fsSL https://raw.githubusercontent.com/github/awesome-copilot/main/instructions/tailwind-v4-vite.instructions.md -o .github/instructions/tailwind-v4-vite.instructions.md

Run this in the root of your repository. Copilot applies the file to the paths in its applyTo line. Commit the file so the whole team gets it.

What it does

  • Official @tailwindcss/vite setup
  • v4 config, not v3 habits
  • Applies to Vite, CSS and TSX files

How to use it

Copilot applies it to Vite config, CSS and component files.

Example requests

1. Use Tailwind v4 + Vite

Request: Copilot applies it to Vite config, CSS and component files. Expected: Official @tailwindcss/vite setup.

Dependencies

GitHub Copilot in a repository, and curl.

Compatibility

This document follows the Agent Skills layout (a folder named copilot-tailwind-v4-vite containing SKILL.md). Claude Code, Cursor, Codex, and Gemini CLI can load that file from the paths in the Skilling installation guide. GitHub Copilot does not load SKILL.md. Use the Copilot instructions copy, and narrow applyTo before you commit it.

Example prompts

Use Tailwind v4 + Vite

Copilot applies it to Vite config, CSS and component files.

Expected: Official @tailwindcss/vite setup.

Choose the agent

This skill is installed for one agent at a time. Pick the section you are using.

Related

  • Accessibility (WCAG 2.2)

    Web accessibility standards based on WCAG 2.2 AA, with common anti-patterns, ARIA patterns and framework fixes.

  • HTML/CSS Color Guide

    Color usage and styling rules for HTML elements so designs stay accessible and professional.

  • Next.js App Router

    Best practices for Next.js App Router apps: caching, tooling and server/client boundaries.

Reviews

No reviews yet.

    Sign in to review.

    Report a problem

    Inaccurate steps, an unsafe instruction, or a licensing concern.

    Sign in to report.