tailwind-4

tailwind-4 is a skill for Claude Code from prowler-cloud/prowler. It costs 47 tokens per session (1,656 once invoked), scanned A, original, Apache-2.0.

Patterns and rules for Tailwind CSS 4, a utility-based CSS framework for styling web interfaces with class names.

In plain words
What is it for?
Use it when styling with Tailwind, including conditional classes, CSS variables, dynamic dimensions, semantic colors, and the cn() class-merging utility.
Why use it?
It helps keep dynamic values, colors, conditional classes, and class merging compatible with the project’s Tailwind conventions.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it when styling with Tailwind, including conditional classes, CSS variables, dynamic dimensions, semantic colors, and the cn() class-merging utility.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/prowler-cloud/prowler/tailwind-4
About the project

Prowler is an open-source cloud security platform that checks cloud environments for security issues and compliance with standards such as CIS, NIST, and GDPR. Security teams use it to assess configurations, prioritize findings, produce reports, and guide remediation.

prowler-cloud/prowler · 15,179 stars · on GitHub · prowler.com

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 prowler-cloud/prowler --skill tailwind-4
Clone the repo
git clone --depth 1 https://github.com/prowler-cloud/prowler

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/prowler-cloud/prowler/tailwind-4"><img src="https://agentmods.dev/badge/skills/prowler-cloud/prowler/tailwind-4.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,656 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
  • Socket pass 15 Sept 2026
  • Snyk pass 15 Sept 2026
  • 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.00047 $0.01656
Opus 5.5 $0.00019 $0.00662
Sonnet 5.5 $0.00009 $0.00331
Haiku 4.5 $0.00005 $0.00166

Measured 2d ago against content hash 42bdbaad68ac, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tailwind-4 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 2d 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/tailwind-4/SKILL.md · 213 lines

How it starts

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

Tailwind 4 Setup (CSS-first, no tailwind.config)

  • Config lives in CSS: ui/styles/globals.css starts with @import "tailwindcss"; plus @plugin, @source, @custom-variant, @theme, @utility.
  • PostCSS plugin is @tailwindcss/postcss (ui/postcss.config.js). There is no tailwind.config.*; do not create one.
  • Design tokens are declared in @theme (--color-bg-neutral-primary: ...) and become utilities (bg-bg-neutral-primary, text-text-neutral-secondary, border-border-neutral-secondary).
  • Dark mode is class-based: @custom-variant dark (&:where(.dark, .dark *)); (toggled by next-themes).
  • New utilities use @utility name { ... }, not @layer utilities + @apply hacks.

Prowler UI: use the semantic token utilities above. Raw palette classes (bg-slate-800, bg-blue-500) appear below only as generic Tailwind examples; in ui/ they are not allowed (see prowler-ui Design System Discipline).

Styling Decision Tree

Tailwind class exists?  → className="..."
Dynamic value?          → style={{ width: `${x}%` }}
Conditional styles?     → cn("base", condition && "variant")
Static only?            → className="..." (no cn() needed)
Library can't use class?→ style prop with var() constants

Critical Rules

Never Use var() in className

// ❌ NEVER: var() in className
<div className="bg-[var(--color-primary)]" />
<div className="text-[var(--text-color)]" />

// ✅ ALWAYS: Use theme token utilities
<div className="bg-button-primary" />
<div className="text-text-neutral-secondary" />

Tailwind 4 also accepts the bg-(--token) shorthand for CSS variables; it is still an escape hatch. If a token is used repeatedly, it belongs in @theme.

Never Use Hex Colors

// ❌ NEVER: Hex colors in className
<p className="text-[#ffffff]" />
<div className="bg-[#1e293b]" />

// ✅ ALWAYS: Use theme color utilities
<p className="text-text-neutral-primary" />
<div className="bg-bg-neutral-secondary" />

Read the full file on GitHub · 213 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. 2d ago Changed · +13 lines 42bdbaad68ac
  2. 2mo ago First seen · 200 lines · 47 tokens per session scan A 8b918a68265d

Subscribe to this mod's changes

tailwind-4 is a skill published in the GitHub repository prowler-cloud/prowler (15,179 stars, last pushed yesterday), licensed Apache-2.0. It adds 47 tokens to every session and 1,656 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

tailwind-4 compared with skills from other repositories

tailwind-4 next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tailwind-4prowler-cloud/prowlerSkill15kyesterdayApache-2.0A47Claude Code
performing-aws-account-enumeration-with-scout-suitexalgorix/xalgorixSkill1.3kyesterdayApache-2.0A39Claude Code, Codex
cis-aws-database-3.11CyberStrikeus/CyberStrikeSkill3.4k4d agoAGPL-3.0A17Claude Code, Codex
ponytail-sec-auditandypitcher/ponytail-secSkill124d agoMITA73Claude Code
ponytail-secandypitcher/ponytail-secSkill124d agoMITA73Claude Code
ponytail-sec-triageandypitcher/ponytail-secSkill124d agoMITA60Claude Code
tunnel-manager-ssh-hardeningKnuckles-Team/tunnel-managerSkill32d agoMITA118Claude Code, Codex