Skip to content

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, inverse or brand. 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 (½) or full (1). Unset is full, the theme’s design, and the editor writes nothing for it. none on two neighbouring sections of the same tone joins them into one band.
  • Anchor (anchor): an optional lowercase slug that becomes the section’s id, 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.

SectionUse it forLayoutsIn a new site
HeroThe opening of a pagesplit, centered, editorialstarter
Logo stripCustomer or partner logosrow, grid, marqueeadd logo-strip
StepsA few short points with an icon eachcolumns, rail, list, keys, panelstarter
GalleryMany pictures, with a lightboxgrid, masonry, featuredstarter
FeaturesCards of benefitscards, list, bento, screensstarter
TextPlain long-form textleft, centerstarter
Text + ImageText beside a pictureright, left, widestarter
StatsBig numbers with short labelsrow, cards, splitadd stats
TestimonialsQuotes with a namegrid, featured, carouseladd testimonials
PricingPlans side by sidetiers, table, singleadd pricing
MediaOne video or imagecentered, wide, splitstarter
Code tabsCode samples in tabs, with numbered pointsside, topadd code-tabs
CompareOptions side by side, yours highlightedcentered, leftadd compare
ChangelogThe latest releases and what changedcards, timelineadd changelog
FAQQuestions that open to show answersaccordion, split, gridstarter
Call to actionA closing heading and buttonband, centered, terminalstarter
ContactContact details beside a formsplit, card, minimaladd form

Any section a site does not have yet, it gets with npx bearminion add <name>; see The command line.