The shape of a section
{
"type": "hero",
"variant": "split",
"scheme": "dark",
"show": "all",
"settings": {
"eyebrow": "Now enrolling",
"heading": "Summer Ninja Camp",
"text": "Obstacles, games and **coaches who love kids**.",
"image": {
"src": "/media/summer-camp.webp",
"alt": "Kids cheer as a camper hits the buzzer",
"focus": "50% 30%"
}
},
"blocks": [
{
"settings": {
"label": "Book camp",
"href": "/camps"
}
}
]
}
variant is the layout (the first listed is the default), scheme the color scheme from the design, show all, phone or computer, hidden keeps it without showing it. A gym also has live data sections (data:<key>: the class schedule, competitions, coaches, camps and more) that draw live information; place them, but their content comes from the back office. list_section_types lists the ones a site has.
Section types
hero · Hero
Intro. Layouts: split, full, stacked, editorial, banner. Blocks: button, up to 3.
| Field | Kind | Limit |
|---|
eyebrow | text | 40 characters |
heading required | text | 100 characters |
text | text with **bold**, *italic*, links and lists | 500 characters |
image | picture { src, alt, focus } | - |
size | choice: medium, short, tall | - |
text · Text
Content. Layouts: plain, centered, columns. Blocks: button, up to 4.
| Field | Kind | Limit |
|---|
eyebrow | text | 40 characters |
heading | text | 100 characters |
text required | text with **bold**, *italic*, links and lists | 6000 characters |
split · Picture and Text
Content. Layouts: image-left, image-right, overlap. Blocks: button, up to 2.
| Field | Kind | Limit |
|---|
eyebrow | text | 40 characters |
heading required | text | 100 characters |
text | text with **bold**, *italic*, links and lists | 2000 characters |
image required | picture { src, alt, focus } | - |
columns · Columns
Content. Layouts: halves, wide-left, wide-right, thirds, narrow-left, narrow-right. Blocks: column, at least 1, up to 6. Columns side by side on computers, one under another on phones. Each column can hold a heading, text, a picture or a video, and buttons.
| Field | Kind | Limit |
|---|
eyebrow | text | 40 characters |
heading | text | 100 characters |
intro | text with **bold**, *italic*, links and lists | 600 characters |
boxed | yes or no | - |
center | yes or no | - |
cards · Cards
Content. Layouts: grid, list, compact, overlay, showcase. Blocks: card, at least 1, up to 24.
| Field | Kind | Limit |
|---|
eyebrow | text | 40 characters |
heading | text | 100 characters |
intro | text with **bold**, *italic*, links and lists | 600 characters |
columns | choice: 3, 2, 4 | - |
list · Icon List
Content. Layouts: plain, columns, boxes. Blocks: item, at least 1, up to 30.
| Field | Kind | Limit |
|---|
eyebrow | text | 40 characters |
heading | text | 100 characters |
intro | text with **bold**, *italic*, links and lists | 600 characters |
stats · Numbers
Proof. Layouts: band, tiles. Blocks: stat, at least 1, up to 6.
| Field | Kind | Limit |
|---|
heading | text | 100 characters |
quotes · Quotes
Proof. Layouts: grid, single, wall, carousel. Blocks: quote, at least 1, up to 24.
| Field | Kind | Limit |
|---|
eyebrow | text | 40 characters |
heading | text | 100 characters |
faq · Questions
Content. Layouts: accordion, columns, toggles. Blocks: qa, at least 1, up to 30.
| Field | Kind | Limit |
|---|
eyebrow | text | 40 characters |
heading | text | 100 characters |
intro | text with **bold**, *italic*, links and lists | 600 characters |
open | yes or no | - |
cta · Call to Action
Action. Layouts: band, card, split. Blocks: button, at least 1, up to 2.
| Field | Kind | Limit |
|---|
heading required | text | 100 characters |
text | text with **bold**, *italic*, links and lists | 500 characters |
image | picture { src, alt, focus } | - |
gallery · Gallery
Pictures. Layouts: grid, mosaic, strip. Blocks: image, at least 1, up to 24.
| Field | Kind | Limit |
|---|
eyebrow | text | 40 characters |
heading | text | 100 characters |
intro | text with **bold**, *italic*, links and lists | 600 characters |
zoom | yes or no | - |
logos · Logos
Proof. Layouts: row, grid. Blocks: logo, at least 1, up to 24.
| Field | Kind | Limit |
|---|
heading | text | 100 characters |
steps · Steps
Content. Layouts: numbered, timeline. Blocks: step, at least 1, up to 10.
| Field | Kind | Limit |
|---|
eyebrow | text | 40 characters |
heading | text | 100 characters |
intro | text with **bold**, *italic*, links and lists | 600 characters |
pricing · Pricing
Action. Layouts: cards, table. Blocks: plan, at least 1, up to 6.
| Field | Kind | Limit |
|---|
eyebrow | text | 40 characters |
heading | text | 100 characters |
intro | text with **bold**, *italic*, links and lists | 600 characters |
video · Video
Pictures. Layouts: wide, video-left, video-right. Blocks: button, up to 2. A video you upload, played from your own website, or a YouTube video. Nothing plays or loads until a visitor presses play; the poster is a picture from your own library.
| Field | Kind | Limit |
|---|
eyebrow | text | 40 characters |
heading | text | 100 characters |
text | text with **bold**, *italic*, links and lists | 2000 characters |
file | a video from the site's own library | - |
video | YouTube link or id | - |
title required | text | 100 characters |
poster | picture { src, alt, focus } | - |
jump · Jump Links
Intro. Layouts: buttons, bar. Blocks: button, at least 1, up to 10. Buttons that jump to sections further down this page. Give each section an Anchor in its settings (like parties), then link to it as #parties.
| Field | Kind | Limit |
|---|
eyebrow | text | 40 characters |
heading | text | 100 characters |
shared · Shared Sections
Reusable. Layouts: default. Shows the sections of one of your Shared Sections pages here. Change them on that page and every page that shows them changes too.
| Field | Kind | Limit |
|---|
page | text | 80 characters |
Blocks
The repeatable items inside a section, sent as blocks: [{ settings: { … } }] in order.
| Field | Kind | Limit |
|---|
label required | text | 40 characters |
href required | link | - |
style | choice: primary, secondary | - |
card · Card
| Field | Kind | Limit |
|---|
title required | text | 80 characters |
text | text with **bold**, *italic*, links and lists | 600 characters |
image | picture { src, alt, focus } | - |
icon | choice: check, clock, pin, phone, mail, calendar, star, heart, info, trophy, people, arrow, cart, card, gift | - |
badge | text | 24 characters |
price | text | 24 characters |
href | link | - |
label | text | 40 characters |
href2 | link | - |
label2 | text | 40 characters |
hover | text | 160 characters |
whole | yes or no | - |
stat · Number
| Field | Kind | Limit |
|---|
value required | text | 12 characters |
label required | text | 60 characters |
quote · Quote
| Field | Kind | Limit |
|---|
text required | text with **bold**, *italic*, links and lists | 600 characters |
name required | text | 60 characters |
role | text | 80 characters |
stars | choice: 5, 4, 3, 2, 1 | - |
qa · Question
| Field | Kind | Limit |
|---|
q required | text | 160 characters |
a required | text with **bold**, *italic*, links and lists | 6000 characters |
video | YouTube link or id | - |
file | a video from the site's own library | - |
label | text | 40 characters |
href | link | - |
column · Column
| Field | Kind | Limit |
|---|
heading | text | 100 characters |
text | text with **bold**, *italic*, links and lists | 4000 characters |
image | picture { src, alt, focus } | - |
video | YouTube link or id | - |
file | a video from the site's own library | - |
title | text | 100 characters |
label | text | 40 characters |
href | link | - |
label2 | text | 40 characters |
href2 | link | - |
picLink | yes or no | - |
item · Line
| Field | Kind | Limit |
|---|
icon | choice: check, clock, pin, phone, mail, calendar, star, heart, info, trophy, people, arrow, cart, card, gift, number | - |
text required | text with **bold**, *italic*, links and lists | 400 characters |
image · Picture
| Field | Kind | Limit |
|---|
image required | picture { src, alt, focus } | - |
caption | text | 140 characters |
logo · Logo
| Field | Kind | Limit |
|---|
image required | picture { src, alt, focus } | - |
href | link | - |
step · Step
| Field | Kind | Limit |
|---|
title required | text | 80 characters |
text | text with **bold**, *italic*, links and lists | 600 characters |
when | text | 30 characters |
plan · Plan
| Field | Kind | Limit |
|---|
name required | text | 60 characters |
price required | text | 24 characters |
per | text | 24 characters |
text | text with **bold**, *italic*, links and lists | 800 characters |
href | link | - |
label | text | 40 characters |
featured | yes or no | - |
The design system
A design starts from a personality and changes what it likes with set_design { personality, changes }. Every color pair is checked for WCAG AA contrast, and a pair that fails is refused with the reason. get_design_system returns the site's design, its own extra color roles and fonts.
| Token | Choices |
personality | bold-athletic (Bold Athletic), clean-studio (Clean Studio), playful-kids (Playful Kids), editorial (Editorial), premium-dark (Premium Dark), retro-gym (Retro Gym); the default is clean-studio |
schemes | light, dark, accent, each with the roles bg, surface, text, muted, accent, accentText, border as #rrggbb |
fonts | { heading, body }: poppins (Poppins (geometric sans)), system (System sans), humanist (Humanist sans), rounded (Rounded sans), condensed (Condensed sans), serif (Classic serif), didone (High-contrast serif), slab (Slab serif), mono (Monospace), plus the fonts every NinjaHQ site serves itself (Poppins, Barlow, Raleway, Montserrat, Saira Condensed) |
radius | sharp, soft, round |
buttons | solid, outline, pill, underline |
cards | flat, outlined, raised, tinted |
photos | square, rounded, arch |
dividers | none, angle, wave, curve |
spacing | compact, normal, airy |
width | narrow, normal, wide, full |
headingCase | none, upper |
motion | none, subtle |
scale, base, headingWeight, radiusPx | numbers: the type scale, base size in pixels, heading weight, an exact corner size |
{
"personality": "bold-athletic",
"changes": {
"radius": "round",
"buttons": "pill",
"schemes": {
"light": {
"accent": "#1d4ed8",
"accentText": "#ffffff"
}
}
},
"dry_run": true
}
Custom CSS
- Whole site:
set_design { custom_css }, up to 60,000 characters, applied after the design's tokens. It replaces the site's CSS, so read it with get_design_system first.
- One page:
update_page { css }, up to 20,000 characters, scoped for you: .pb-t-hero h1 becomes [data-pb-page="/camps"] .pb-t-hero h1; & or :scope is the page.
- Hooks: the design's variables (
var(--pb-accent), var(--pb-font-h), …) and classes .pb, .pb-sec, .pb-t-<type>, .pb-v-<layout>, .pb-s-<scheme>, .pb-btn-1.
- Rules: Plain CSS only: no @import, @charset or @namespace; no < or backslashes; url() only for the site's own files under /media/ and /fonts/ (nothing from other websites); nothing that runs code (expression(), javascript:, behavior, -moz-binding); no image-set() or element(); braces must balance and comments must be closed.
- No JavaScript and no raw HTML. Sites run no custom scripts and load nothing from other companies.