home / skills / fusengine / agents / tailwindcss-responsive
This skill helps you implement responsive design with Tailwind CSS by outlining breakpoints and container queries for adaptive layouts.
npx playbooks add skill fusengine/agents --skill tailwindcss-responsiveReview the files below or copy the command above to add this skill to your agents.
---
name: tailwindcss-responsive
description: Responsive design, breakpoints, container queries
user-invocable: false
---
# Responsive Design
## Default Breakpoints
| Variant | Size | CSS |
|---------|--------|-----|
| `sm:` | 40rem (640px) | `@media (width >= 40rem)` |
| `md:` | 48rem (768px) | `@media (width >= 48rem)` |
| `lg:` | 64rem (1024px) | `@media (width >= 64rem)` |
| `xl:` | 80rem (1280px) | `@media (width >= 80rem)` |
| `2xl:` | 96rem (1536px) | `@media (width >= 96rem)` |
## Custom breakpoint
```css
@theme {
--breakpoint-3xl: 120rem;
}
/* Usage: 3xl:grid-cols-6 */
```
## Container Queries v4
```html
<div class="@container">
<div class="@md:grid-cols-2 @lg:grid-cols-3">
<!-- Responsive to container -->
</div>
</div>
```
## Mobile-first
```html
<div class="text-sm md:text-base lg:text-lg">
<!-- Small screens first -->
</div>
```
This skill helps agents design and implement responsive layouts using breakpoint utilities, container queries, and mobile-first patterns inspired by Tailwind CSS. It provides clear conventions for default breakpoints, an easy path to custom breakpoints, and examples for container-based responsiveness. Use it to convert design intent into scalable, maintenance-friendly CSS classes and patterns.
The skill documents default breakpoint tokens (sm, md, lg, xl, 2xl) mapped to rem and pixel values and shows the corresponding media query behavior. It explains how to declare custom breakpoints in theme variables and how to apply container queries so elements respond to their container size rather than the viewport. It also demonstrates mobile-first class composition where base styles are defined first and augmented at larger breakpoints.
How do container queries differ from media queries?
Container queries respond to their parent container size, enabling components to adapt where they are placed, while media queries respond only to the viewport size.
Can I add custom breakpoint names?
Yes. Define custom values in theme variables (for example --breakpoint-3xl: 120rem) and reference them with the corresponding class token.