mobile-first-design by secondsky/claude-skills
npx skills add https://github.com/secondsky/claude-skills --skill mobile-first-design以移动端为基础设计界面,然后针对更大屏幕进行增强。
| 名称 | 宽度 | 设备 |
|---|---|---|
| 移动端 | 320-480px | iPhone SE,小型安卓设备 |
| 平板 | 481-768px | iPad mini |
| 桌面端 | 769-1024px | iPad Pro,笔记本电脑 |
| 大屏 | 1025px+ | 桌面显示器 |
/* Base styles (mobile) */
.container {
padding: 1rem;
}
.nav {
display: none; /* Hidden on mobile */
}
.nav-toggle {
display: block; /* Hamburger visible */
}
/* Tablet and up */
@media (min-width: 768px) {
.container {
padding: 2rem;
max-width: 720px;
margin: 0 auto;
}
.nav {
display: flex;
}
.nav-toggle {
display: none;
}
}
/* Desktop */
@media (min-width: 1024px) {
.container {
max-width: 960px;
}
}
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
/* Minimum touch target: 48x48px */
.button {
min-height: 48px;
min-width: 48px;
padding: 12px 24px;
}
/* Adequate spacing */
.list-item {
padding: 16px;
margin-bottom: 8px;
}
| 指标 | 目标 |
|---|---|
| 首次内容绘制 | 3G网络下 <3秒 |
| JS包大小 | gzip压缩后 <100KB |
| 页面总大小 | <500KB |
<!-- Layer 1: Semantic HTML (works without CSS/JS) -->
<nav>
<a href="/home">Home</a>
<a href="/about">About</a>
</nav>
<!-- Layer 2: CSS enhances appearance -->
<!-- Layer 3: JS adds interactivity -->
每周安装数
71
代码仓库
GitHub 星标数
90
首次出现
2026年1月25日
安全审计
安装于
claude-code62
gemini-cli55
codex55
cursor55
opencode53
github-copilot51
Design interfaces starting with mobile as the foundation, then enhance for larger screens.
| Name | Width | Devices |
|---|---|---|
| Mobile | 320-480px | iPhone SE, small Android |
| Tablet | 481-768px | iPad mini |
| Desktop | 769-1024px | iPad Pro, laptops |
| Large | 1025px+ | Desktop monitors |
/* Base styles (mobile) */
.container {
padding: 1rem;
}
.nav {
display: none; /* Hidden on mobile */
}
.nav-toggle {
display: block; /* Hamburger visible */
}
/* Tablet and up */
@media (min-width: 768px) {
.container {
padding: 2rem;
max-width: 720px;
margin: 0 auto;
}
.nav {
display: flex;
}
.nav-toggle {
display: none;
}
}
/* Desktop */
@media (min-width: 1024px) {
.container {
max-width: 960px;
}
}
/* Minimum touch target: 48x48px */
.button {
min-height: 48px;
min-width: 48px;
padding: 12px 24px;
}
/* Adequate spacing */
.list-item {
padding: 16px;
margin-bottom: 8px;
}
| Metric | Target |
|---|---|
| First Contentful Paint | <3s on 3G |
| JS bundle | <100KB gzipped |
| Total page weight | <500KB |
<!-- Layer 1: Semantic HTML (works without CSS/JS) -->
<nav>
<a href="/home">Home</a>
<a href="/about">About</a>
</nav>
<!-- Layer 2: CSS enhances appearance -->
<!-- Layer 3: JS adds interactivity -->
Weekly Installs
71
Repository
GitHub Stars
90
First Seen
Jan 25, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code62
gemini-cli55
codex55
cursor55
opencode53
github-copilot51
React视图过渡API使用指南:实现原生浏览器动画与状态管理
5,700 周安装
Lambda Labs GPU云:按需GPU实例与一键集群,专为AI/机器学习训练优化
209 周安装
Aeon 时间序列机器学习工具包:Python 时间序列分类、预测、异常检测与聚类
208 周安装
bioRxiv数据库Python工具:高效搜索下载预印本,支持关键词/作者/日期/类别筛选
209 周安装
LitGPT 大语言模型实现教程:20+预训练模型加载、微调与LoRA训练指南
208 周安装
Railway部署指南:使用railway up命令快速部署代码到Railway云平台
211 周安装
邮件系统工程师最佳实践:提升送达率与反垃圾邮件策略指南
210 周安装