Responsive tailwind ui
Skill itsyasirkhandev/spec-driven-development/skills/UI Design/responsive-tailwind-ui
Responsive UI transformation patterns for Tailwind CSS applications. This skill should be used when making interfaces responsive, refactoring layouts for multiple screen sizes, or reviewing responsive Tailwind code. Triggers on tasks involving breakpoint strategy, layout adaptation, responsive spacing, fluid typography, mobile navigation, touch interaction, responsive media, or data table responsiveness.From its SKILL.md
npx -y skills add itsyasirkhandev/spec-driven-development --skill responsive-tailwind-uiAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
8.1 KB, ~1.8k tokens by cl100k_base, as published. Nobody here has run it
Community Responsive UI Tailwind CSS Best Practices
Comprehensive responsive transformation guide for Tailwind CSS applications, based on Refactoring UI by Adam Wathan & Steve Schoger and modern responsive design patterns. Contains 49 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.
When to Apply
Reference these guidelines when:
- Making an existing UI responsive across screen sizes
- Building new responsive layouts with Tailwind CSS
- Refactoring desktop-only interfaces for mobile support
- Reviewing responsive code for breakpoint, spacing, and typography issues
- Adapting navigation, forms, and data tables for touch devices
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Breakpoint Strategy | CRITICAL | bp- |
| 2 | Layout Transformation | CRITICAL | layout- |
| 3 | Responsive Spacing | HIGH | rspac- |
| 4 | Fluid Typography | HIGH | fluid- |
| 5 | Navigation Patterns | MEDIUM-HIGH | nav- |
| 6 | Touch & Interaction | MEDIUM | touch- |
| 7 | Responsive Media | MEDIUM | rmedia- |
| 8 | Data Adaptation | LOW-MEDIUM | data- |
Quick Reference
1. Breakpoint Strategy (CRITICAL)
bp-mobile-first-default- Use Mobile-First Breakpoint Directionbp-content-driven-breakpoints- Set Breakpoints Where Content Breaksbp-avoid-device-widths- Avoid Device-Specific Breakpoint Valuesbp-consolidate-breakpoints- Consolidate Breakpoints to Three or Fourbp-min-width-over-max- Use min-width Over max-width for Breakpointsbp-debug-breakpoints- Use Visual Breakpoint Indicators During Development
2. Layout Transformation (CRITICAL)
layout-stack-to-row- Stack Elements on Mobile, Row on Desktoplayout-sidebar-collapse- Collapse Sidebar to Top or Bottom on Mobilelayout-grid-column-reduction- Reduce Grid Columns at Narrower Breakpointslayout-holy-grail-responsive- Use Responsive Holy Grail Layout with Gridlayout-sticky-to-static- Convert Sticky Elements to Static on Mobilelayout-fixed-to-relative- Replace Fixed Positioning with Relative on Mobilelayout-aspect-ratio-containers- Use Aspect Ratio for Responsive Containers
3. Responsive Spacing (HIGH)
rspac-scale-padding-per-bp- Scale Padding Independently Per Breakpointrspac-responsive-gap- Use Responsive Gap for Grid and Flex Spacingrspac-compact-mobile-generous-desktop- Use Compact Spacing on Mobile, Generous on Desktoprspac-section-spacing- Scale Section Dividers with Viewportrspac-inline-to-stack-spacing- Convert Inline Spacing to Stack Spacing on Mobilerspac-container-padding- Use Responsive Container Padding
4. Fluid Typography (HIGH)
fluid-clamp-font-size- Use clamp() for Fluid Font Sizingfluid-responsive-line-height- Tighten Line Height as Font Size Increasesfluid-responsive-measure- Constrain Line Length to 45-75 Charactersfluid-scale-headings-independently- Scale Heading Sizes Independently Across Breakpointsfluid-responsive-letter-spacing- Adjust Letter Spacing for Responsive Headlinesfluid-type-scale- Use a Responsive Type Scale
5. Navigation Patterns (MEDIUM-HIGH)
nav-horizontal-to-hamburger- Collapse Horizontal Nav to Hamburger on Mobilenav-tab-bar-mobile- Use Bottom Tab Bar for Primary Mobile Navigationnav-breadcrumb-collapse- Truncate Breadcrumbs on Mobilenav-sidebar-drawer- Convert Sidebar Nav to Off-Canvas Drawer on Mobilenav-dropdown-to-fullscreen- Expand Dropdown Menus to Full-Width on Mobilenav-sticky-header-compact- Compact the Header on Scroll for Mobile
6. Touch & Interaction (MEDIUM)
touch-min-touch-target- Ensure Minimum 44px Touch Targets on Mobiletouch-hover-to-tap- Replace Hover Interactions with Tap-Friendly Alternativestouch-swipe-affordance- Add Visual Swipe Affordances for Horizontal Scrollingtouch-scroll-snap-mobile- Use Scroll Snap for Carousel-Like Mobile Interfacestouch-input-sizing-mobile- Size Form Inputs to Prevent iOS Zoomtouch-focus-visible-touch- Use focus-visible for Touch-Friendly Focus Styles
7. Responsive Media (MEDIUM)
rmedia-responsive-images- Use Responsive Image Sizing with Object-Fitrmedia-video-aspect-ratio- Maintain Video Aspect Ratio Across Breakpointsrmedia-icon-size-scaling- Scale Icons Per Breakpoint, Not with Font Sizermedia-avatar-responsive- Scale Avatar Sizes Per Context and Breakpointrmedia-background-image-bp- Swap Background Images at Breakpointsrmedia-embed-responsive- Make Embedded Content Responsive with Container Constraints
8. Data Adaptation (LOW-MEDIUM)
data-table-to-cards- Transform Tables to Cards on Mobiledata-horizontal-scroll-table- Use Horizontal Scroll for Dense Data Tablesdata-responsive-data-grid- Adapt Data Grid Density for Screen Sizedata-list-density-mobile- Increase List Item Density on Mobiledata-truncate-overflow- Truncate Overflowing Text on Mobiledata-responsive-form-layout- Stack Form Fields on Mobile, Use Grid on Desktop
How to Use
Read individual reference files for detailed explanations and code examples:
- Section definitions - Category structure and impact levels
- Rule template - Template for adding new rules
Reference Files
| File | Description |
|---|---|
| references/_sections.md | Category definitions and ordering |
| assets/templates/_template.md | Template for new rules |
| metadata.json | Version and reference information |
What ships with it: 52 files
177.4 KB alongside SKILL.md
assets/
references/
- bp-avoid-device-widths.md2.2 KB
- bp-consolidate-breakpoints.md2.2 KB
- bp-content-driven-breakpoints.md2.0 KB
- bp-debug-breakpoints.md2.4 KB
- bp-min-width-over-max.md2.5 KB
- bp-mobile-first-default.md2.1 KB
- data-horizontal-scroll-table.md4.9 KB
- data-list-density-mobile.md4.9 KB
- data-responsive-data-grid.md5.8 KB
- data-responsive-form-layout.md6.1 KB
- data-table-to-cards.md5.0 KB
- data-truncate-overflow.md4.3 KB
- fluid-clamp-font-size.md2.0 KB
- fluid-responsive-letter-spacing.md2.4 KB
- fluid-responsive-line-height.md2.4 KB
- fluid-responsive-measure.md2.8 KB
- fluid-scale-headings-independently.md2.5 KB
- fluid-type-scale.md3.0 KB
- layout-aspect-ratio-containers.md3.3 KB
- layout-fixed-to-relative.md3.8 KB
- layout-grid-column-reduction.md3.3 KB
- layout-holy-grail-responsive.md3.5 KB
- layout-sidebar-collapse.md2.8 KB
- layout-stack-to-row.md2.9 KB
- layout-sticky-to-static.md2.9 KB
- nav-breadcrumb-collapse.md3.2 KB
- nav-dropdown-to-fullscreen.md4.0 KB
- nav-horizontal-to-hamburger.md4.3 KB
- nav-sidebar-drawer.md4.8 KB
- nav-sticky-header-compact.md6.4 KB
- nav-tab-bar-mobile.md6.9 KB
- rmedia-avatar-responsive.md3.7 KB
- rmedia-background-image-bp.md2.8 KB
- rmedia-embed-responsive.md2.6 KB
- rmedia-icon-size-scaling.md4.5 KB
- rmedia-responsive-images.md2.2 KB
- rmedia-video-aspect-ratio.md2.4 KB
- rspac-compact-mobile-generous-desktop.md6.1 KB
- metadata.json1005 B
12 more files not listed here. See all 52 in the repository.
Gives 0 of the 12 instructions most css styling skills give in ~1.8k tokens
Counted across 512 of the 512 authors here whose files we hold, read 2026-09-06
- Animate only transform and opacityin 32 of 512, across 30 files
- Respect prefers-reduced-motionin 21 of 512
- Support reduced motion preferencesin 16 of 512, across 6 files
- Use Tailwind CSS for stylingin 14 of 512, across 13 files
- Specify AnimatePresence mode explicitlyin 12 of 512, across 2 files
- Set initial states explicitlyin 12 of 512, across 2 files
- Use semantic HTML elementsin 11 of 512, across 10 files
- Use oklch for color valuesin 11 of 512, across 10 files
- Honor prefers-reduced-motion in animationsin 10 of 512
- Provide a reduced-motion fallback for animationsin 10 of 512, across 9 files
- Use property names in camelCasein 9 of 512, across 4 files
- Ensure UI animations stay under 300msin 9 of 512, across 6 files
Said here and by no other author read
- use mobile first breakpoint direction
- set breakpoints where content breaks
- stack elements on mobile row on desktop
- use compact spacing on mobile generous on desktop
- transform tables to cards on mobile
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.