Flex
Flexible layout utilities that help arrange content using gap spacing and alignment with flexbox. These utilities complement Bootstrap's flex system and extend it with more granular spacing controls.
All classes use the al- prefix and follow utility-first conventions.
Overview
| Utility Group | Class Format | Description |
|---|---|---|
| Flex Alignment | .al-flex-center | Centers content both vertically and horizontally |
| Gap | .al-gap-{n} | Sets spacing between flex/grid children using rem units |
Sass Reference
$gaps: (
0: 0,
1: 0.063,
2: 0.125,
3: 0.188,
4: 0.25,
5: 0.313,
6: 0.375,
7: 0.438,
8: 0.5,
9: 0.563,
10: 0.625,
12: 0.75,
16: 1,
18: 1.125,
20: 1.25,
22: 1.375,
24: 1.5,
25: 1.563,
26: 1.625,
28: 1.75,
30: 1.875,
32: 2,
36: 2.25,
40: 2.5,
45: 2.813,
48: 3,
50: 3.125,
55: 3.438,
56: 3.5,
60: 3.75,
64: 4
);
Class Usage Reference
| Class | Description |
|---|---|
| .al-flex-center | Aligns items in center both axes |
| .al-gap-20 | Sets gap to 20px |
Examples
Flex Centering
Gap
Developer Notes
-
Gap spacing is rem-based to match your global sizing system.
-
.al-gap-{n} applies to both flex and grid layouts.
-
.al-flex-center is ideal for quick centering of items using flexbox.
-
Designed to extend Bootstrap's .d-flex, .align-items-* and .justify-content-* classes.