Back to Skills

tailwindcss-custom-styles

verified

@utility, @variant, @apply, custom CSS

View on GitHub

Marketplace

fusengine-plugins

fusengine/agents

Plugin

fuse-tailwindcss

development

Repository

fusengine/agents

plugins/tailwindcss/skills/tailwindcss-custom-styles/SKILL.md

Last Verified

January 22, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/fusengine/agents/blob/main/plugins/tailwindcss/skills/tailwindcss-custom-styles/SKILL.md -a claude-code --skill tailwindcss-custom-styles

Installation paths:

Claude
.claude/skills/tailwindcss-custom-styles/
Powered by add-skill CLI

Instructions

# 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; }
}
```

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
730 chars