Borrowing it
Nothing to install: this file belongs to recca0120/code-quest. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/recca0120/code-quest/main/.claude/skills/tailwind-v4/SKILL.mdgit clone --depth 1 https://github.com/recca0120/code-questWrote 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.
[](https://agentmods.dev/skills/recca0120/code-quest/tailwind-v4)<a href="https://agentmods.dev/skills/recca0120/code-quest/tailwind-v4"><img src="https://agentmods.dev/badge/skills/recca0120/code-quest/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.
<a href="https://agentmods.dev/skills/recca0120/code-quest/tailwind-v4"><img src="https://agentmods.dev/badge/skills/recca0120/code-quest/tailwind-v4.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00102 | $0.05041 |
| Opus 5.5 | $0.00041 | $0.02016 |
| Sonnet 5.5 | $0.00020 | $0.01008 |
| Haiku 4.5 | $0.00010 | $0.00504 |
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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 435 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Tailwind CSS v4
Overview
Tailwind v4 is CSS-first: no tailwind.config.js, no PostCSS config. Everything lives in CSS via directives.
Setup (Vite)
pnpm add tailwindcss @tailwindcss/vite
// vite.config.ts
import tailwindcss from '@tailwindcss/vite'
export default defineConfig({ plugins: [react(), tailwindcss()] })
/* App.css */
@import "tailwindcss";
No content globs needed — auto-detected. No autoprefixer — Lightning CSS handles it.
v3 → v4 Key Changes
| v3 | v4 |
|---|---|
tailwind.config.js |
@theme in CSS |
@tailwind base/components/utilities |
@import "tailwindcss" |
darkMode: 'class' |
@custom-variant dark |
content: [...] |
Auto-detected |
| PostCSS required | @tailwindcss/vite plugin |
| Container query plugin | Built-in @container |
Design flow: token-first
設計 UI 時先看 design token,再考慮 utility。不要遇到設計稿的值就寫 arbitrary(text-[13px] / bg-[#3a7] / p-[7px])。
正確順序(寫 JSX 前跑一遍):
- 先查既有 token — 需要的顏色 / 字級 / 間距 / radius / shadow / z-index 是否已經在
@theme或內建 scale?- 顏色:
grep "^\s*--color-" apps/web/src/App.css - Spacing / text / z:用「優先內建 utility」表對照
- 顏色:
- 差 1–2px / 1–2 階 → 就近取 — design system 的一致性 > pixel-perfect。
13px取text-xs或text-sm、#3a7d5e取text-success。 - 超出既有 token 範圍 → 先擴 token,不要寫 arbitrary
- 新色階:加
--color-X到@theme - 新語意層級(z-index、muted tier、shadow):加對應
--*token - 新可重用效果:抽
@utility
- 新色階:加
- 只有這些 arbitrary 值是合法的(見下方「Arbitrary value 正當情境」):
calc(...)計算值- 引用動態 CSS variable
- 刻意 off-grid 且有清楚理由(icon 尺寸、對齊特定視覺錨點)
不要這樣做:
// ❌ 為了新設計稿直接寫 arbitrary
<div className="bg-[#2a4a6e] text-[13px] p-[7px] shadow-[0_2px_8px_rgba(0,0,0,0.4)]" />
// ✅ 先把需要的值加進 @theme,再用 semantic utility
// App.css: --color-surface-sunken: oklch(...); --shadow-card: 0 2px 8px rgba(0,0,0,0.4);
<div className="bg-surface-sunken text-xs p-2 shadow-card" />
特別 callout — literal-pixel arbitraries:
任何 \w+-[Npx](text-[13px] / h-[38px] / max-h-[480px] / max-w-[180px] 等)明確禁止。
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.
- 2mo ago First seen · 435 lines · 102 tokens per session scan A 61505da03ef6
tailwind-v4 is a skill published in the GitHub repository recca0120/code-quest (11 stars, last pushed 4mo ago), licensed MIT. It adds 102 tokens to every session and 5,041 once invoked, about $0.0004 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.
Other skills, from other repositories
anti-slop-design
Autonomous Principal Design Technologist. Cures vibe-coded software from AI frontend slop using curated token archetypes and 7-axis quality gating.
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…
visual-ralph
Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ultragoal with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.
open-design-setup
Prepare or repair a project's prototyping environment so open-design can build prototypes with the project's own component library and render them through the project's toolchain. Use when the library target is needed and docs/design/prototyping.md is missing, stale, or failing; excludes HTML-only design work and…
edit-site
Plans, coordinates and customizes PAC CLI-downloaded Standard or Enhanced data model non-SPA Power Pages sites created from Microsoft templates or manually in Design Studio. Use for requests involving pages, localized content, navigation, assets, snippets, site markers, Liquid/web templates, page layouts, or styling.…
frontend-visual-qa
Audits rendered UI and specific task/object-link handoffs; excludes ordinary source citations alone. Audits already-rendered UI and Markdown/Obsidian image layout — web app, deck/slide, dashboard, design-system, or Electron/native app — via real-browser/native-app journeys and a Playwright sweep. Use after UI…