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

Written for no agent in particular: nothing here depends on one.

Good fit Use it to configure @theme, create custom utilities and variants, style components, handle dark mode, and migrate Tailwind v3 projects.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/iliaal/whetstone/tailwind-css
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.

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/github.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/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 tailwind-css

Your own site · 80×15
<a href="https://agentmods.dev/skills/iliaal/whetstone/tailwind-css"><img src="https://agentmods.dev/badge/skills/iliaal/whetstone/tailwind-css.svg" alt="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00061 $0.01533
Opus 5.5 $0.00024 $0.00613
Sonnet 5.5 $0.00012 $0.00307
Haiku 4.5 $0.00006 $0.00153

Measured 1mo ago against content hash 5ce8933997ff, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

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. 1mo 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 (35 stars, last pushed yesterday), licensed MIT. It adds 61 tokens to every session and 1,533 once invoked, about $0.0002 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-08-30.

Related

Other skills, from other repositories

generic-static-code-reviewer

Review static site code for bugs, security issues, performance problems, accessibility gaps, and CLAUDE.md compliance. Enforces pure HTML/CSS/JS standards, minimal page weight, mobile-first design. Use when completing features, before commits, or reviewing changes.

travisjneuman/.claude · 59 tokens

pr-review

Comprehensive PR review across six dimensions — cost impact, environment drift, ownership gaps, SOC 2 compliance, deprecated API / version hygiene, and rollback feasibility. Each mode inspects the diff and current file state, reports findings with severity, and recommends concrete fixes. Use when preparing a PR for…

nitinjain999/platform-skills · 81 tokens

code-review

Review pull requests to this repo (a Claude Code / Copilot / Cursor platform-engineering skill plugin) for technical accuracy, security posture, structural consistency with existing domains, and completeness. Use this for any PR touching commands/, references/, examples/, skills/platform-skills/SKILL.md, or the plugin…

nitinjain999/platform-skills · 88 tokens

frontend-design

Use when user asks to build a web component, page, or application, or when the task involves frontend design, HTML/CSS generation, or UI layout. Applies specific rules for typography, OKLCH color, layout, motion, interaction, and UX writing to produce distinctive, production-grade interfaces that avoid generic AI…

harnessprotocol/harness-kit · 68 tokens

rubber-ducky

Use when you've planned a non-trivial change and are about to implement it, finished a complex or multi-file piece of work, just wrote tests, or are stuck on repeated failures or unexpected results — and any time the user says "rubber duck this", "rubber ducky", "get a second opinion", "sanity-check my plan", "poke…

harnessprotocol/harness-kit · 189 tokens

superreview

Review a change set or explicit project scope for intent, correctness, safety, reuse, and maintainability; independently validate findings and produce one report without applying fixes.

kochetkov-ma/claude-brewcode · 35 tokens