
Container Lines
Skill在页面内容容器左右边缘画 1px 低透明度的竖向参考线,并在区块角落加小方块,营造精确、有结构感的版式;提供 CSS 变量与伪元素写法,参考线不拦截点击与选中。
name: container-lines
description: 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.
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
- Draw lines at the left and right edges of the main content container.
- Keep lines thin:
1pxwith low opacity. - Add mini squares at container corners or section intersections.
- Keep the line system consistent across sections; do not change width per section.
- Place lines behind content but above the page background.
- 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
4pxto8px. - 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.
相關資源

Tailwind CSS
Skill用 Tailwind CSS 实现界面的通用指南:响应式与状态变体、深色模式、克制使用任意值、优先拆组件再用 @apply,以及动态拼接类名导致生产环境缺样式等常见问题,附按钮与首屏版式示例。
MengTo/Skills6.8k
Neo Industrial Design
Skill按新工业、编辑式粗野主义风格设计或改造网页界面:先定模式、主视觉动作、网格与单一强调色,再从宏观到细节确定版式、字体层级与图形元素,保留语义 HTML、键盘操作与对比度,并在宽屏与手机宽度下检查渲染效果。只用于明确要求这种风格时。
elithrar/dotfiles216
Compact Landing
Skill构建紧凑、精致的落地页与产品页骨架:动手前先定好构图、配色、字体、圆角、表面与动效等「设计指纹」,每次换一种视觉方向,突出一个产品本身的演示件,首屏放主要操作;动效只用 transform、opacity 与 filter,保证零布局偏移,兼顾移动端、键盘焦点与减少动态效果设置。
danielwh2/compact-landing-skill37
Budge
Skill在 Next.js App Router 项目中,agent 只改动单个 CSS 值或 Tailwind 类时,页面上会出现浮动调节条,用户用方向键微调数值、切换相关属性,回车复制修改提示、Esc 还原。需在 app/layout.tsx 引入 budge.design 托管的运行时脚本。
millionco/skills34
UnoCSS
SkillUnoCSS 原子化 CSS 引擎的参考:配置、规则、快捷方式、主题与变体,Wind3、Wind4(兼容 Tailwind)、Icons、Attributify 等预设,转换器以及 Vite 与 Nuxt 集成。提醒 agent 写样式前先看项目的 uno.config,配置不明时只用普通 class。由 Anthony Fu 从官方文档生成。
antfu/skills6k
Frontend Design
Skill引导 agent 在新建或改版界面时先确定视觉方向,在配色、字体与布局上做有取舍的选择,避免千篇一律的模板化 AI 界面。Anthropic 官方技能。
anthropics/skills182k