🧷 Align items
The align-items
utility provides a quick way to control vertical alignment of flex items inside a flex container.
It supports both static and responsive variants generated through mixins and loops.
🧱 Naming convention
Section titled “🧱 Naming convention”All classes follow the structure:
.u--align-items-{value}.u--align-items-{breakpoint}-{value}
✅ When to use
Section titled “✅ When to use”Use this utility when:
- You’re working with a flex layout
- You want to control how items align vertically
- You need quick alignment per breakpoint
🧪 Responsive usage
Section titled “🧪 Responsive usage”This utility supports responsive variants, using breakpoint prefixes like:
desktop
, laptop
, tabletl
, tabletm
, tablets
, mobile
.
✅ How to use
Section titled “✅ How to use”You can apply them directly in HTML:
<div class="u--display-flex u--align-items-center u--align-items-tablets-flex-start"> <p>Hello world</p></div>
Or extend them in SCSS if you have a custom class:
.c--card-a { @extend .u--display-flex; @extend .u--align-items-center; @extend .u--align-items-tablets-flex-start;}