@utility, @variant, @apply, custom CSS
Scanned 2/12/2026
Install to Claude Code
npx -y skills add fusengine/agents --skill tailwindcss-custom-styles --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Tailwindcss Custom Styles?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/fusengine-tailwindcss-custom-styles)More formats (shields.io, HTML) on the badges page.
---
name: tailwindcss-custom-styles
description: @utility, @variant, @apply, custom CSS
user-invocable: false
---
# Custom Styles
## @utility - Create a utility
```css
@utility glass-effect {
backdrop-filter: blur(10px);
background: rgba(255, 255, 255, 0.1);
}
/* Usage: class="glass-effect hover:glass-effect" */
```
## @variant - Conditional style
```css
.card {
background: white;
@variant dark { background: #1a1a2e; }
@variant hover { transform: scale(1.05); }
}
```
## @custom-variant - New variant
```css
@custom-variant theme-midnight (&:where([data-theme="midnight"] *));
/* Usage: theme-midnight:bg-black */
```
## @apply - Inline utilities
```css
.btn-primary {
@apply bg-blue-500 text-white px-4 py-2 rounded-lg;
}
```
## @layer - CSS organization
```css
@layer components {
.card { @apply bg-white shadow-md rounded-xl p-4; }
}
```
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Implement modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first breakpoint strategies. Use when building adaptive interfaces, implementing fluid layouts, or creating component-level responsive behavior.