framed-grid-layout
它能做什么
这个技能指导 AI 智能体设计带有可见边框、细线条和角标的结构化页面。适合需要显得有条理、精确的编辑类、技术类或指南类网站。
适用场景
- ✓当页面需要可见的分区边界,并呈现精确、有条理的外观时。
- ✓当你希望在方框和分区上加入角标和细参考线时。
- ✓当指南或文档类网站需要显得干净、有体系时。
技能链接
https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/framed-grid-layout/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我用细边框分区、角标和严格的网格,布局我的文档首页。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会设置一个父级网格,让每个分区对齐,然后添加细边框、低对比度的分隔线和 L 形角标。各分区之间保持一致的间距。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Framed Grid Layout
Use When
- A page needs a clean technical structure with visible section boundaries.
- Content should feel precise, organized, editorial, or system-like.
- The design calls for thin guide borders, L-shaped corner brackets, and consistent framed boxes.
Layout Rules
- Define the parent grid first; make every section snap to the same columns and rows.
- Use one border color, one corner bracket color, and one spacing scale across the page.
- Keep frames rectangular and precise. Avoid floating cards, soft blobs, and uneven margins.
- Use thin lines:
1pxborders, low-contrast dividers, and subtle bracket marks. - Add diagonal background texture at very low opacity; it should read only as surface tension.
- Align section padding, headings, controls, and media edges to the same grid rhythm.
- Separate sections with consistent gaps, not random whitespace.
Base Tokens
Use neutral colors and tune contrast per theme.
:root {
--fg-bg: #f7f7f4;
--fg-surface: rgba(255, 255, 255, 0.62);
--fg-line: rgba(24, 24, 27, 0.14);
--fg-line-strong: rgba(24, 24, 27, 0.34);
--fg-texture: rgba(24, 24, 27, 0.035);
--fg-gap: 16px;
--fg-pad: clamp(16px, 2vw, 28px);
--fg-corner: 18px;
}
Parent Grid
Use the parent grid to enforce vertical and horizontal alignment.
.framed-grid {
min-height: 100vh;
padding: var(--fg-gap);
background:
repeating-linear-gradient(
135deg,
transparent 0 11px,
var(--fg-texture) 11px 12px
),
var(--fg-bg);
display: grid;
grid-template-columns: repeat(12, minmax(0, 1fr));
gap: var(--fg-gap);
}
.framed-grid > * {
min-width: 0;
}
Framed Section
Each section gets the same box model, line weight, and padding.
.frame {
position: relative;
border: 1px solid var(--fg-line);
background: var(--fg-surface);
padding: var(--fg-pad);
overflow: hidden;
}
.frame + .frame {
margin-top: 0;
}
L-Shaped Corner Brackets
Use background layers so brackets stay crisp without extra markup.
.frame-brackets {
background:
linear-gradient(var(--fg-line-strong), var(--fg-line-strong)) left top / var(--fg-corner) 1px no-repeat,
linear-gradient(var(--fg-line-strong), var(--fg-line-strong)) left top / 1px var(--fg-corner) no-repeat,
linear-gradient(var(--fg-line-strong), var(--fg-line-strong)) right top / var(--fg-corner) 1px no-repeat,
linear-gradient(var(--fg-line-strong), var(--fg-line-strong)) right top / 1px var(--fg-corner) no-repeat,
linear-gradient(var(--fg-line-strong), var(--fg-line-strong)) left bottom / var(--fg-corner) 1px no-repeat,
linear-gradient(var(--fg-line-strong), var(--fg-line-strong)) left bottom / 1px var(--fg-corner) no-repeat,
linear-gradient(var(--fg-line-strong), var(--fg-line-strong)) right bottom / var(--fg-corner) 1px no-repeat,
linear-gradient(var(--fg-line-strong), var(--fg-line-strong)) right bottom / 1px var(--fg-corner) no-repeat,
var(--fg-surface);
}
Section Spans
Prefer explicit grid spans over ad hoc widths.
.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }
@media (max-width: 760px) {
.framed-grid {
grid-template-columns: 1fr;
}
.span-12,
.span-8,
.span-6,
.span-4 {
grid-column: 1 / -1;
}
}
Example
<main class="framed-grid">
<section class="frame frame-brackets span-12">...</section>
<section class="frame frame-brackets span-8">...</section>
<aside class="frame frame-brackets span-4">...</aside>
<section class="frame frame-brackets span-6">...</section>
<section class="frame frame-brackets span-6">...</section>
</main>
Taste Rules
- Keep frames aligned to the parent grid even when content inside varies.
- Use square or lightly rounded corners only if the product style requires it.
- Do not mix different border weights in adjacent frames.
- Do not add heavy shadows; the visible frame is the structure.
- Keep diagonal texture below
0.05opacity. - Repeat corner bracket size consistently across all major sections.
Quick Checks
- Section edges line up vertically and horizontally.
- Every frame uses the same border, padding, and corner bracket scale.
- Gaps between frames are consistent on desktop and mobile.
- The diagonal texture is visible only on close inspection.
- The layout still reads clearly if the texture layer is removed.
常见问题
它会使用圆角卡片吗?
不会。该技能要求使用矩形、精确的边框,避免漂浮的卡片和柔和的色块。
使用几种边框颜色?
整个页面只使用一种边框颜色、一种角标颜色,以及一套间距比例。
它包含背景纹理吗?
包含。建议使用非常淡的斜向纹理,为表面增添细节。
详情
作者的原始描述
Create minimal framed grid layouts with thin visible boundary lines, L-shaped corner brackets, subtle diagonal line texture, and strict section alignment. Use when asked for clean, neutral, precise, structured, editorial, technical, or guide-border web layouts.
repo: MengTo/Skills
热度
- GitHub 星标
- 7.2k
- 排名
- #13430
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …
同一仓库的更多技能
3d-cloth-material
7.2k帮你的智能体在 Three.js 中制作逼真的编织织物,包括纱线编织纹理、柔和光泽、自然褶皱、下摆和缝线。
3d-falling-leaves
7.2k帮你的智能体在 3D 场景中添加逼真的飘落树叶,树叶会翻滚、随风飘动,并在镜头移动时循环利用。
3d-four-seasons
7.2k帮你的智能体为 3D 场景添加春夏秋冬四季效果,无需重建场景即可改变植被、光线、天空和积雪。
3d-high-poly-models
7.2k帮你的智能体构建形状平滑、边缘可信的精细 3D 模型,然后制作在网页上运行流畅的轻量版本。