tailwind-css

tailwind-css is a skill for Claude Code, Codex from iliaal/whetstone. It costs 61 tokens per session (1,533 once invoked), scanned A, original, MIT.

A reference for Tailwind CSS v4, a CSS-based toolkit for styling web interfaces with utility classes. It covers CSS-first configuration, design tokens, variants, dark mode, and migration from version 3.

In plain words
What is it for?
Use it to configure `@theme`, create custom utilities and variants, style components, handle dark mode, and migrate Tailwind v3 projects.
Why use it?
It helps prevent configuration and styling mistakes when moving to or working with Tailwind CSS v4.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/iliaal/whetstone/tailwind-css
Any agent
npx skills add iliaal/whetstone --skill tailwind-css
Clone the repo
git clone --depth 1 https://github.com/iliaal/whetstone

Made for: Claude Code, Codex.

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 tailwind-css

README.md
[![agentmods](https://agentmods.dev/badge/skills/iliaal/whetstone/tailwind-css.svg)](https://agentmods.dev/skills/iliaal/whetstone/tailwind-css)
Your own site
<a href="https://agentmods.dev/skills/iliaal/whetstone/tailwind-css"><img src="https://agentmods.dev/badge/skills/iliaal/whetstone/tailwind-css.svg" alt="Measured on agentmods" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,533 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00061 $0.01533
Opus 5 $0.00030 $0.00766
Sonnet 5 $0.00012 $0.00307
Haiku 4.5 $0.00006 $0.00153

Measured 4d ago against content hash 5ce8933997ff, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

tailwind-css 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 4d 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.

distillery/generated-skills/tailwind-css/SKILL.md · 128 lines

How it starts

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

Tailwind CSS v4

CSS-First Configuration

v4 eliminates tailwind.config.ts. All configuration lives in CSS.

Directive Purpose
@import "tailwindcss" Entry point (replaces @tailwind base/components/utilities)
@theme { } Define/extend design tokens — auto-generates utility classes
@theme inline { } Map CSS variables to Tailwind utilities without generating new vars
@theme static { } Define tokens that don't generate utilities
@utility name { } Create custom utilities (replaces @layer components + @apply)
@custom-variant name (selector) Define custom variants
@import "tailwindcss";

@theme {
  --color-brand: oklch(0.72 0.11 178);
  --font-display: "Inter", sans-serif;
  --animate-fade-in: fade-in 0.2s ease-out;
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
}

@custom-variant dark (&:where(.dark, .dark *));

Tokens defined with @theme become utilities automatically: --color-brand produces bg-brand, text-brand, border-brand.

v3 to v4 Breaking Changes

v3 v4 Notes
tailwind.config.ts @theme in CSS Delete config file
@tailwind base/components/utilities @import "tailwindcss" Single import
darkMode: "class" @custom-variant dark (...) CSS-only
bg-gradient-to-r bg-linear-to-r Also: bg-radial, bg-conic
bg-opacity-60 bg-red-500/60 All *-opacity-* removed
rounded-md (6px) rounded (6px) Radius scale shifted down
min-h-screen min-h-dvh dvh handles mobile browser chrome
w-6 h-6 size-6 Size shorthand for equal w/h
space-x-4 gap-4 Gap handles flex/grid wrapping correctly
text-base leading-7 text-base/7 Inline line-height modifier
require("tailwindcss-animate") tw-animate-css CSS-only animations
forwardRef ref as prop React 19 change (not Tailwind, but co-occurs)

Coding Rules

Read the full file on GitHub · 128 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 128 lines · 61 tokens per session scan A 5ce8933997ff

Subscribe to this mod's changes

tailwind-css is a skill published in the GitHub repository iliaal/whetstone (32 stars, last pushed 5d ago), licensed MIT. It adds 61 tokens to every session and 1,533 once invoked, about $0.0003 per session on Opus 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-08-30.

Related

Other skills, from other repositories

wes-bos-sick-picks

Research-first workflow for building frontend UI components (any framework), in the spirit of Wes Bos. Use when designing or implementing a UI component, layout, interaction, or CSS/HTML feature and you want a modern, accessible, best-practice solution rather than a first guess. Researches pitfalls and platform…

boserup/wes-bos-sick-picks · 140 tokens

svg-mastery

Expert knowledge for working with SVG (Scalable Vector Graphics) — optimization, embedding, animation, accessibility, responsive scaling, React integration, filters, and programmatic creation. Use when the user asks to "optimize SVG", "clean up SVG", "reduce SVG file size", "embed SVG in HTML", "inline SVG vs img…

lukaskellerstein/claude-my-marketplace · 276 tokens

animation-system

CSS and GSAP animation patterns for websites — ScrollTrigger, timelines, stagger effects, page transitions, micro-interactions, and performance optimization. Use when implementing animations for web design projects, when the user wants scroll-triggered animations, page load reveals, GSAP integration with React/Vite…

lukaskellerstein/claude-my-marketplace · 78 tokens

css-architecture

Project-level CSS architecture for React/Vite websites — Tailwind CSS configuration with design tokens, shadcn/ui theming, CSS custom properties, and responsive strategy. Tailwind-first approach. Use when setting up CSS for a new React/Vite project, mapping a styleguide to Tailwind config, configuring shadcn/ui theme…

lukaskellerstein/claude-my-marketplace · 91 tokens

variation

Generate alternative design variations from an existing web design — systematically vary colors, typography, animation intensity, and spacing density while preserving page structure and content. Use when the user wants multiple visual options from a base design, says "generate variations" or "try different styles"…

lukaskellerstein/claude-my-marketplace · 77 tokens

frontend-design

Design thinking and decision-making for web UI. Use when designing components, layouts, color schemes, typography, or creating aesthetic interfaces. Teaches principles, not fixed values.

SKB3002/agenthub · 37 tokens