corner-diagonals

Apply diagonal-cut corners and chamfered edges to UI components with clip-path polygons.

4.5k|536|Updated Feb 3, 2026
One-click install
npx skills add https://github.com/MengTo/Skills --skill corner-diagonals
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: corner-diagonals
Source: https://github.com/MengTo/Skills/tree/main/agent-skills/web-design/corner-diagonals
Command: npx skills add https://github.com/MengTo/Skills --skill corner-diagonals

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you apply precise diagonal-cut corners and chamfered edges consistently in UI components so designs don’t look accidental or visually inconsistent.

Core Features & Use Cases

  • Diagonal silhouette with clip-path: Creates true geometric corner cuts for a sharp, engineered look instead of a rounded-pill style.
  • Reusable cut tokens + scalable sizes: Standardizes corner sizes (sm/md/lg) and border/line treatments so the motif stays coherent across components.
  • Shell + inner layering for bordered surfaces: Preserves a matching clipped border and an inner content surface using the same polygon geometry.
  • Button-ready patterns with accessibility checks: Includes primary/secondary button recipes while maintaining usable hit targets and visible focus rings.

Use it for sci-fi or technical UI surfaces, card/panel framing, chamfered container shells, and clipped-corner controls across a component library.

Quick Start

Apply the provided clip-path polygon and cut token size from corner-diagonals to your button, card, panel, or container shell, then reuse the same cut logic consistently across the set.

Frequently Asked Questions about corner-diagonals

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create diagonal-cut corners on UI buttons using CSS clip-path?

To create diagonal-cut corners on UI buttons, apply a clip-path polygon to generate true geometric corner cuts, producing a sharp, engineered silhouette rather than a rounded-pill style. This ensures consistent chamfered edges across your component library.

What is the best way to maintain consistent chamfered edges across card components?

The best way to maintain consistent chamfered edges is to use reusable cut tokens that standardize corner sizes (sm/md/lg) and border treatments. This keeps the diagonal motif coherent across cards, panels, and container shells.

Can I preserve accessible focus-visible outlines when applying diagonal clipping to container shells?

Yes, you can preserve accessible focus-visible outlines by using shell and inner layering with matching clipped border geometry. This maintains usable hit targets and visible focus rings for button-ready patterns.

Does clip-path support bordered surfaces when designing sci-fi style UI panels?

Clip-path supports bordered surfaces by preserving a matching clipped border and an inner content surface using the same polygon geometry. This creates engineered sci-fi framing for panels without sacrificing readable hit areas.

Why do my diagonal corners look visually inconsistent across different UI components?

Diagonal corners look visually inconsistent when using random geometry and unstandardized clipping. Applying reusable cut tokens with scalable sizes ensures the chamfered motif stays coherent across your entire component system.