
Container Lines
FreeAdd precise vertical guides for web layouts.
Free · Opens the source repo
What Container Lines does
Container Lines is a CSS skill designed to enhance the structural integrity of web layouts by adding subtle vertical guide lines and corner squares. This skill is particularly useful for designers and developers looking to create visually organized pages that maintain a consistent layout. By using this skill, you can ensure that your content aligns perfectly with the intended design, providing a cleaner and more professional appearance.
The skill operates by drawing thin vertical lines at the edges of the main content container, which helps to define the layout boundaries without being visually intrusive. These lines are designed to be low-opacity, ensuring they do not distract from the actual content. Additionally, mini corner squares can be added at section intersections to provide precise framing, further enhancing the measured feel of your design. The provided CSS rules ensure that these elements are implemented consistently across your project, maintaining a cohesive look throughout.
Ideal for web designers and developers, Container Lines is particularly beneficial when a page feels too loose or lacks structural tension. It can be used effectively on hero sections, product pages, or any layout that requires clear visual boundaries. This skill is not only about aesthetics; it also serves a functional purpose by guiding users' eyes and improving the overall user experience.
However, it’s important to note that this skill is not suitable for every type of project. If your design requires bold or distracting elements, or if you need to manage complex nested components, the subtlety of Container Lines may not align with your goals. This skill is best used in scenarios where quiet technical framing is desired, rather than as a decorative feature.
When to use it
Use Container Lines when you need to create structured web layouts with precise alignment and subtle visual guidance.
When not to use it
Avoid using this skill in designs that require bold visual elements or where intricate nested layouts are necessary.
What you can build with it
Creating a Product Page
Use Container Lines to define the layout boundaries of a product page, ensuring all elements are visually aligned.
Designing a Hero Section
Implement subtle vertical guides in a hero section to enhance the structural feel and maintain focus on the main content.
Structuring a Blog Layout
Utilize Container Lines to provide clear visual boundaries in a blog layout, improving readability and content organization.
How to install Container Lines
View source1. Install with the skills CLI
npx skills add mengto/skills/container-lines --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by mengtoContainer 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.
Frequently asked questions about Container Lines
Similar skills
Penpot UI/UX Design
Create professional UI/UX designs in Penpot with ease.
UX Theming
Streamline your VS Code theming process with best practices.
Wireframe
Create low-fidelity UI wireframes in SVG format.
Waitlist Page
Create a clean, focused pre-launch landing page.
Hallmark
Design skill for creating unique, structured UIs.
UI Styling
Create beautiful, accessible user interfaces effortlessly.
