Back to generator

Octagon Compact Clip Path CSS

Octagon Compact is a tight badge-like shape for small UI accents for CSS clip-path layouts.

clip-path

Editable Shape

Output

Copy-ready CSS

Pure CSS

clip-path: polygon(35.6% 14%, 64.4% 14%, 86% 35.6%, 86% 64.4%, 64.4% 86%, 35.6% 86%, 14% 64.4%, 14% 35.6%);

Tailwind v4

[clip-path:polygon(35.6%_14%\,_64.4%_14%\,_86%_35.6%\,_86%_64.4%\,_64.4%_86%\,_35.6%_86%\,_14%_64.4%\,_14%_35.6%)]
Try it in the generator

When to use it

Octagon Compact is a octagon clip-path preset for interface shapes, cropped media blocks, section edges, and decorative CSS cuts. It uses 8 polygon points, which keeps the effect readable while still giving the element a custom silhouette. Octagon Compact is a tight badge-like shape for small UI accents for CSS clip-path layouts. The preset is written as plain CSS, so it works with images, cards, gradient panels, and pseudo-elements without requiring SVG assets. Use it when a rectangular block feels too flat, or when a octagon shape needs to guide attention across a page. Open it in the generator to drag individual vertices, switch templates, and copy the updated clip-path or Tailwind arbitrary value.

Hexpedia

Color reference

This clip-path preset is shape-only. Pair it with a color reference from Hexpedia when choosing a fill or background.

Explore more

More CSS Forge paths

Related

Similar clip paths

These presets share shape and layout tags with Octagon Compact.