tailwind-v4
Skill0 starsChanged yesterdayMITView on GitHub
Configure Tailwind CSS v4 or change its tokens, utilities, responsive styles, and v3 migrations.
12 other projects use a version of this.
Adopted by
Most recently taken up by
- artivilla/agent-skillstheir own version, first seen Nov 8, 2026
- incognitojam/skillstheir own version, first seen Nov 7, 2026
- aidvgg/operator-ostheir own version, first seen Oct 17, 2026
- mikulgohil/claude-skillstheir own version, first seen Oct 13, 2026
- mastra-ai/mastratheir own version, first seen Oct 8, 2026
- revealui-studio/revskillstheir own version, first seen Sep 22, 2026
Used with
Projects with it also use operational-enterprise-ai, product-proof-saas and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
boraoztuncSkilloperational-enterprise-ai
Create or redesign enterprise AI, automation, security, and operations product pages that explain system boundaries, approvals, auditability, exceptions, and rollback. Use for dark cinematic heroes, hairline grids, metric pauses, expandable solution rows, case-study evidence, security proof, and qualified demo or waitlist handoffs.
Also in 3 projects that use this
boraoztuncSkillproduct-proof-saas
Create or redesign SaaS and AI product landing pages where a real workflow, interface, or deterministic demo is the central proof. Use for pale atmospheric shells, product UI in the hero, prompt-to-output stories, audience tabs, compact feature modules, honest pricing comparisons, and FAQ handoffs.
Also in 3 projects that use this
Dragoon0xSkillpricing-page
Present pricing in ways that reduce friction and increase clarity. Handles tier naming, feature comparison, anchor pricing, and plan selection psychology. Use when designing pricing pages, plan selectors, or upgrade prompts.
Also in 3 projects that use this
ParthJadhavSkillapp-store-screenshots
Use when building App Store or Google Play screenshot pages, generating exportable marketing screenshots for iOS, macOS, and/or Android apps, or scaffolding a screenshot editor with Next.js. Triggers on app store, mac app store, play store, screenshots, marketing assets, html-to-image, phone mockup, mac mockup, android screenshots, feature graphic.
Also in 3 projects that use this
silvainfmSkillpage-cro
When the user wants to optimize, improve, or increase conversions on any marketing page — including homepage, landing pages, pricing pages, feature pages, or blog posts. Also use when the user says "CRO," "conversion rate optimization," "this page isn't converting," "improve conversions," or "why isn't this page working." For signup/registration flows, see signup-flow-cro. For post-signup activation, see onboarding-cro. For forms outside of signup, see form-cro. For popups/modals, see popup-cro.
Also in 3 projects that use this
silvainfmSkillanalytics-tracking
When the user wants to set up, improve, or audit analytics tracking and measurement. Also use when the user mentions "set up tracking," "GA4," "Google Analytics," "conversion tracking," "event tracking," "UTM parameters," "tag manager," "GTM," "analytics implementation," or "tracking plan." For A/B test measurement, see ab-test-setup.
Also in 3 projects that use this
- +1 more from boraoztunc
- +1 more from silvainfm
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- mastra-ai/mastra★ 29ksame name
- boraoztunc/skills★ 454same name
- aidvgg/operator-os★ 4same name
- incognitojam/skills★ 2same name
- revealui-studio/revskills★ 2same name
- RevealUIStudio/revskills★ 2same name
- robiparvez/claude-code-guidelines★ 2same name
- brpaz/agent-skills★ 1same name
- artivilla/agent-skills★ 0same name
- florattu/claude-skills★ 0same name
2 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository34 other files it gives its agents.
- astroSkill
- bun-standardsSkill
- postgresSkill
- react-engineeringSkill
- rust-standardsSkill
- spring-bootSkill
- typescript-standardsSkill
- vitest-testingSkill
- api-designSkill
- architecture-reviewSkill
- benchmark-readiness-reviewSkill
- cli-designSkill
- codebase-scoutingSkill
- code-review-findingsSkill
- config-projection-reviewSkill
- documentation-hygieneSkill
- domain-modelingSkill
- formal-verificationSkill
- implementation-planningSkill
- orchestration-workflowSkill
- problem-clarificationSkill
- product-copySkill
- refactorSkill
- repository-text-hygieneSkill
- researchSkill
- security-scope-reviewSkill
- setup-canastaSkill
- system-designSkill
- task-closeoutSkill
- tddSkill
- technical-writingSkill
- upstream-contributionSkill
- writing-issuesSkill
- writing-prSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
33 rules. 0 are common, 19 are distinctive, and 14 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
19
Distinctive
This author's own choices. Worth a look.
14
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Prefer official Tailwind documentation when behavior is uncertain:
- Very specific: line 22
Use @import "tailwindcss".
- Very specific: line 23
Use @theme for values that should generate utilities.
- Very specific: line 24
Use @theme inline when mapping Tailwind utility tokens to runtime CSS variables, especially with shadcn-style semantic variables.
- Very specific: line 25
Keep runtime semantic values in :root, .dark, or theme selectors.
- Very specific: line 51
Use semantic names for component code: bg-background, text-foreground, border-border, text-muted-foreground.
- Distinctive: line 52
Avoid raw palette utilities inside reusable components unless the token is intentionally local.
- Distinctive: line 53
Do not duplicate the same value in both component code and CSS variables.
- Very specific: line 54
Do not put theme-variant values directly inside static @theme blocks when they need runtime theme switching.
- Very specific: line 56
Treat accent as a restrained interaction surface for hover, focus, selection, and low-emphasis controls—not as a second CTA, warning, or …
- Distinctive: line 57
Keep neutral fallback tokens for boot, loading, offline, and missing-theme states.
- Distinctive: line 61
Prefer standard scale utilities over arbitrary values.
- Distinctive: line 62
Use arbitrary values only for real one-off geometry, measured layout constraints, or token bridging.
- Very specific: line 63
Use gap-* instead of space-x-*/space-y-* for flexible layouts.
- Very specific: line 64
Use size-* for square elements.
- Very specific: line 65
Use min-w-0 and min-h-0 in flex/grid children that contain text, tables, charts, or scroll areas.
- Very specific: line 66
Use container queries (@container, @sm:, @lg:) when component width matters more than viewport width.
- Distinctive: line 67
Use logical properties in CSS when directionality matters.
- Distinctive: line 71
Do not create CSS classes that secretly reimplement component variants.
- Distinctive: line 72
Use CVA or the repository's existing variant system for components with repeated visual states.
- Very specific: line 73
Put consumer className last in cn() merging.
- Distinctive: line 74
Keep Tailwind classes readable: group by layout, box, typography, color, state, then motion when the class list is long.
- Distinctive: line 76
Do not extract just to hide normal Tailwind usage.
- Distinctive: line 80
Prefer intrinsic responsive layouts over breakpoint-heavy designs.
- Very specific: line 82
Use data-attribute variants from primitives for state (data-[state=open]:...) instead of manual class switching.
- Distinctive: line 83
Keep hover-only behavior behind interaction-capable devices when it changes meaning.
- Distinctive: line 84
Ensure long labels, Spanish copy, and dynamic content can wrap or truncate intentionally.
- Distinctive: line 85
Prefer native scrolling. If styling is needed, derive quiet scrollbar colors from semantic tokens and preserve platform behavior.
- Distinctive: line 86
Keep full-app shell scrolling in the shell.
- Distinctive: line 92
Avoid animating layout properties.
- Very specific: line 93
Do not leave will-change permanently applied.
- Distinctive: line 94
Use reduced-motion variants or CSS media queries for movement.
- Distinctive: line 111
No unknown utility classes in build output.
“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Tailwind v4
Use Tailwind CSS v4 as a CSS-first design-system layer. Keep this skill focused on Tailwind mechanics, tokens, utilities, variants, and maintainability. Use the upstream shadcn guidance (not bundled) for component registry/API work. For color conversion, palettes, contrast and gamut, consult MDN's OKLCH reference or the upstream OKLCH skill, which is not bundled.
Sources
Prefer official Tailwind documentation when behavior is uncertain:
- Theme variables: https://tailwindcss.com/docs/theme
- Styling with utility classes: https://tailwindcss.com/docs/styling-with-utility-classes
- Upgrade guide: https://tailwindcss.com/docs/upgrade-guide
- Tailwind v4 announcement: https://tailwindcss.com/blog/tailwindcss-v4
Baseline
- Tailwind v4 is CSS-first. Treat the main CSS file as the source of theme configuration.
- Use
@import "tailwindcss";in the CSS entrypoint. - Use
@themefor values that should generate utilities. - Use
@theme inlinewhen mapping Tailwind utility tokens to runtime CSS variables, especially with shadcn-style semantic variables. - Keep runtime semantic values in
:root,.dark, or theme selectors; keep utility-generating names in@theme. - Tailwind v4 targets modern browsers: Safari 16.4+, Chrome 111+, and Firefox 128+. If a project must support older browsers, keep that as explicit product/platform debt.
Token Model
Use this split:
@import "tailwindcss";
@theme inline {
--color-primary: var(--primary);
--color-background: var(--background);
--font-sans: var(--font-body);
}
:root {
--primary: oklch(0.45 0 0);
--background: oklch(1 0 0);
--font-body: system-ui, sans-serif;
}Rules:
- Define new color values in OKLCH.
- Use semantic names for component code:
bg-background,text-foreground,border-border,text-muted-foreground. - Avoid raw palette utilities inside reusable components unless the token is intentionally local.
- Do not duplicate the same value in both component code and CSS variables.
- Do not put theme-variant values directly inside static
@themeblocks when they need runtime theme switching. - Define semantic state tokens such as success, warning, info, and destructive when the product needs them; consume those names through component variants instead of palette-string props or local color maps.
- Treat
accentas a restrained interaction surface for hover, focus, selection, and low-emphasis controls—not as a second CTA, warning, or unrelated brand color. - Keep neutral fallback tokens for boot, loading, offline, and missing-theme states. Once an authoritative runtime theme is available, do not layer client-side color derivations over it.
Utility Composition
- Prefer standard scale utilities over arbitrary values.
- Use arbitrary values only for real one-off geometry, measured layout constraints, or token bridging.
- Use
gap-*instead ofspace-x-*/space-y-*for flexible layouts. - Use
size-*for square elements. - Use
min-w-0andmin-h-0in flex/grid children that contain text, tables, charts, or scroll areas. - Use container queries (
@container,@sm:,@lg:) when component width matters more than viewport width. - Use logical properties in CSS when directionality matters.
Components
- Do not create CSS classes that secretly reimplement component variants.
- Use CVA or the repository's existing variant system for components with repeated visual states.
- Put consumer
classNamelast incn()merging. - Keep Tailwind classes readable: group by layout, box, typography, color, state, then motion when the class list is long.
- Extract a component or variant when repeated class bundles represent behavior or a reusable semantic state.
- Do not extract just to hide normal Tailwind usage.
Responsive And State
- Prefer intrinsic responsive layouts over breakpoint-heavy designs.
- For simple responsive grids, consider
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))in CSS or equivalent Tailwind arbitrary grid only when it improves the layout. - Use data-attribute variants from primitives for state (
data-[state=open]:...) instead of manual class switching. - Keep hover-only behavior behind interaction-capable devices when it changes meaning.
- Ensure long labels, Spanish copy, and dynamic content can wrap or truncate intentionally.
- Prefer native scrolling. If styling is needed, derive quiet scrollbar colors from semantic tokens and preserve platform behavior; reserve custom scroll components for bounded widgets.
- Keep full-app shell scrolling in the shell. Do not add page-level viewport-height classes or competing overflow containers as a local layout fix.
Motion And Performance
- Animate
transformandopacityby default. - In Tailwind v4, transform-related properties can be independent CSS properties; verify transition utilities affect the property you actually animate.
- Avoid animating layout properties.
- Do not leave
will-changepermanently applied. - Use reduced-motion variants or CSS media queries for movement.
Anti-Patterns
- Hardcoded hex/rgb/hsl colors in reusable JSX.
- Arbitrary pixel values for normal spacing, type, radius, or width scale.
transition-allon interactive components.- Negative letter spacing as a default polish move.
- Overusing
gridwhereflexor normal document flow is simpler. - Theme tokens split across several CSS files without a clear owner.
- Tailwind config files kept around as fake authority after migrating to v4.
- Adding plugins or helper libraries before checking whether v4 has the feature natively.
Verification
For Tailwind changes, run the project's normal CSS/build check. When available, also verify:
- No unknown utility classes in build output.
- Dark/theme variants resolve correctly.
- Long text and responsive states do not overflow.
- Contrast remains acceptable after token changes.
- shadcn components still use the expected
baseAPI and semantic tokens.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

