tailwind-v4

tailwind-v4 is a skill for Claude Code, Codex from existential-birds/beagle. It costs 68 tokens per session (1,614 once invoked), scanned A, original, Apache-2.0.

A skill for Tailwind CSS version 4, a utility-based system for styling web interfaces. It covers the CSS-first setup, theme variables, color values, the Vite build-tool plugin, and dark-mode styling.

In plain words
What is it for?
Use it to configure Tailwind v4 with Vite, define design tokens with @theme, set up colors and dark mode, and use the version 4 CSS entry point.
Why use it?
It explains the main setup differences from Tailwind version 3, including moving configuration into CSS and using CSS variables for themes. This helps avoid applying older configuration instructions to a version 4 project.

Skill for Claude CodeCodex

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

Good fit Use it to configure Tailwind v4 with Vite, define design tokens with @theme, set up colors and dark mode, and use the version 4 CSS entry point.

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

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/existential-birds/beagle/tailwind-v4/github.svg)](https://agentmods.dev/skills/existential-birds/beagle/tailwind-v4)
Your own site
<a href="https://agentmods.dev/skills/existential-birds/beagle/tailwind-v4"><img src="https://agentmods.dev/badge/skills/existential-birds/beagle/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/existential-birds/beagle/tailwind-v4"><img src="https://agentmods.dev/badge/skills/existential-birds/beagle/tailwind-v4.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,614 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 20 Sept 2026
  • Snyk pass 20 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.00068 $0.01614
Opus 5.5 $0.00027 $0.00646
Sonnet 5.5 $0.00014 $0.00323
Haiku 4.5 $0.00007 $0.00161

Measured 4d ago against content hash c40ac227f211, 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 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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

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

How it starts

The opening of the file, as written. The whole thing — 145 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 apps):

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

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

PostCSS Plugin Setup (Next.js, Webpack, or other non-Vite bundlers):

// postcss.config.mjs
export default {
  plugins: {
    '@tailwindcss/postcss': {},
  },
};

CSS Entry Point:

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

@theme & @utility Directives:

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

@utility content-auto {
  content-visibility: auto;
}

Key Differences from v3

Feature v3 v4
Configuration tailwind.config.js @theme in CSS
Build Tool tailwindcss + autoprefixer @tailwindcss/vite (Vite) or @tailwindcss/postcss (Next.js/PostCSS)
CSS Entry @tailwind base; @tailwind components; @tailwind utilities; @import "tailwindcss";
Colors rgb() / hsl() oklch() (default)
Custom Utilities @layer utilities { .foo { ... } } @utility foo { ... } (supports variants like hover:foo)
Dark Mode darkMode in JS config Media query by default, or @custom-variant dark (...) in CSS
CSS Variables in Arbitrary Values max-h-[var(--x)] max-h-(--x)

v4 Utility Renames & Removals (Common v3 Regressions)

  • Shadows & Radii: shadow-sm → shadow-xs, shadow → shadow-sm; rounded-sm → rounded-xs, rounded → rounded-sm; blur-sm → blur-xs, blur → blur-sm.
  • Outline: outline-none → outline-hidden (for keeping accessible outline in forced-colors mode; outline-none now sets outline-style: none).
  • Ring default width: ring defaults to 1px in v4 (use ring-3 for v3's 3px default).
  • Opacity modifiers: bg-opacity-50 / text-opacity-50 removed — use bg-black/50 or text-white/50.
  • CSS variables: Use parentheses bg-(--brand) / max-h-(--var) instead of bg-[var(--brand)].

Read the full file on GitHub · 145 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 Changed · -89 lines · -2 tokens per session c40ac227f211
  2. 2mo ago First seen · 234 lines · 70 tokens per session scan A 3bb7eec610f1

Subscribe to this mod's changes

tailwind-v4 is a skill published in the GitHub repository existential-birds/beagle (91 stars, last pushed 4d ago), licensed Apache-2.0. It adds 68 tokens to every session and 1,614 once invoked, about $0.0003 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-09-16.

Related

tailwind-v4 compared with skills from other repositories

tailwind-v4 next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tailwind-v4existential-birds/beagleSkill914d agoApache-2.0A68Claude Code, Codex
cli-commandComposioHQ/composioSkill31ktodayMITA76Claude Code, Codex
ui-webalinaqi/maggySkill7123d agoMITA17Claude Code
styling-sidebar-productsPostHog/posthogSkill41ktodaynoneA137Claude Code, Codex
quill-codePostHog/posthogSkill41ktodaynoneA84Claude Code
suede-designJasonColapietro/suede-creator-skillsSkill121todayMITA108Claude Code, Codex
frontend-design-reviewJasonColapietro/suede-creator-skillsSkill121todayMITA30Claude Code