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.
npx agentmods add skills/vod-studio/violet/tailwind-canonical-classesnpx skills add VOD-Studio/violet --skill tailwind-canonical-classesgit clone --depth 1 https://github.com/VOD-Studio/violetWrote 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/vod-studio/violet/tailwind-canonical-classes)<a href="https://agentmods.dev/skills/vod-studio/violet/tailwind-canonical-classes"><img src="https://agentmods.dev/badge/skills/vod-studio/violet/tailwind-canonical-classes.svg" alt="Measured on agentmods" 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.00118 | $0.02406 |
| Opus 5 | $0.00059 | $0.01203 |
| Sonnet 5 | $0.00024 | $0.00481 |
| Haiku 4.5 | $0.00012 | $0.00241 |
Grade A, and why
tailwind-canonical-classes 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 5d 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 — 174 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Tailwind: prefer canonical class forms
The rule
This project uses Tailwind CSS v4. When editing className, write classes in the canonical form preferred by Tailwind v4.
Canonical forms come from two sources:
- Project convention (static): spacing/sizing pixel values divisible by 4 must use bare numeric utilities.
- Tailwind CSS IntelliSense
suggestCanonicalClasses(dynamic): the extension reads the project'sdesignSystemand suggests canonical rewrites on a per-class basis.
When Tailwind suggests a canonical form, accept it. Do NOT keep the legacy/arbitrary form.
The suggestCanonicalClasses mappings are not hardcoded — they come from designSystem.canonicalizeCandidates() and reflect the current project's @theme tokens and plugins. The tables below list the common, stable cases; always prefer the live suggestion from IntelliSense when it conflicts with a static rule.
Spacing/sizing: 4px → numeric utilities
This project uses the default Tailwind v4 spacing scale where 1 spacing unit = 4px (--spacing: 0.25rem).
When a pixel value is a multiple of 4, use the numeric utility. Do NOT use the arbitrary-value form.
| ❌ Don't | ✅ Do | math |
|---|---|---|
w-[88px] |
w-22 |
88 / 4 = 22 |
h-[120px] |
h-30 |
120 / 4 = 30 |
p-[12px] |
p-3 |
12 / 4 = 3 |
m-[16px] |
m-4 |
16 / 4 = 4 |
gap-[24px] |
gap-6 |
24 / 4 = 6 |
min-w-[200px] |
min-w-50 |
200 / 4 = 50 |
max-w-[400px] |
max-w-100 |
400 / 4 = 100 |
rounded-[8px] |
rounded-2 (or rounded-lg) |
8 / 4 = 2 |
inset-[32px] |
inset-8 |
32 / 4 = 8 |
Prefixes and variants compose the same way: sm:max-w-[420px] → sm:max-w-105, hover:w-[200px] → hover:w-50.
When arbitrary values ARE correct
Keep the -[...] form only when the value is not expressible on the 4px scale, or isn't a spacing value:
- Not divisible by 4:
w-[90px],top-[117px]— no clean numeric form, keep arbitrary. - Non-px units / calc / dynamic:
h-[calc(100%-1px)],w-[50vw],translate-y-[calc(-50%_-_2px)]. - Color/opacity/content:
bg-[#1da1f2],text-[clamp(1rem,2vw,1.5rem)],content-['→']. - Non-spacing scales:
ring-[3px],border-[1px],text-[10px]belong to their own scales — leave them unless IntelliSense suggests a canonical form.
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.
- 5d ago First seen · 174 lines · 118 tokens per session scan A 9980d14bfd1f
tailwind-canonical-classes is a skill published in the GitHub repository VOD-Studio/violet (3 stars, last pushed yesterday), licensed MIT. It adds 118 tokens to every session and 2,406 once invoked, about $0.0006 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.
Other skills, from other repositories
article-magazine
Huashu / huashu-md-html-inspired magazine article layout for turning Markdown or notes into a polished long-form HTML essay.
21st-ui
Find, install, and generate UI with 21st.dev. Use when the user asks for a UI component (pricing table, hero, navbar, dashboard, form, etc.), wants design inspiration, needs a brand logo as an SVG component, or wants to generate new UI from a prompt.
inkwell-retrofit
Apply the Inkwell design system to an existing page or component without creating a competing styling system. Use for styling retrofits, standalone HTML explainers, docs pages, or Tailwind v4 token alignment.
nextjs-nextra-starter-distill-zh
蒸馏并应用当前仓库的 Next.js Nextra 启动模板架构、已实现功能、二次开发扩展点与迁移模式。适用于理解本项目、继续二次开发、修改 docs/landing/i18n/theme/auth/UI 行为,或把这些 Next.js 16 + Nextra 4 + Tailwind CSS 4 模式复用到其他项目。.
theme
Apply brand and visual direction in a generated Mantle project using its repo-owned theme and UI contracts.
ui-conventions
Use when writing or changing any UI in todox — a page, a component, Tailwind classes, or CSS. Covers the helpers to reach for before inventing one, and the layout rules that keep the app usable on a phone.