init-tailwind

init-tailwind is a command for Claude Code from Matt-Dionis/claude-code-configs. It costs 15 tokens per session (1,367 once invoked), scanned A, original, MIT.

A command that sets up Tailwind CSS in a new project, including its build dependencies, configuration files, and CSS entry point.

In plain words
What is it for?
Use it to initialize Tailwind CSS in Next.js, React/Vite, or plain HTML projects.
Why use it?
It removes the manual setup needed to connect Tailwind CSS with PostCSS and configure which project files it scans.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is npx tailwindcss -i ./src/input.css -o ./dist/output.css --watch.

Good fit Use it to initialize Tailwind CSS in Next.js, React/Vite, or plain HTML projects.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Matt-Dionis/claude-code-configs
agentmods
npx agentmods add commands/matt-dionis/claude-code-configs/init-tailwind

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for init-tailwind

README.md
[![agentmods](https://agentmods.dev/badge/commands/matt-dionis/claude-code-configs/init-tailwind/github.svg)](https://agentmods.dev/commands/matt-dionis/claude-code-configs/init-tailwind)
Your own site
<a href="https://agentmods.dev/commands/matt-dionis/claude-code-configs/init-tailwind"><img src="https://agentmods.dev/badge/commands/matt-dionis/claude-code-configs/init-tailwind/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for init-tailwind

Your own site · 80×15
<a href="https://agentmods.dev/commands/matt-dionis/claude-code-configs/init-tailwind"><img src="https://agentmods.dev/badge/commands/matt-dionis/claude-code-configs/init-tailwind.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,367 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00015 $0.01367
Opus 5.5 $0.00006 $0.00547
Sonnet 5.5 $0.00003 $0.00273
Haiku 4.5 $0.00002 $0.00137

Measured 1mo ago against content hash ae24d886df77, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

init-tailwind scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

configurations/ui/tailwindcss/.claude/commands/init-tailwind.md · 230 lines

How it starts

The opening of the file, as written. The whole thing — 230 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Initialize TailwindCSS Project

This command sets up a new TailwindCSS project with best practices and optimal configuration.

What This Command Does

  1. Install TailwindCSS and Dependencies

    • Installs TailwindCSS, PostCSS, and Autoprefixer
    • Adds common TailwindCSS plugins
    • Sets up development dependencies
  2. Create Configuration Files

    • Generates optimized tailwind.config.js
    • Creates postcss.config.js
    • Sets up CSS entry point with Tailwind directives
  3. Configure Content Paths

    • Sets up content scanning for your framework
    • Optimizes purging configuration
    • Adds safelist for dynamic classes

Usage Examples

Next.js Project

# Install TailwindCSS for Next.js
npm install -D tailwindcss postcss autoprefixer @tailwindcss/typography @tailwindcss/forms @tailwindcss/aspect-ratio

# Generate config files
npx tailwindcss init -p

# Configure for Next.js paths

React/Vite Project

# Install TailwindCSS for Vite
npm install -D tailwindcss postcss autoprefixer @tailwindcss/typography @tailwindcss/forms

# Generate config
npx tailwindcss init -p

# Configure for React/Vite paths

Vanilla HTML Project

# Install TailwindCSS CLI
npm install -D tailwindcss

# Generate config
npx tailwindcss init

# Build CSS file
npx tailwindcss -i ./src/input.css -o ./dist/output.css --watch

Configuration Templates

Optimized Tailwind Config

/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    './pages/**/*.{js,ts,jsx,tsx,mdx}',
    './components/**/*.{js,ts,jsx,tsx,mdx}',
    './app/**/*.{js,ts,jsx,tsx,mdx}',
    './src/**/*.{js,ts,jsx,tsx,mdx}',
  ],
  darkMode: 'class',
  theme: {
    extend: {
      colors: {
        primary: {
          50: '#eff6ff',
          100: '#dbeafe', 
          200: '#bfdbfe',
          300: '#93c5fd',
          400: '#60a5fa',
          500: '#3b82f6',
          600: '#2563eb',
          700: '#1d4ed8',
          800: '#1e40af',
          900: '#1e3a8a',
          950: '#172554',
        },
      },
      fontFamily: {
        sans: ['Inter', 'system-ui', 'sans-serif'],
      },
      animation: {
        'fade-in': 'fadeIn 0.5s ease-in-out',
        'slide-up': 'slideUp 0.3s ease-out',
      },
      keyframes: {
        fadeIn: {
          '0%': { opacity: '0' },
          '100%': { opacity: '1' },
        },
        slideUp: {
          '0%': { transform: 'translateY(10px)', opacity: '0' },
          '100%': { transform: 'translateY(0)', opacity: '1' },
        },
      },
    },
  },
  plugins: [
    require('@tailwindcss/typography'),
    require('@tailwindcss/forms'),
    require('@tailwindcss/aspect-ratio'),
  ],
}

Read the full file on GitHub · 230 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 230 lines · 15 tokens per session scan A ae24d886df77

Subscribe to this mod's changes

init-tailwind is a command published in the GitHub repository Matt-Dionis/claude-code-configs (619 stars, last pushed 1y ago), licensed MIT. It adds 15 tokens to every session and 1,367 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.