Velocity X Components

Bento & Layout

Responsive Gutter Wrapper

Self-contained responsive horizontal padding plus centred max-width wrapper with no dependency on any host project's CSS variables.

Free MIT licensed. Install it with the CLI — no account, no key.
bash
$ velocityx add gutter-wrapper

Built for astro.

Full docs for Responsive Gutter Wrapper →

astro v1.0.0
Responsive Gutter Wrapper

This card sits inside a self-contained gutter wrapper — resize the window to see the side padding tighten on phone, without any dependency on this site's own shell tokens.

Props

NameTypeRequiredDefaultDescription
as'div' | 'section'No'div'
maxWidthstringNo'1200px'
paddingDesktopstringNo'32px'
paddingTabletstringNo'24px'
paddingPhonestringNo'16px'
classNamestringNo''

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/gutter-wrapper/GutterWrapper.astro

Using the Responsive Gutter Wrapper component

Install it with velocityx add gutter-wrapper. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Bento & Layout.