Shape
Cut the edges or corners of any box: zigzag, scallop, wave, notch, and ticket bites. A mask, so the box keeps its fill and shadow.
shape-zigzag shape-b shape-size-3Install
Add the utility's CSS with the CLI, your coding agent, or by hand. It has no JavaScript.
Usage
Put one shape class on the element. Pick sides or corners, and set the size of the cut with shape-size-<n>. The mask also clips the border, ring, and shadow.
Shapes
Five edges, three corners, and two bites. Use one shape per element.
Edges
shape-zigzagReceipts and tear-off edges.shape-scallopStamps, coupons, labels.shape-waveSoft section edges.shape-perforatedTickets you tear.shape-crenellatedGame and toy cards.
Corners and bites
shape-notchCut corners, tech tags.shape-scoopInner round corners.shape-squircleApp icon corners.shape-bite-xTicket bites on the sides.shape-bite-yBites at the top and bottom.
Sides and corners
With no pick, a shape cuts every side. Pick sides with shape-t to shape-y, and corners with shape-corner-tl to -bl.
shape-scallop shape-tshape-scallop shape-xshape-notch shape-corner-trshape-notch shape-corner-bl
Options
The modifier classes of the utility. Put them next to a shape class to change the cut.
| Name | Kind | Default | Description |
|---|---|---|---|
shape-t · -r · -b · -l · -x · -y | class | every side | The sides an edge shape cuts. With no pick, it cuts every side. |
shape-corner-tl · -tr · -br · -bl | class | every corner | The corners a corner shape cuts. |
shape-size-<n> | class | 6 · 8 · 12px | The hole, tooth, or cut size: n steps of the spacing scale. The default differs per shape. |
shape-gap-<n> | class | the size | The distance from one tooth or hole to the next. |
shape-at-<n>% | class | 50% | Where a bite sits along its edge, in percent. |
- Materials
material-brushed-aluminumMetal, glass, stone, and cloth surfaces that catch the light.
- Pattern
pattern-hatchHatch, dots, grid, and checker for empty or reserved areas.
- Glow
glowA soft halo in the element's own color, for bars and lines.
- Typeset
typesetOne class styles the plain HTML of an article or a page.
- Shimmer
shimmerA light sweep for skeletons and loading text, in sync.
- Scroll Fade
scroll-fadeFade the edges of a scroll area, only where it can scroll.