What is the tailwind-ui skill?
Tailwind-ui is a skill in the omer-metin/skills-for-antigravity collection. It sets an AI coding agent up as a Tailwind CSS expert and points it to three reference files: patterns for building, sharp edges for diagnosing failures, and validations for reviewing code against strict rules.
It is a skill in a collection of skills converted to Markdown for Google Antigravity. The SKILL.md frames the agent as a Tailwind CSS expert and tells it to ground answers in three reference files that act as the source of truth.
What the three references do
- patterns.md says how to build: mobile-first layouts, class based dark mode, component extraction, centered containers, card grids and focus and hover states.
- sharp_edges.md explains why things fail: purged dynamic class names, missing content paths, class order, dark mode setup, the spacing scale, peer and sibling variants, JIT mode and layer order.
- validations.md holds review rules with a message and fix for each, such as an empty content array or a deprecated purge option.
Anti-patterns it names
The patterns file lists arbitrary value overuse, important modifier abuse, mixing inline styles with Tailwind, deep nesting in apply and ignoring mobile-first, so the agent can flag them in code you already have.
Who the skill is for
Best for
- Developers whose styles work in development but disappear in production builds.
- Teams that want a short rule set for reviewing Tailwind code.
- Projects that need class based dark mode and a consistent responsive approach.
Not for
- Visual taste or art direction. The skill covers mechanics, not a design style.
- Projects without Tailwind.
- Projects on a newer Tailwind setup that does not use a config file, since several examples use tailwind.config.js.
For a token based setup see tailwind-design-system and for utility class snippets see tailwind-css-patterns. Pair either with css-expert for layout questions.
How to install Tailwind UI Skill for Utility CSS Patterns
git clone https://github.com/omer-metin/skills-for-antigravity.gitThe collection was converted from another skills project and its README says AI was used to repair formatting during conversion.Clone the repository
Run
git clone https://github.com/omer-metin/skills-for-antigravity.git. The skill is the skills/tailwind-ui folder.Copy the skill folder
The README says to copy the skills you want into your Antigravity workspace, either the global skills folder or a project .agent/skills folder.
Keep the references
Copy the references folder with patterns.md, sharp_edges.md and validations.md, since the SKILL.md depends on them.
Ask a Tailwind question
Ask the agent to review a component or fix styles missing from a production build.
Check that it loaded
Give it a component that builds a class name with a template string. It should flag the dynamic class and suggest a mapping object or a safelist.
Key features
- Utility first identityFrames the agent around utility composition, mobile-first, theme consistency, performance and accessibility.
- Reference groundingTells the agent to consult patterns for creation, sharp edges for diagnosis and validations for review.
- Mobile-first patternStacks by default and switches to a row at breakpoints, with responsive text sizing.
- Dark mode with class strategySets darkMode to class and toggles a dark class on the document element.
- Component extractionExtracts repeated utilities with apply inside a components layer, or with React components.
- Purge awarenessWarns that dynamically built class names are removed in production and shows a mapping object or safelist.
- Content path checkFlags an empty or mismatched content array as the reason no classes are generated.
- Review rulesValidations cover deprecated purge options, excessive important modifiers, arbitrary values and inline style mixing.
- Anti-pattern listLists five habits to avoid, from deep apply nesting to ignoring mobile-first.
Frequently asked questions
What is the tailwind-ui skill?
It is a skill in omer-metin/skills-for-antigravity that makes an AI agent a Tailwind CSS expert. It relies on three reference files covering build patterns, failure causes called sharp edges, and strict validation rules for review.
How do I install it?
Clone omer-metin/skills-for-antigravity and copy the skills/tailwind-ui folder, with its references, into your agent's skills folder. The README names a global Antigravity skills folder and a project .agent/skills folder as targets.
Why do my Tailwind classes disappear in production?
The sharp edges file says Tailwind scans source files for complete class names. Names built with template strings, such as a color inserted into a class, are not found and get purged. Use a mapping object or a safelist.
Why are no Tailwind classes generated at all?
The skill points to missing content paths. Tailwind needs a content array matching your file locations, and an empty array or wrong globs produce a nearly empty CSS file. Add patterns for your app, components and source folders.
Does it cover dark mode?
Yes. It shows setting darkMode to class in the config, writing dark variants on elements and toggling a dark class on the document element. A validation rule flags dark classes used without that config.
When should I use apply?
The patterns file says to extract repeated utility combinations used three or more times, inside a components layer, and prefers React components where possible. An anti-pattern warns against deeply nesting apply.
Is it a design skill?
No. It covers mechanics and pitfalls of Tailwind, not taste. For visual direction use frontend-design, and for tokens and theming see design-tokens, which are separate skills you install on their own if you need token or theming guidance beyond Tailwind.


