tailwind-responsive-ui by pproenca/dot-skills
npx skills add https://github.com/pproenca/dot-skills --skill tailwind-responsive-ui基于 Adam Wathan 和 Steve Schoger 的《重构 UI》以及现代响应式设计模式的 Tailwind CSS 应用全面响应式改造指南。包含 8 个类别共 49 条规则,按影响优先级排序,以指导自动化重构和代码生成。
在以下情况下参考这些指南:
| 优先级 | 类别 | 影响 | 前缀 |
|---|---|---|---|
| 1 | 断点策略 | 关键 | bp- |
| 2 | 布局转换 | 关键 | layout- |
| 3 | 响应式间距 | 高 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
rspac-| 4 | 流式排版 | 高 | fluid- |
| 5 | 导航模式 | 中高 | nav- |
| 6 | 触摸与交互 | 中 | touch- |
| 7 | 响应式媒体 | 中 | rmedia- |
| 8 | 数据适配 | 低中 | data- |
bp-mobile-first-default - 使用移动优先的断点方向bp-content-driven-breakpoints - 在内容需要时设置断点bp-avoid-device-widths - 避免使用特定设备宽度的断点值bp-consolidate-breakpoints - 将断点合并为三到四个bp-min-width-over-max - 对断点使用 min-width 而非 max-widthbp-debug-breakpoints - 在开发期间使用视觉断点指示器layout-stack-to-row - 移动端堆叠元素,桌面端横向排列layout-sidebar-collapse - 在移动端将侧边栏折叠到顶部或底部layout-grid-column-reduction - 在较窄的断点处减少网格列数layout-holy-grail-responsive - 使用响应式的圣杯布局与网格layout-sticky-to-static - 在移动端将粘性元素转换为静态元素layout-fixed-to-relative - 在移动端用相对定位替换固定定位layout-aspect-ratio-containers - 使用宽高比实现响应式容器rspac-scale-padding-per-bp - 为每个断点独立缩放内边距rspac-responsive-gap - 使用响应式间距进行网格和弹性布局rspac-compact-mobile-generous-desktop - 移动端使用紧凑间距,桌面端使用宽松间距rspac-section-spacing - 根据视口缩放区域分隔rspac-inline-to-stack-spacing - 在移动端将行内间距转换为堆叠间距rspac-container-padding - 使用响应式容器内边距fluid-clamp-font-size - 使用 clamp() 实现流式字体大小fluid-responsive-line-height - 随着字体大小增加而收紧行高fluid-responsive-measure - 将行长限制在 45-75 个字符fluid-scale-headings-independently - 在不同断点独立缩放标题大小fluid-responsive-letter-spacing - 为响应式标题调整字母间距fluid-type-scale - 使用响应式字体比例nav-horizontal-to-hamburger - 在移动端将水平导航折叠为汉堡菜单nav-tab-bar-mobile - 为主要的移动端导航使用底部标签栏nav-breadcrumb-collapse - 在移动端截断面包屑导航nav-sidebar-drawer - 在移动端将侧边栏导航转换为画布外抽屉nav-dropdown-to-fullscreen - 在移动端将下拉菜单扩展为全宽nav-sticky-header-compact - 在移动端滚动时压缩页眉touch-min-touch-target - 确保移动端最小 44px 的触摸目标touch-hover-to-tap - 用适合点击的替代方案替换悬停交互touch-swipe-affordance - 为水平滚动添加视觉滑动提示touch-scroll-snap-mobile - 为类似轮播的移动端界面使用滚动吸附touch-input-sizing-mobile - 调整表单输入框大小以防止 iOS 缩放touch-focus-visible-touch - 使用 focus-visible 实现适合触摸的焦点样式rmedia-responsive-images - 使用 object-fit 实现响应式图片大小rmedia-video-aspect-ratio - 在不同断点保持视频宽高比rmedia-icon-size-scaling - 按断点缩放图标,而非随字体大小变化rmedia-avatar-responsive - 根据上下文和断点缩放头像大小rmedia-background-image-bp - 在断点处切换背景图片rmedia-embed-responsive - 使用容器约束使嵌入内容具有响应性data-table-to-cards - 在移动端将表格转换为卡片data-horizontal-scroll-table - 为密集数据表格使用水平滚动data-responsive-data-grid - 根据屏幕尺寸调整数据网格密度data-list-density-mobile - 在移动端增加列表项密度data-truncate-overflow - 在移动端截断溢出的文本data-responsive-form-layout - 移动端堆叠表单字段,桌面端使用网格布局阅读各个参考文件以获取详细解释和代码示例:
| 文件 | 描述 |
|---|---|
| references/_sections.md | 类别定义和排序 |
| assets/templates/_template.md | 新规则模板 |
| metadata.json | 版本和参考信息 |
每周安装次数
78
代码仓库
GitHub 星标数
86
首次出现
2026年2月12日
安全审计
安装于
codex74
github-copilot73
gemini-cli73
kimi-cli72
opencode72
amp71
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.
Reference these guidelines when:
| 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- |
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 Breakpointslayout-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 Mobilerspac-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 Mobilefluid-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 Headlinesnav-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 Mobiletouch-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 Zoomrmedia-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 Breakpointsdata-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 MobileRead individual reference files for detailed explanations and code examples:
| File | Description |
|---|---|
| references/_sections.md | Category definitions and ordering |
| assets/templates/_template.md | Template for new rules |
| metadata.json | Version and reference information |
Weekly Installs
78
Repository
GitHub Stars
86
First Seen
Feb 12, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex74
github-copilot73
gemini-cli73
kimi-cli72
opencode72
amp71
agentation - AI智能体可视化UI反馈工具,连接人眼与代码的桥梁
5,400 周安装
Specstory Yak Shave 分析器 - 检测AI编码会话目标偏离,提升开发专注度
116 周安装
生产级后端服务开发指南:API设计、数据库、认证、缓存与可观测性最佳实践
115 周安装
NestJS最佳实践指南:26条生产级规则,涵盖安全、性能、架构与数据库
117 周安装
MUI Base UI 最佳实践指南:构建无样式React组件库的48条规则
116 周安装
FastAPI开发专家技能:构建安全、高性能、生产就绪的Python Web API
116 周安装
Fireflies会议跟进助手:自动生成结构化摘要与Gmail跟进草稿,快速完成会议闭环
120 周安装
bp-debug-breakpointslayout-fixed-to-relativelayout-aspect-ratio-containers - Use Aspect Ratio for Responsive Containersrspac-container-paddingnav-sticky-header-compacttouch-focus-visible-touchrmedia-embed-responsivedata-responsive-form-layout