The container is the most generic element of our layout. With this snippet, you can manage and customize it as you wish.
- default: uses the
container-inline-sizevalue for width from the$layoutmap. - --narrow: uses 50rem container width.
- You only need to modify the
--inline-sizevariable to add new variations. - The
--gapvariable (that controls the inline margin) uses the clamp function to make it more dynamic.


