tailwind-v3-compat

tailwind-v3-compat is a skill for Claude Code, Codex from sleeyax/promptfiles. It costs 48 tokens per session (2,338 once invoked), scanned A, original, MIT.

A guided switch for restoring selected Tailwind CSS version 3 behaviors in a project using version 4. Tailwind CSS is a tool that generates styles from your project’s design rules.

In plain words
What is it for?
It helps review these seven behavior changes and add or remove the matching CSS blocks in the project’s main Tailwind file.
Why use it?
A version 4 upgrade can change details such as border colors, ring widths, placeholder colors, button cursors, dialog spacing, mobile hover behavior, and container padding. This helps preserve the older appearance where needed.

Skill for Claude CodeCodex

Written for Claude Code and Codex: disable-model-invocation in frontmatter, but also agents/openai.yaml present. Also seen: names the AskUserQuestion tool; mentions Codex.

Part of the sleeyax-skills plugin — 17 skills, 2 agents shipped together

Good fit It helps review these seven behavior changes and add or remove the matching CSS blocks in the project’s main Tailwind file.

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

Made for: Claude Code, Codex.

Or install sleeyax-skills, the plugin that ships this one along with the rest of its 17 skills, 2 agents.

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-v3-compat

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/sleeyax/promptfiles/tailwind-v3-compat"><img src="https://agentmods.dev/badge/skills/sleeyax/promptfiles/tailwind-v3-compat.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,338 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.00048 $0.02338
Opus 5 $0.00024 $0.01169
Sonnet 5 $0.00010 $0.00468
Haiku 4.5 $0.00005 $0.00234

Measured 9d ago against content hash 442e1423cc47, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

tailwind-v3-compat 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 9d 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.

skills/frontend/tailwind-v3-compat/SKILL.md · 162 lines

How it starts

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

Tailwind v3 Compat

The v4 upgrade guide documents seven behavior changes that ship with an official "add this to your CSS to preserve the v3 behavior" snippet. This skill walks the user through all seven, then writes (or removes) each one in the project's Tailwind v4 entry CSS under marker comments.

This is a toggle, not an install: it is safe to re-run any time to flip a flag back.

Hard rules

  • Never write without an explicit user choice. Every gate — entry-file pick, flag selection, container padding, apply confirmation — is a real stop: ask, then wait for the answer. Use the AskUserQuestion tool when it's available in the session; where it isn't (e.g. Codex), ask in plain text with the same numbered options and stop until the user replies. Never assume an answer. Selecting nothing means writing nothing.
  • Walk through all seven flags, every run — both question groups, even if the user selected nothing in the first.
  • Only touch marker-wrapped blocks. The entry CSS holds the user's own @theme, @layer, imports, and plugin directives. Never reformat, reorder, or edit anything outside the markers.
  • Existing v4 setups only. Confirm the project is on Tailwind v4 before touching anything (step 1). If Tailwind is absent, still on v3, or has no entry CSS to edit, stop — this skill restores old defaults, it does not install or upgrade Tailwind.
  • Never modify markup. Step 5 reports v3→v4 issues in components; it does not fix them.

Compat catalog

Each flag is written between /* tailwind-v3-compat:<id> */ and /* /tailwind-v3-compat:<id> */, which is what makes it independently detectable and removable.

Marker ID Flag v4 default v3 behavior restored
border-color Default border color currentColor gray-200
ring Default ring width/color 1px, currentColor 3px, blue-500 ⚠️
placeholder Placeholder color current text at 50% opacity gray-400
button-cursor Button cursor default pointer
dialog-margin <dialog> margins reset to 0 auto (centered)
hover Hover variant only where the primary input supports hover always applies
container container utility no centering or padding centered with padding

Read the full file on GitHub · 162 lines

Files

What ships with it

1 file 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. 9d ago First seen · 162 lines · 48 tokens per session scan A 442e1423cc47

Subscribe to this mod's changes

tailwind-v3-compat is a skill published in the GitHub repository sleeyax/promptfiles (2 stars, last pushed 10d ago), licensed MIT. It adds 48 tokens to every session and 2,338 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

chakra-ui-builder

Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable themes using tokens, semantic tokens, recipes, and slot recipes. Use this skill whenever a user asks to build, create, or generate any UI component, page, form…

chakra-ui/chakra-ui · 214 tokens

visual-ralph

Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ralph with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.

Yeachan-Heo/oh-my-codex · 50 tokens

frontend-visual-qa

Audits already-rendered web, landing-page, HTML deck/slide, browser tool/game, dashboard/admin, design-system, and desktop UIs using real-browser or native-app journeys, inspected screenshots, DOM geometry, responsive or projection viewports, and a bundled Playwright sweep. Use after UI implementation to find…

daymade/claude-code-skills · 145 tokens

prototype-web

A clickable, high-fidelity web product prototype with navigation, a hero section, feature cards, steps, social proof, and optional pricing. It is designed to resemble a finished landing page while remaining a prototype.

nexu-io/html-anything · 24 tokens

waitlist-page

A simple waitlist page for collecting email addresses from people interested in a new product or early-access release.

nexu-io/html-anything · 25 tokens

tailwindcss

Tailwind CSS v4 conventions — semantic design tokens for theme-safe styling, mobile-first responsive layouts, and v4-first utilities. Use when styling components or writing className utilities with Tailwind. Don't use for plain CSS, CSS-in-JS (styled-components, emotion), or other utility frameworks.

compozy/compozy · 64 tokens