tailwind-v4

tailwind-v4 is a skill for Claude Code, Codex from artivilla/agents-config. It costs 70 tokens per session (1,639 once invoked), scanned A, a copy of tailwind-v4, MIT.

Guidelines for Tailwind CSS version 4, a tool that generates website styles from utility classes. They cover CSS-based configuration, design tokens, colors, and dark mode.

In plain words
What is it for?
Use them when setting up Tailwind v4, configuring its Vite integration, defining theme variables, choosing OKLCH colors, or implementing dark mode.
Why use it?
They help avoid using older Tailwind setup patterns when configuring or updating a Tailwind v4 project.

Skill for Claude CodeCodex

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

Good fit Use them when setting up Tailwind v4, configuring its Vite integration, defining theme variables, choosing OKLCH colors, or implementing dark mode.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/artivilla/agents-config/tailwind-v4
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 artivilla/agents-config --skill tailwind-v4
Clone the repo
git clone --depth 1 https://github.com/artivilla/agents-config

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-v4

README.md
[![agentmods](https://agentmods.dev/badge/skills/artivilla/agents-config/tailwind-v4/github.svg)](https://agentmods.dev/skills/artivilla/agents-config/tailwind-v4)
Your own site
<a href="https://agentmods.dev/skills/artivilla/agents-config/tailwind-v4"><img src="https://agentmods.dev/badge/skills/artivilla/agents-config/tailwind-v4/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-v4

Your own site · 80×15
<a href="https://agentmods.dev/skills/artivilla/agents-config/tailwind-v4"><img src="https://agentmods.dev/badge/skills/artivilla/agents-config/tailwind-v4.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,639 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 86% copy Near-identical to another mod 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.00070 $0.01639
Opus 5.5 $0.00028 $0.00656
Sonnet 5.5 $0.00014 $0.00328
Haiku 4.5 $0.00007 $0.00164

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

Security

Grade A, and why

tailwind-v4 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 3mo 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.

Origin

This is a copy

86% identical to tailwind-v4 — 233 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/tailwind-v4/SKILL.md · 226 lines

How it starts

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

Tailwind CSS v4 Best Practices

Quick Reference

Vite Plugin Setup:

// vite.config.ts
import tailwindcss from '@tailwindcss/vite';
import { defineConfig } from 'vite';

export default defineConfig({
  plugins: [tailwindcss()],
});

CSS Entry Point:

/* src/index.css */
@import 'tailwindcss';

@theme Inline Directive:

@theme inline {
  --color-primary: oklch(60% 0.24 262);
  --color-surface: oklch(98% 0.002 247);
}

Key Differences from v3

Feature v3 v4
Configuration tailwind.config.js @theme in CSS
Build Tool PostCSS plugin @tailwindcss/vite
Colors rgb() / hsl() oklch() (default)
Theme Extension extend: {} in JS CSS variables
Dark Mode darkMode config option CSS variants

@theme Directive Modes

default (standard mode)

Generates CSS variables that can be referenced elsewhere:

@theme {
  --color-brand: oklch(60% 0.24 262);
}

/* Generates: :root { --color-brand: oklch(...); } */
/* Usage: text-brand → color: var(--color-brand) */

Note: You can also use @theme default explicitly to mark theme values that can be overridden by non-default @theme declarations.

inline

Inlines values directly without CSS variables (better performance):

@theme inline {
  --color-brand: oklch(60% 0.24 262);
}

/* Usage: text-brand → color: oklch(60% 0.24 262) */

reference

Inlines values as fallbacks without emitting CSS variables:

@theme reference {
  --color-internal: oklch(50% 0.1 180);
}

/* No :root variable, but utilities use fallback */
/* Usage: bg-internal → background-color: var(--color-internal, oklch(50% 0.1 180)) */

OKLCH Color Format

OKLCH provides perceptually uniform colors with better consistency across hues:

oklch(L% C H)
  • L (Lightness): 0% (black) to 100% (white)
  • C (Chroma): 0 (gray) to ~0.4 (vibrant)
  • H (Hue): 0-360 degrees (red → yellow → green → blue → magenta)

Read the full file on GitHub · 226 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. 3mo ago First seen · 226 lines · 70 tokens per session scan A f065b0f66cfc

Subscribe to this mod's changes

tailwind-v4 is a skill published in the GitHub repository artivilla/agents-config (0 stars, last pushed 5mo ago), licensed MIT. It adds 70 tokens to every session and 1,639 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 86% identical to tailwind-v4, differing in 233 lines, and is treated as a copy.

Related

tailwind-v4 compared with skills from other repositories

tailwind-v4 next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tailwind-v4artivilla/agents-configSkill05mo agoMITA70Claude Code, Codex
web-staticAdamBien/airailsSkill76yesterdayMITA183Claude Code
web-standards-reviewerAdamBien/airailsSkill76yesterdayMITA221Claude Code
web-sprinklesAdamBien/airailsSkill76yesterdayMITA224Claude Code
web-design-reviewernavikt/copilotSkill65yesterdayMITA89Claude Code, Codex
design-shiny-uipjt222/agent-almanacSkill463d agoMITA96Claude Code
safe-area-handlingCap-go/capgo-skillsSkill7918d agoMITA248Claude Code