Sections
There are 17 section types and 50 layouts. A new site starts with nine of them, marked starter below; the rest are one command away (npx bearminion add pricing), and the Contact section comes with its form handler from npx bearminion add form. Each one has its own page: what it is for, the layouts you can switch between, and the options and content it takes. On docs.bearminion.com every layout is shown live, with its default content: switch its tone and the screen width, and open the Content tab for the section as it sits in a page file. On GitHub the pages show a screenshot of each layout instead.
Every section shares six controls, in the editor’s Section tab and in the page JSON:
- Layout (
variant): one of the layouts listed under the section. - Tone (
tone):base,subtle,inverseorbrand. Every layout works in all four. - Motion (
motion): whether the section animates in. The site-wide default applies until you set it. - Top spacing and Bottom spacing (
spaceTop,spaceBottom): how much of the section’s own padding it keeps,none(0),half(½) orfull(1). Unset isfull, the theme’s design, and the editor writes nothing for it.noneon two neighbouring sections of the same tone joins them into one band. - Anchor (
anchor): an optional lowercase slug that becomes the section’sid, so a link can jump to it.
Optional text, links and images can be left out. The editor shows an empty field or an Add slot, and a built page leaves out whatever is empty. A section with a list shows its recommended length next to the list, and refuses to go outside the minimum and maximum. Sections are defined in templates/default/src/components/sections/<name>/. See Building a theme to change one or add your own, and Content files for the JSON.
| Section | Use it for | Layouts | In a new site |
|---|---|---|---|
| Hero | The opening of a page | split, centered, editorial | starter |
| Logo strip | Customer or partner logos | row, grid, marquee | add logo-strip |
| Steps | A few short points with an icon each | columns, rail, list, keys, panel | starter |
| Gallery | Many pictures, with a lightbox | grid, masonry, featured | starter |
| Features | Cards of benefits | cards, list, bento, screens | starter |
| Text | Plain long-form text | left, center | starter |
| Text + Image | Text beside a picture | right, left, wide | starter |
| Stats | Big numbers with short labels | row, cards, split | add stats |
| Testimonials | Quotes with a name | grid, featured, carousel | add testimonials |
| Pricing | Plans side by side | tiers, table, single | add pricing |
| Media | One video or image | centered, wide, split | starter |
| Code tabs | Code samples in tabs, with numbered points | side, top | add code-tabs |
| Compare | Options side by side, yours highlighted | centered, left | add compare |
| Changelog | The latest releases and what changed | cards, timeline | add changelog |
| FAQ | Questions that open to show answers | accordion, split, grid | starter |
| Call to action | A closing heading and button | band, centered, terminal | starter |
| Contact | Contact details beside a form | split, card, minimal | add form |
Any section a site does not have yet, it gets with npx bearminion add <name>; see The command line.