sablier-labs/agent-skills/tailwind-css
- community
Checking that the SKILL.md file is still in the repository.
This skill should be used when the user asks about "Tailwind CSS", "tailwind-variants", "tv() function", "CSS-first configuration", "Tailwind breaking changes", mentions styling with Tailwind utilities, gradient syntax, or component variants with TypeScript.
Install
npx vskill@latest install sablier-labs/agent-skills/tailwind-cssSKILL.md
Tailwind CSS v4 & tailwind-variants
Your Role
You are an expert in Tailwind CSS v4. You understand CSS-first configuration, modern utility patterns, and type-safe component styling with tailwind-variants.
Reference Documentation
- Tailwind v4 Rules & Best Practices: `./references/tailwind-v4-rules.md`
- Breaking changes, removed/renamed utilities, layout rules, typography, gradients, CSS variables, new v4 features,
common pitfalls
- tailwind-variants Patterns: `./references/tailwind-variants.md`
- Component variants, slots API, composition, TypeScript integration, responsive variants
Core Principles
- Always use Tailwind CSS v4.1+
- Do not use deprecated or removed utilities - Use the replacement
- Never use `@apply` - Use CSS variables, the
--spacing()function, or framework components instead - Check for redundant classes - Remove any classes that aren't necessary
Configuration Method
Tailwind CSS v4 uses CSS-only configuration:
- No
tailwind.config.tsfile needed - Define theme tokens with
@theme { }or@theme static { } - Create custom utilities with
@utility { } - Define custom variants with
@custom-variant { }
Critical Breaking Changes (v3 → v4)
Renamed Utilities
| v3 (deprecated) | v4 (use instead) | |
|---|---|---|
bg-gradient-* | bg-linear-* | |
shadow-sm | shadow-xs | |
shadow | shadow-sm | |
blur-sm | blur-xs | |
blur | blur-sm | |
rounded-sm | rounded-xs | |
rounded | rounded-sm | |
outline-none | outline-hidden | |
ring | ring-3 | |
drop-shadow-sm | drop-shadow-xs | |
drop-shadow | drop-shadow-sm | |
backdrop-blur-sm | backdrop-blur-xs | |
backdrop-blur | backdrop-blur-sm |
Removed Utilities
| Deprecated | Replacement | |
|---|---|---|
bg-opacity-* | Use opacity modifier: bg-black/50 | |
text-opacity-* | Use opacity modifier: text-black/50 | |
border-opacity-* | Use opacity modifier: border-black/50 | |
flex-shrink-* | shrink-* | |
flex-grow-* | grow-* | |
overflow-ellipsis | text-ellipsis |
Gradient Syntax
Use v4 gradient syntax:
Responsive Design (Mobile-First)
Tailwind is mobile-first:
- Default classes (no prefix) apply to all screen sizes
- Breakpoint prefixes (
md:,lg:) apply at that breakpoint and above - Never use `sm:` for mobile - it's redundant
Layout Best Practices
Always use gap for flex/grid spacing
Use min-h-dvh instead of min-h-screen
min-h-screen is buggy on mobile Safari.
Use size-* for equal width/height
Typography
Use line-height modifiers, not `leading-*` classes:
CSS Variables
Tailwind v4 exposes theme values as CSS variables:
Use --spacing() function for calculations:
tailwind-variants Quick Start
Type-safe component variants with automatic class conflict resolution:
See [`./references/tailwind-variants.md`](./references/tailwind-variants.md) for:
- Slots API for multi-part components
- Compound variants
- Component composition with
extend - TypeScript integration patterns
Quick Reference
| Topic | Pattern | |
|---|---|---|
| Gradients | bg-linear-*, bg-radial, bg-conic | |
| Opacity | bg-red-500/50 (not bg-opacity-*) | |
| Line height | text-base/7 (not leading-*) | |
| Spacing | Use gap-* in flex/grid | |
| Equal size | size-10 (not w-10 h-10) | |
| Full height | min-h-dvh (not min-h-screen) | |
| Component variants | tv() from tailwind-variants |
Common Tasks
Creating a component with variants:
- Read `./references/tailwind-variants.md` for patterns
- Use
tv()for type-safe variants - Extract types with
VariantProps<typeof component>
Debugging styles:
- Check `./references/tailwind-v4-rules.md` for breaking changes
- Verify gradient syntax (
bg-linear-*, notbg-gradient-*) - Check opacity syntax (
bg-red-500/50, notbg-opacity-*)
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/tailwind-css/SKILL.md
Popularity
- Repository stars
- 6
- Repository forks
- 1
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 17 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sablier-labs/agent-skills/tailwind-css)