Corner geometry, per-corner overrides, item dividers, and border customization.
All six corner-shape values. Each uses --alap-radius: 24px to make the shape obvious.
border-radius only
iOS superellipse
concave cutout
straight cut
angled chamfer
sharp corners
/* Each uses the same radius — the shape changes the geometry */
alap-link { --alap-radius: 24px; }
--alap-corner-shape: round; /* default circular arc */
--alap-corner-shape: squircle; /* iOS superellipse */
--alap-corner-shape: scoop; /* concave inward */
--alap-corner-shape: notch; /* straight diagonal cut */
--alap-corner-shape: bevel; /* angled chamfer */
--alap-corner-shape: straight; /* sharp 90° corners (ignores radius) */
iOS-style superellipse corners:
--alap-corner-shape: squircle with --alap-radius: 16px.
Browsers without corner-shape show standard 16px rounded corners — equally polished.
.squircle-section alap-link {
--alap-corner-shape: squircle;
--alap-radius: 16px;
}
Concave cutout with a colored border:
corner-shape: scoop with --alap-border-width: 2px. Fallback: standard rounded corners.
.scoop-section alap-link {
--alap-corner-shape: scoop;
--alap-radius: 16px;
--alap-border-width: 2px;
--alap-border: #6366f1;
}
Price-tag style — mixed corner shapes:
--alap-corner-shape: round bevel bevel round bevels the right side while keeping the left rounded. Combine with a bold color and the shape speaks for itself.
/* Using the 4-value shorthand */
.sale-section alap-link {
--alap-corner-shape: round bevel bevel round;
--alap-radius: 8px 20px 20px 8px;
}
Each corner set independently:
Physical longhands via ::part(menu) override the shorthand for specific corners.
.longhands-section alap-link::part(menu) {
corner-shape: round; /* base: all round */
corner-top-right-shape: bevel; /* override one corner */
corner-bottom-left-shape: scoop;
border-radius: 20px;
}
Set two corners at once:
corner-right-shape via ::part(menu) sets both top-right and bottom-right.
.sides-section alap-link::part(menu) {
corner-shape: round;
corner-right-shape: bevel; /* both right corners */
border-radius: 16px;
}
Brutalist aesthetic — beveled corners:
Uses ::part(menu) for direct CSS access to combine bevel with custom colors.
.snipped-section alap-link::part(menu) {
corner-shape: bevel;
border-radius: 4px 4px 20px 4px;
background: #0f172a;
border: 2px solid #475569;
}
Subtle dividers between items:
.dividers-section alap-link::part(item) {
border-bottom: 1px solid #e5e7eb;
}
.dividers-section alap-link::part(item):last-child {
border-bottom: none;
}
Spaced, rounded items:
.pills-section alap-link {
--alap-item-gap: 4px;
--alap-item-border-radius: 6px;
--alap-item-border: 1px solid #e2e8f0;
--alap-menu-padding: 0.5rem;
--alap-bg: #f8fafc;
}