![]() |
VOOZH | about |
Primer CSS is a free open-source CSS framework that is built with the GitHub design system to provide support to the broad spectrum of Github websites. It creates the foundation of the basic style elements such as spacing, typography, and color. This systematic method makes sure our patterns are steady and interoperable with every other. Its approach to CSS is influenced by Object-Oriented CSS principles, functional CSS, and BEM architecture. It is a highly reusable model.
Flexbox grids are used to get responsive layouts. The flexbox grids are useful for keeping columns the same height, justifying content, and vertically aligning items. Flex utility classes are used on div containers and columns.
Primer CSS Flexbox Grids classes:
Note: The above classes are used in combination for the desired result as per the application's need.
Syntax:
<div class="o-container"> <div class="col-* d-flex"> ... </div> <div class="col-* flex-justify-center flex-md-items-start"> ... </div> </div>
Example: The following code demonstrates the Primer CSS flexbox grids by using flex utilities on containers and columns.
Output:
Reference: https://primer.style/product/css-utilities/#flexbox-grids