Predefine Clip
All classes use the al- prefix and follow utility-first conventions.
Hexa
Initialize hexa using the (.al-hexa or .al-hexa-alt) class
border
border
Add hexa inlay sizes & color with .al-inlay-all-* & .al-inlay-bg-{color}.
Primary
Secondary
Success
Warning
Danger
Info
Black
White
Add hexa inlay color opacity with .al-inlay-bg-{color}-{opacity}.
Add hexa border size & color with .al-border-* & .al-border-{color}.
Primary
Secondary
Success
Warning
Danger
Info
Black
White
Add hexa border opacity with .al-border-{color}-{opacity}.
Triangle
Initialize triangle using the (.al-triangle-{direction}) class
Add Triangle direction with .al-triangle-{direction}.
Up
Down
Start
End
Add Triangle inlay sizes & color with .al-inlay-all-* & al-inlay-bg-{color}.
1px, Primary
2px, Secondary
3px, Success
4px, Warning
8px, Danger
16px, Info
24px, Black
32px, White
Add hexa inlay color opacity with .al-inlay-bg-{color}-{opacity}.
5
10
25
50
75
100
//Inlay color opacity
Add Triangle border size & color with .al-border-* & al-border-{color}.
1px, Primary
2px, Secondary
3px, Success
4px, Warning
8px, Danger
16px, Info
24px, Black
32px, White
Add hexa border opacity with .al-border-{color}-{opacity}.
5
10
25
50
75
100
//border opacity
Developer Notes
-
These utilities rely heavily on clip-path: polygon() and CSS custom properties.
-
Use .al-hexa, .al-hexa-alt, .al-triangle-{direction} for activating clipping shapes.
-
Adjust --al-* variables to customize inlay size & color: --al-inlay, --al-inlay-bg.
-
Adjust --al-* variables to customize border size & color: --al-border, --al-border-bg.
-
Always pair clip styles with a fallback (e.g., border-radius, overflow: hidden) for compatibility.