tailwind-canonical-classes

tailwind-canonical-classes is a skill for Claude Code, Codex from VOD-Studio/violet. It costs 118 tokens per session (2,406 once invoked), scanned A, original, MIT.

A coding rule for using the standard class names expected by Tailwind CSS version 4. Tailwind CSS is a system for styling web pages with utility classes.

In plain words
What is it for?
Choosing canonical Tailwind classes when editing className values in the web project, especially for spacing and sizing.
Why use it?
It keeps spacing and sizing classes consistent and avoids older or non-standard forms that the project’s tools may rewrite.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/vod-studio/violet/tailwind-canonical-classes
Any agent
npx skills add VOD-Studio/violet --skill tailwind-canonical-classes
Clone the repo
git clone --depth 1 https://github.com/VOD-Studio/violet

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-canonical-classes

README.md
[![agentmods](https://agentmods.dev/badge/skills/vod-studio/violet/tailwind-canonical-classes.svg)](https://agentmods.dev/skills/vod-studio/violet/tailwind-canonical-classes)
Your own site
<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>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,406 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00118 $0.02406
Opus 5 $0.00059 $0.01203
Sonnet 5 $0.00024 $0.00481
Haiku 4.5 $0.00012 $0.00241

Measured 5d ago against content hash 9980d14bfd1f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

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.

.agents/skills/tailwind-canonical-classes/SKILL.md · 174 lines

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:

  1. Project convention (static): spacing/sizing pixel values divisible by 4 must use bare numeric utilities.
  2. Tailwind CSS IntelliSense suggestCanonicalClasses (dynamic): the extension reads the project's designSystem and 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.

Read the full file on GitHub · 174 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. 5d ago First seen · 174 lines · 118 tokens per session scan A 9980d14bfd1f

Subscribe to this mod's changes

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.

Related

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.

nexu-io/open-design · 30 tokens

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.

21st-dev/magic-mcp · 63 tokens

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.

vscarpenter/gsd-task-manager · 48 tokens

nextjs-nextra-starter-distill-zh

蒸馏并应用当前仓库的 Next.js Nextra 启动模板架构、已实现功能、二次开发扩展点与迁移模式。适用于理解本项目、继续二次开发、修改 docs/landing/i18n/theme/auth/UI 行为,或把这些 Next.js 16 + Nextra 4 + Tailwind CSS 4 模式复用到其他项目。.

pdsuwwz/nextjs-nextra-starter · 97 tokens

theme

Apply brand and visual direction in a generated Mantle project using its repo-owned theme and UI contracts.

aotter/mantle · 22 tokens

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.

beydemirfurkan/todox · 52 tokens