跳到正文
Skillpedia
界面(UI/UX)7.2k · #13415

container-lines

它能做什么

这个技能指导 AI 智能体添加淡淡的竖向线条和小角标,用来标出页面内容区域的边缘。适合希望呈现精准、有技术感的设计师。

适用场景

  • ✓当页面显得松散,需要更有结构、更精确的外观时。
  • ✓当你希望用淡淡的线条标出内容容器的起止位置时。
  • ✓当某个区块需要小方块作为安静的边框装饰时。

技能链接

https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/container-lines/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/container-lines/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我在页面上加几条淡淡的竖向参考线,并在角上加小方块,让内容区域看起来更有结构。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会在主内容容器的左右两侧绘制细而低透明度的线条,并在角上放置小方块。线条位于内容后方,不会阻挡点击。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Container Lines

Use When

  • A page needs subtle vertical guides that reveal the content container width.
  • A hero, section, or product page feels too loose and needs structural tension.
  • The design calls for mini corner squares, measured edges, or quiet technical framing.

Rules

  1. Draw lines at the left and right edges of the main content container.
  2. Keep lines thin: 1px with low opacity.
  3. Add mini squares at container corners or section intersections.
  4. Keep the line system consistent across sections; do not change width per section.
  5. Place lines behind content but above the page background.
  6. Disable pointer events so the guides never block UI.

Base Tokens

:root {
  --container-max: 1120px;
  --container-pad: clamp(20px, 4vw, 48px);
  --line-color: rgba(24, 24, 27, 0.14);
  --line-strong: rgba(24, 24, 27, 0.28);
  --corner-size: 6px;
}

Page Container Lines

Use pseudo-elements on the layout shell.

.container-lines {
  position: relative;
  isolation: isolate;
}

.container-lines::before,
.container-lines::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: -1;
  width: 1px;
  background: var(--line-color);
  pointer-events: none;
}

.container-lines::before {
  left: max(var(--container-pad), calc((100vw - var(--container-max)) / 2));
}

.container-lines::after {
  right: max(var(--container-pad), calc((100vw - var(--container-max)) / 2));
}

Corner Squares

Add four small squares to sections that need a precise measured feel.

.corner-squares {
  position: relative;
}

.corner-squares > .corner {
  position: absolute;
  width: var(--corner-size);
  height: var(--corner-size);
  background: var(--line-strong);
  pointer-events: none;
}

.corner.top-left { top: 0; left: 0; transform: translate(-50%, -50%); }
.corner.top-right { top: 0; right: 0; transform: translate(50%, -50%); }
.corner.bottom-left { bottom: 0; left: 0; transform: translate(-50%, 50%); }
.corner.bottom-right { right: 0; bottom: 0; transform: translate(50%, 50%); }
<main class="container-lines">
  <section class="corner-squares">
    <span class="corner top-left"></span>
    <span class="corner top-right"></span>
    <span class="corner bottom-left"></span>
    <span class="corner bottom-right"></span>
    ...
  </section>
</main>

Minimal Section Wrapper

Use the same container width as the line positions.

.content-container {
  width: min(100% - (var(--container-pad) * 2), var(--container-max));
  margin-inline: auto;
}

Taste Rules

  • Use lines as structure, not decoration. They should organize the page quietly.
  • Do not add lines to every nested component; keep them at page or major-section level.
  • Mini squares should be small and exact, usually 4px to 8px.
  • Avoid bright accent colors unless the entire visual system is technical or industrial.
  • Keep container max-width and padding shared between content and guide lines.

Quick Checks

  • The vertical lines align exactly with the content container edges.
  • Corner squares sit on real container or section corners, not arbitrary positions.
  • Lines remain subtle on light and dark backgrounds.
  • Mobile still has enough padding between the line and content.
  • Guides do not intercept clicks, hovers, or text selection.
常见问题

这些线条会影响按钮吗?

不会。该技能设置它们不会阻挡指针事件。

每个区块的宽度应该不同吗?

不应该。该技能要求各区块使用统一的线条系统。

线条有多粗?

该技能使用 1 像素的细线,透明度较低。

详情

作者的原始描述

Add vertical container-size guide lines with mini corner squares for precise, structured web layouts. Use when asked for container lines, measured layout guides, vertical boundary lines, editorial grid markers, or small corner-square frame details.

repo: MengTo/Skills

热度

GitHub 星标
7.2k
排名
#13415
许可证
MIT
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能